Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

buffy_wrap_python.cc File Reference

#include "Python.h"
#include <string.h>
#include <stdexcept>
#include <string>
#include <algorithm>
#include <vector>
#include "MailFolder.h"
#include <iterator>

Namespaces

namespace  swigpy

Defines

#define SWIGPYTHON
#define SWIG_TypeRegister   SWIG_Python_TypeRegister
#define SWIG_TypeCheck   SWIG_Python_TypeCheck
#define SWIG_TypeCast   SWIG_Python_TypeCast
#define SWIG_TypeDynamicCast   SWIG_Python_TypeDynamicCast
#define SWIG_TypeName   SWIG_Python_TypeName
#define SWIG_TypePrettyName   SWIG_Python_TypePrettyName
#define SWIG_TypeQuery   SWIG_Python_TypeQuery
#define SWIG_TypeClientData   SWIG_Python_TypeClientData
#define SWIG_PackData   SWIG_Python_PackData
#define SWIG_UnpackData   SWIG_Python_UnpackData
#define SWIGEXPORT(a)   a
#define SWIGIMPORT(a)   a
#define SWIGRUNTIME(a)   static a
#define SWIG_PY_INT   1
#define SWIG_PY_FLOAT   2
#define SWIG_PY_STRING   3
#define SWIG_PY_POINTER   4
#define SWIG_PY_BINARY   5
#define SWIG_POINTER_EXCEPTION   0x1
#define SWIG_POINTER_DISOWN   0x2
#define SWIG_fail   goto fail
#define SWIG_ConvertPtr(obj, pp, type, flags)   SWIG_Python_ConvertPtr(obj, pp, type, flags)
#define SWIG_NewPointerObj(p, type, flags)   SWIG_Python_NewPointerObj(p, type, flags)
#define SWIG_MustGetPtr(p, type, argnum, flags)   SWIG_Python_MustGetPtr(p, type, argnum, flags)
#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_ConvertPacked(obj, ptr, sz, ty, flags)   SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
#define SWIG_NewPackedObj(ptr, sz, type)   SWIG_Python_NewPackedObj(ptr, sz, type)
#define SWIG_InstallConstants(d, constants)   SWIG_Python_InstallConstants(d, constants)
#define SWIG_contract_assert(expr, msg)   if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
#define SWIGTYPE_p_MailFolder   swig_types[0]
#define SWIGTYPE_p_char   swig_types[1]
#define SWIGTYPE_p_std__vectorTMailFolder_t   swig_types[2]
#define SWIGTYPE_p_SmartPointerTMailFolderImpl_t   swig_types[3]
#define SWIG_init   init_Buffy
#define SWIG_name   "_Buffy"
#define SWIG_OLDOBJ   1
#define SWIG_NEWOBJ   SWIG_OLDOBJ + 1
#define SWIG_PYSTR   SWIG_NEWOBJ + 1
#define SWIGSTATICINLINE(a)   static a
#define SWIGSTATIC(a)   static a
#define swig_new_array(size, Type)   ((Type*) malloc((size)*sizeof(Type)))
#define swig_delete(cptr)   free((char*)cptr)
#define swig_delete_array(cptr)   free((char*)cptr)
#define swig_const_cast(a, Type)   (Type)(a)
#define swig_static_cast(a, Type)   (Type)(a)
#define swig_reinterpret_cast(a, Type)   (Type)(a)
#define swig_numeric_cast(a, Type)   (Type)(a)
#define swig_new_copy(ptr, Type)   ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
#define SWIG_From_signed_SS_char   PyInt_FromLong
#define SWIG_From_unsigned_SS_char   PyInt_FromLong
#define SWIG_From_short   PyInt_FromLong
#define SWIG_From_unsigned_SS_short   PyInt_FromLong
#define SWIG_From_int   PyInt_FromLong
#define SWIG_From_long   PyInt_FromLong
#define SWIG_From_float   PyFloat_FromDouble
#define SWIG_From_double   PyFloat_FromDouble
#define SWIG_MemoryError   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_UnknownError   99
#define SWIG_exception(a, b)   { SWIG_exception_(a,b); SWIG_fail; }
#define PySequence_Size   PySequence_Length

Typedefs

typedef void *(* swig_converter_func )(void *)
typedef swig_type_info *(* swig_dycast_func )(void **)
typedef swig_type_info swig_type_info
typedef swig_const_info swig_const_info
typedef double(* py_objasdbl_conv )(PyObject *obj)
typedef swig_globalvar swig_globalvar
typedef swig_varlinkobject swig_varlinkobject

Functions

 SWIG_TypeRegister (swig_type_info *ti)
 SWIG_TypeCheck (char *c, swig_type_info *ty)
 SWIG_TypeCast (swig_type_info *ty, void *ptr)
 SWIG_TypeDynamicCast (swig_type_info *ty, void **ptr)
 SWIG_TypeName (const swig_type_info *ty)
 SWIG_TypePrettyName (const swig_type_info *type)
 SWIG_TypeQuery (const char *name)
 SWIG_TypeClientData (swig_type_info *ti, void *clientdata)
 SWIG_PackData (char *c, void *ptr, int sz)
 SWIG_UnpackData (char *c, void *ptr, int sz)
 SWIG_Python_newvarlink (void)
 SWIG_Python_addvarlink (PyObject *p, char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p))
 SWIG_Python_ConvertPtr (PyObject *obj, void **ptr, swig_type_info *ty, int flags)
 SWIG_Python_MustGetPtr (PyObject *obj, swig_type_info *ty, int argnum, int flags)
 SWIG_Python_ConvertPacked (PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags)
 SWIG_Python_NewPointerObj (void *ptr, swig_type_info *type, int own)
 SWIG_Python_NewPackedObj (void *ptr, int sz, swig_type_info *type)
 SWIG_Python_InstallConstants (PyObject *d, swig_const_info constants[])
template<class Type>
const char * type_name ()
template<class Type>
swig_type_infotype_info ()
template<class Type>
PyObject * from (const Type &val)
template<class Type>
PyObject * from_ptr (Type *val, int owner)
template<class Type>
int asptr (PyObject *obj, Type **vptr)
template<class Type>
bool asval (PyObject *obj, Type *val)
template<class Type>
Type as (PyObject *obj, bool te=false)
template<class Type>
bool check (PyObject *obj)
size_t check_index (ptrdiff_t i, size_t size)
size_t slice_index (ptrdiff_t i, size_t size)
template<class Sequence, class Difference>
Sequence::iterator getpos (Sequence *self, Difference i)
template<class Sequence, class Difference>
Sequence::const_iterator cgetpos (const Sequence *self, Difference i)
template<class Sequence, class Difference>
Sequence * getslice (const Sequence *self, Difference i, Difference j)
template<class Sequence, class Difference, class InputSeq>
void setslice (Sequence *self, Difference i, Difference j, const InputSeq &v)
template<class Sequence, class Difference>
void delslice (Sequence *self, Difference i, Difference j)
template<class PySeq, class Seq>
void assign (const PySeq &pyseq, Seq *seq)
 SWIG_From_bool (bool value)
 SWIG_From_unsigned_SS_long (unsigned long value)
 SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
 SWIG_As_unsigned_SS_long (PyObject *obj)
 SWIG_Check_unsigned_SS_long (PyObject *obj)
bool std_vector_Sl_MailFolder_Sg____nonzero__ (std::vector< MailFolder > const *self)
std::vector< MailFolder
>::size_type 
std_vector_Sl_MailFolder_Sg____len__ (std::vector< MailFolder > const *self)
std::vector< MailFolder
>::value_type 
std_vector_Sl_MailFolder_Sg__pop (std::vector< MailFolder > *self)
 SWIG_AsVal_long (PyObject *obj, long *val)
 SWIG_As_long (PyObject *obj)
 SWIG_Check_long (PyObject *obj)
std::vector< MailFolder > * std_vector_Sl_MailFolder_Sg____getslice__ (std::vector< MailFolder > *self, std::vector< MailFolder >::difference_type i, std::vector< MailFolder >::difference_type j)
void std_vector_Sl_MailFolder_Sg____setslice__ (std::vector< MailFolder > *self, std::vector< MailFolder >::difference_type i, std::vector< MailFolder >::difference_type j, std::vector< MailFolder > const &v)
void std_vector_Sl_MailFolder_Sg____delslice__ (std::vector< MailFolder > *self, std::vector< MailFolder >::difference_type i, std::vector< MailFolder >::difference_type j)
void std_vector_Sl_MailFolder_Sg____delitem__ (std::vector< MailFolder > *self, std::vector< MailFolder >::difference_type i)
std::vector< MailFolder
>::value_type const & 
std_vector_Sl_MailFolder_Sg____getitem__ (std::vector< MailFolder > const *self, std::vector< MailFolder >::difference_type i)
void std_vector_Sl_MailFolder_Sg____setitem__ (std::vector< MailFolder > *self, std::vector< MailFolder >::difference_type i, std::vector< MailFolder >::value_type const &x)
void std_vector_Sl_MailFolder_Sg__append (std::vector< MailFolder > *self, std::vector< MailFolder >::value_type const &x)
 SWIG_FromCharArray (const char *carray, size_t size)
 SWIG_From_std_basic_string_Sl_char_Sg_ (const std::string &s)
 SWIG_From_std_string (const std::string &s)
 SWIG_AsCharPtrAndSize (PyObject *obj, char **cptr, size_t *psize)
 SWIG_AsPtr_std_basic_string_Sl_char_Sg_ (PyObject *obj, std::string **val)
 SWIG_AsPtr_std_string (PyObject *obj, std::string **val)
 SWIGEXPORT (void) SWIG_init(void)

Variables

statichere PyTypeObject varlinktype

Define Documentation

#define PySequence_Size   PySequence_Length
 

#define SWIG_addvarlink p,
name,
get_attr,
set_attr   )     SWIG_Python_addvarlink(p, name, get_attr, set_attr)
 

#define swig_const_cast a,
Type   )     (Type)(a)
 

#define SWIG_contract_assert expr,
msg   )     if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
 

#define SWIG_ConvertPacked obj,
ptr,
sz,
ty,
flags   )     SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
 

#define SWIG_ConvertPtr obj,
pp,
type,
flags   )     SWIG_Python_ConvertPtr(obj, pp, type, flags)
 

#define swig_delete cptr   )     free((char*)cptr)
 

#define swig_delete_array cptr   )     free((char*)cptr)
 

#define SWIG_DivisionByZero   6
 

#define SWIG_exception a,
 )     { SWIG_exception_(a,b); SWIG_fail; }
 

#define SWIG_fail   goto fail
 

#define SWIG_From_double   PyFloat_FromDouble
 

#define SWIG_From_float   PyFloat_FromDouble
 

#define SWIG_From_int   PyInt_FromLong
 

#define SWIG_From_long   PyInt_FromLong
 

#define SWIG_From_short   PyInt_FromLong
 

#define SWIG_From_signed_SS_char   PyInt_FromLong
 

#define SWIG_From_unsigned_SS_char   PyInt_FromLong
 

#define SWIG_From_unsigned_SS_short   PyInt_FromLong
 

#define SWIG_IndexError   4
 

#define SWIG_init   init_Buffy
 

#define SWIG_InstallConstants d,
constants   )     SWIG_Python_InstallConstants(d, constants)
 

#define SWIG_IOError   2
 

#define SWIG_MemoryError   1
 

#define SWIG_MustGetPtr p,
type,
argnum,
flags   )     SWIG_Python_MustGetPtr(p, type, argnum, flags)
 

#define SWIG_name   "_Buffy"
 

#define swig_new_array size,
Type   )     ((Type*) malloc((size)*sizeof(Type)))
 

#define swig_new_copy ptr,
Type   )     ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
 

#define SWIG_NEWOBJ   SWIG_OLDOBJ + 1
 

#define SWIG_NewPackedObj ptr,
sz,
type   )     SWIG_Python_NewPackedObj(ptr, sz, type)
 

#define SWIG_NewPointerObj p,
type,
flags   )     SWIG_Python_NewPointerObj(p, type, flags)
 

 
#define SWIG_newvarlink  )     SWIG_Python_newvarlink()
 

#define swig_numeric_cast a,
Type   )     (Type)(a)
 

#define SWIG_OLDOBJ   1
 

#define SWIG_OverflowError   7
 

#define SWIG_PackData   SWIG_Python_PackData
 

#define SWIG_POINTER_DISOWN   0x2
 

#define SWIG_POINTER_EXCEPTION   0x1
 

#define SWIG_PY_BINARY   5
 

#define SWIG_PY_FLOAT   2
 

#define SWIG_PY_INT   1
 

#define SWIG_PY_POINTER   4
 

#define SWIG_PY_STRING   3
 

#define SWIG_PYSTR   SWIG_NEWOBJ + 1
 

#define swig_reinterpret_cast a,
Type   )     (Type)(a)
 

#define SWIG_RuntimeError   3
 

#define swig_static_cast a,
Type   )     (Type)(a)
 

#define SWIG_SyntaxError   8
 

#define SWIG_SystemError   10
 

#define SWIG_TypeCast   SWIG_Python_TypeCast
 

#define SWIG_TypeCheck   SWIG_Python_TypeCheck
 

#define SWIG_TypeClientData   SWIG_Python_TypeClientData
 

#define SWIG_TypeDynamicCast   SWIG_Python_TypeDynamicCast
 

#define SWIG_TypeError   5
 

#define SWIG_TypeName   SWIG_Python_TypeName
 

#define SWIG_TypePrettyName   SWIG_Python_TypePrettyName
 

#define SWIG_TypeQuery   SWIG_Python_TypeQuery
 

#define SWIG_TypeRegister   SWIG_Python_TypeRegister
 

#define SWIG_UnknownError   99
 

#define SWIG_UnpackData   SWIG_Python_UnpackData
 

#define SWIG_ValueError   9
 

#define SWIGEXPORT  )     a
 

#define SWIGIMPORT  )     a
 

#define SWIGPYTHON
 

#define SWIGRUNTIME  )     static a
 

#define SWIGSTATIC  )     static a
 

#define SWIGSTATICINLINE  )     static a
 

#define SWIGTYPE_p_char   swig_types[1]
 

#define SWIGTYPE_p_MailFolder   swig_types[0]
 

#define SWIGTYPE_p_SmartPointerTMailFolderImpl_t   swig_types[3]
 

#define SWIGTYPE_p_std__vectorTMailFolder_t   swig_types[2]
 


Typedef Documentation

typedef double(* py_objasdbl_conv)(PyObject *obj)
 

typedef struct swig_const_info swig_const_info
 

typedef void*(* swig_converter_func)(void *)
 

typedef struct swig_type_info*(* swig_dycast_func)(void **)
 

typedef struct swig_globalvar swig_globalvar
 

typedef struct swig_type_info swig_type_info
 

typedef struct swig_varlinkobject swig_varlinkobject
 


Function Documentation

template<class Type>
Type as PyObject *  obj,
bool  te = false
[inline]
 

template<class Type>
int asptr PyObject *  obj,
Type **  vptr
[inline]
 

template<class PySeq, class Seq>
void assign const PySeq &  pyseq,
Seq *  seq
[inline]
 

template<class Type>
bool asval PyObject *  obj,
Type *  val
[inline]
 

template<class Sequence, class Difference>
Sequence::const_iterator cgetpos const Sequence *  self,
Difference  i
[inline]
 

template<class Type>
bool check PyObject *  obj  )  [inline]
 

size_t check_index ptrdiff_t  i,
size_t  size
[inline]
 

template<class Sequence, class Difference>
void delslice Sequence *  self,
Difference  i,
Difference  j
[inline]
 

template<class Type>
PyObject* from const Type &  val  )  [inline]
 

template<class Type>
PyObject* from_ptr Type *  val,
int  owner
[inline]
 

template<class Sequence, class Difference>
Sequence::iterator getpos Sequence *  self,
Difference  i
[inline]
 

template<class Sequence, class Difference>
Sequence* getslice const Sequence *  self,
Difference  i,
Difference  j
[inline]
 

template<class Sequence, class Difference, class InputSeq>
void setslice Sequence *  self,
Difference  i,
Difference  j,
const InputSeq &  v
[inline]
 

size_t slice_index ptrdiff_t  i,
size_t  size
[inline]
 

void std_vector_Sl_MailFolder_Sg____delitem__ std::vector< MailFolder > *  self,
std::vector< MailFolder >::difference_type  i
 

void std_vector_Sl_MailFolder_Sg____delslice__ std::vector< MailFolder > *  self,
std::vector< MailFolder >::difference_type  i,
std::vector< MailFolder >::difference_type  j
 

std::vector<MailFolder >::value_type const& std_vector_Sl_MailFolder_Sg____getitem__ std::vector< MailFolder > const *  self,
std::vector< MailFolder >::difference_type  i
 

std::vector<MailFolder >* std_vector_Sl_MailFolder_Sg____getslice__ std::vector< MailFolder > *  self,
std::vector< MailFolder >::difference_type  i,
std::vector< MailFolder >::difference_type  j
 

std::vector<MailFolder >::size_type std_vector_Sl_MailFolder_Sg____len__ std::vector< MailFolder > const *  self  ) 
 

bool std_vector_Sl_MailFolder_Sg____nonzero__ std::vector< MailFolder > const *  self  ) 
 

void std_vector_Sl_MailFolder_Sg____setitem__ std::vector< MailFolder > *  self,
std::vector< MailFolder >::difference_type  i,
std::vector< MailFolder >::value_type const &  x
 

void std_vector_Sl_MailFolder_Sg____setslice__ std::vector< MailFolder > *  self,
std::vector< MailFolder >::difference_type  i,
std::vector< MailFolder >::difference_type  j,
std::vector< MailFolder > const &  v
 

void std_vector_Sl_MailFolder_Sg__append std::vector< MailFolder > *  self,
std::vector< MailFolder >::value_type const &  x
 

std::vector<MailFolder >::value_type std_vector_Sl_MailFolder_Sg__pop std::vector< MailFolder > *  self  ) 
 

SWIG_As_long PyObject *  obj  ) 
 

SWIG_As_unsigned_SS_long PyObject *  obj  ) 
 

SWIG_AsCharPtrAndSize PyObject *  obj,
char **  cptr,
size_t *  psize
 

SWIG_AsPtr_std_basic_string_Sl_char_Sg_ PyObject *  obj,
std::string **  val
 

SWIG_AsPtr_std_string PyObject *  obj,
std::string **  val
 

SWIG_AsVal_long PyObject *  obj,
long *  val
 

SWIG_AsVal_unsigned_SS_long PyObject *  obj,
unsigned long *  val
 

SWIG_Check_long PyObject *  obj  ) 
 

SWIG_Check_unsigned_SS_long PyObject *  obj  ) 
 

SWIG_From_bool bool  value  ) 
 

SWIG_From_std_basic_string_Sl_char_Sg_ const std::string &  s  ) 
 

SWIG_From_std_string const std::string &  s  ) 
 

SWIG_From_unsigned_SS_long unsigned long  value  ) 
 

SWIG_FromCharArray const char *  carray,
size_t  size
 

SWIG_PackData char *  c,
void *  ptr,
int  sz
 

SWIG_Python_addvarlink PyObject *  p,
char *  name,
PyObject *(*)(void)  get_attr,
int(*)(PyObject *p)  set_attr
 

SWIG_Python_ConvertPacked PyObject *  obj,
void *  ptr,
int  sz,
swig_type_info ty,
int  flags
 

SWIG_Python_ConvertPtr PyObject *  obj,
void **  ptr,
swig_type_info ty,
int  flags
 

SWIG_Python_InstallConstants PyObject *  d,
swig_const_info  constants[]
 

SWIG_Python_MustGetPtr PyObject *  obj,
swig_type_info ty,
int  argnum,
int  flags
 

SWIG_Python_NewPackedObj void *  ptr,
int  sz,
swig_type_info type
 

SWIG_Python_NewPointerObj void *  ptr,
swig_type_info type,
int  own
 

SWIG_Python_newvarlink void   ) 
 

SWIG_TypeCast swig_type_info ty,
void *  ptr
 

SWIG_TypeCheck char *  c,
swig_type_info ty
 

SWIG_TypeClientData swig_type_info ti,
void *  clientdata
 

SWIG_TypeDynamicCast swig_type_info ty,
void **  ptr
 

SWIG_TypeName const swig_type_info ty  ) 
 

SWIG_TypePrettyName const swig_type_info type  ) 
 

SWIG_TypeQuery const char *  name  ) 
 

SWIG_TypeRegister swig_type_info ti  ) 
 

SWIG_UnpackData char *  c,
void *  ptr,
int  sz
 

SWIGEXPORT void   ) 
 

template<class Type>
swig_type_info* type_info  )  [inline]
 

template<class Type>
const char* type_name  )  [inline]
 


Variable Documentation

statichere PyTypeObject varlinktype
 


Generated on Tue Mar 1 01:02:04 2005 for libbuffy by  doxygen 1.4.0