SetTrie
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
py_settrie_wrap.cpp File Reference
#include <Python.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <math.h>
Include dependency graph for py_settrie_wrap.cpp:

Classes

struct  swig_type_info
 
struct  swig_cast_info
 
struct  swig_module_info
 
struct  swig_const_info
 
struct  SwigPyClientData
 
struct  SwigPyObject
 
struct  SwigPyPacked
 
struct  swig_globalvar
 
struct  swig_varlinkobject
 

Macros

#define SWIGPYTHON
 
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
 
#define SWIGTEMPLATEDISAMBIGUATOR
 
#define SWIGINLINE
 
#define SWIGUNUSED
 
#define SWIGUNUSEDPARM(p)   p SWIGUNUSED
 
#define SWIGINTERN   static SWIGUNUSED
 
#define SWIGINTERNINLINE   SWIGINTERN SWIGINLINE
 
#define SWIGEXPORT
 
#define SWIGSTDCALL
 
#define SWIG_RUNTIME_VERSION   "4"
 
#define SWIG_TYPE_TABLE_NAME
 
#define SWIGRUNTIME   SWIGINTERN
 
#define SWIGRUNTIMEINLINE   SWIGRUNTIME SWIGINLINE
 
#define SWIG_BUFFER_SIZE   1024
 
#define SWIG_POINTER_DISOWN   0x1
 
#define SWIG_CAST_NEW_MEMORY   0x2
 
#define SWIG_POINTER_NO_NULL   0x4
 
#define SWIG_POINTER_OWN   0x1
 
#define SWIG_OK   (0)
 
#define SWIG_ERROR   (-1)
 
#define SWIG_IsOK(r)   (r >= 0)
 
#define SWIG_ArgError(r)   ((r != SWIG_ERROR) ? r : SWIG_TypeError)
 
#define SWIG_CASTRANKLIMIT   (1 << 8)
 
#define SWIG_NEWOBJMASK   (SWIG_CASTRANKLIMIT << 1)
 
#define SWIG_TMPOBJMASK   (SWIG_NEWOBJMASK << 1)
 
#define SWIG_BADOBJ   (SWIG_ERROR)
 
#define SWIG_OLDOBJ   (SWIG_OK)
 
#define SWIG_NEWOBJ   (SWIG_OK | SWIG_NEWOBJMASK)
 
#define SWIG_TMPOBJ   (SWIG_OK | SWIG_TMPOBJMASK)
 
#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))
 
#define SWIG_AddCast(r)   (r)
 
#define SWIG_CheckState(r)   (SWIG_IsOK(r) ? 1 : 0)
 
#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
 
#define Py_TYPE(op)   ((op)->ob_type)
 
#define SWIG_Python_str_FromFormat   PyString_FromFormat
 
#define SWIG_Python_str_DelForPy3(x)
 
#define PyObject_DEL   PyObject_Del
 
#define SWIGPY_USE_CAPSULE
 
#define SWIGPY_CAPSULE_NAME   ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
 
#define PyDescr_TYPE(x)   (((PyDescrObject *)(x))->d_type)
 
#define PyDescr_NAME(x)   (((PyDescrObject *)(x))->d_name)
 
#define Py_hash_t   long
 
#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
 
#define SWIG_PY_POINTER   4
 
#define SWIG_PY_BINARY   5
 
#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)
 
#define SWIG_NewPointerObj(ptr, type, flags)   SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
 
#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
 
#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)
 
#define SWIG_ConvertInstance(obj, pptr, type, flags)   SWIG_ConvertPtr(obj, pptr, type, flags)
 
#define SWIG_NewInstanceObj(ptr, type, flags)   SWIG_NewPointerObj(ptr, type, flags)
 
#define SWIG_ConvertFunctionPtr(obj, pptr, type)   SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
 
#define SWIG_NewFunctionPtrObj(ptr, type)   SWIG_Python_NewPointerObj(NULL, ptr, type, 0)
 
#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)
 
#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
 
#define SWIG_Python_Raise(obj, type, desc)   SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
 
#define SWIG_Python_CallFunctor(functor, obj)   PyObject_CallFunctionObjArgs(functor, obj, NULL);
 
#define SWIG_STATIC_POINTER(var)   var = 0; if (!var) var
 
#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)
 
#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)
 
#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 SWIGTYPE_p_char   swig_types[0]
 
#define SWIG_TypeQuery(name)   SWIG_TypeQueryModule(&swig_module, &swig_module, name)
 
#define SWIG_MangledTypeQuery(name)   SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
 
#define SWIG_TypeQuery   SWIG_Python_TypeQuery
 
#define SWIG_init   init_py_settrie
 
#define SWIG_name   "_py_settrie"
 
#define SWIGVERSION   0x040002
 
#define SWIG_VERSION   SWIGVERSION
 
#define SWIG_as_voidptr(a)   (void *)((const void *)(a))
 
#define SWIG_as_voidptrptr(a)   ((void)SWIG_as_voidptr(*a),(void**)(a))
 
#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)
 

Typedefs

typedef void *(* swig_converter_func) (void *, int *)
 
typedef struct swig_type_info *(* swig_dycast_func) (void **)
 
typedef struct swig_type_info swig_type_info
 
typedef struct swig_cast_info swig_cast_info
 
typedef struct swig_module_info swig_module_info
 
typedef struct swig_const_info swig_const_info
 
typedef struct swig_globalvar swig_globalvar
 
typedef struct swig_varlinkobject swig_varlinkobject
 

Functions

SWIGRUNTIME int SWIG_TypeNameComp (const char *f1, const char *l1, const char *f2, const char *l2)
 
SWIGRUNTIME int SWIG_TypeCmp (const char *nb, const char *tb)
 
SWIGRUNTIME int SWIG_TypeEquiv (const char *nb, const char *tb)
 
SWIGRUNTIME swig_cast_infoSWIG_TypeCheck (const char *c, swig_type_info *ty)
 
SWIGRUNTIME swig_cast_infoSWIG_TypeCheckStruct (swig_type_info *from, swig_type_info *ty)
 
SWIGRUNTIMEINLINE void * SWIG_TypeCast (swig_cast_info *ty, void *ptr, int *newmemory)
 
SWIGRUNTIME swig_type_infoSWIG_TypeDynamicCast (swig_type_info *ty, void **ptr)
 
SWIGRUNTIMEINLINE const char * SWIG_TypeName (const swig_type_info *ty)
 
SWIGRUNTIME const char * SWIG_TypePrettyName (const swig_type_info *type)
 
SWIGRUNTIME void SWIG_TypeClientData (swig_type_info *ti, void *clientdata)
 
SWIGRUNTIME void SWIG_TypeNewClientData (swig_type_info *ti, void *clientdata)
 
SWIGRUNTIME swig_type_infoSWIG_MangledTypeQueryModule (swig_module_info *start, swig_module_info *end, const char *name)
 
SWIGRUNTIME swig_type_infoSWIG_TypeQueryModule (swig_module_info *start, swig_module_info *end, const char *name)
 
SWIGRUNTIME char * SWIG_PackData (char *c, void *ptr, size_t sz)
 
SWIGRUNTIME const char * SWIG_UnpackData (const char *c, void *ptr, size_t sz)
 
SWIGRUNTIME char * SWIG_PackVoidPtr (char *buff, void *ptr, const char *name, size_t bsz)
 
SWIGRUNTIME const char * SWIG_UnpackVoidPtr (const char *c, void **ptr, const char *name)
 
SWIGRUNTIME char * SWIG_PackDataName (char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
 
SWIGRUNTIME const char * SWIG_UnpackDataName (const char *c, void *ptr, size_t sz, const char *name)
 
SWIGINTERN char * SWIG_Python_str_AsChar (PyObject *str)
 
SWIGINTERN PyObject * SWIG_Python_str_FromChar (const char *c)
 
SWIGRUNTIME PyObject * SWIG_Python_ErrorType (int code)
 
SWIGRUNTIME void SWIG_Python_AddErrorMsg (const char *mesg)
 
SWIGRUNTIME int SWIG_Python_TypeErrorOccurred (PyObject *obj)
 
SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError (const char *message)
 
SWIGINTERN void SWIG_Python_SetErrorObj (PyObject *errtype, PyObject *obj)
 
SWIGINTERN void SWIG_Python_SetErrorMsg (PyObject *errtype, const char *msg)
 
SWIGINTERN void SWIG_Python_SetConstant (PyObject *d, const char *name, PyObject *obj)
 
SWIGINTERN PyObject * SWIG_Python_AppendOutput (PyObject *result, PyObject *obj)
 
SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple (PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
 
SWIGINTERN int SWIG_Python_CheckNoKeywords (PyObject *kwargs, const char *name)
 
SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void (void)
 
SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit (swig_type_info *ty)
 
SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType (swig_type_info *desc)
 
SWIGRUNTIME SwigPyClientDataSwigPyClientData_New (PyObject *obj)
 
SWIGRUNTIME void SwigPyClientData_Del (SwigPyClientData *data)
 
SWIGRUNTIME PyObject * SwigPyObject_long (SwigPyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_format (const char *fmt, SwigPyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_oct (SwigPyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_hex (SwigPyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_repr (SwigPyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_repr2 (PyObject *v, PyObject *SWIGUNUSEDPARM(args))
 
SWIGRUNTIME int SwigPyObject_compare (SwigPyObject *v, SwigPyObject *w)
 
SWIGRUNTIME PyObject * SwigPyObject_richcompare (SwigPyObject *v, SwigPyObject *w, int op)
 
SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce (void)
 
SWIGRUNTIME PyTypeObject * SwigPyObject_type (void)
 
SWIGRUNTIMEINLINE int SwigPyObject_Check (PyObject *op)
 
SWIGRUNTIME PyObject * SwigPyObject_New (void *ptr, swig_type_info *ty, int own)
 
SWIGRUNTIME void SwigPyObject_dealloc (PyObject *v)
 
SWIGRUNTIME PyObject * SwigPyObject_append (PyObject *v, PyObject *next)
 
SWIGRUNTIME PyObject * SwigPyObject_next (PyObject *v, PyObject *SWIGUNUSEDPARM(args))
 
SWIGINTERN PyObject * SwigPyObject_disown (PyObject *v, PyObject *SWIGUNUSEDPARM(args))
 
SWIGINTERN PyObject * SwigPyObject_acquire (PyObject *v, PyObject *SWIGUNUSEDPARM(args))
 
SWIGINTERN PyObject * SwigPyObject_own (PyObject *v, PyObject *args)
 
SWIGRUNTIME PyObject * SwigPyPacked_repr (SwigPyPacked *v)
 
SWIGRUNTIME PyObject * SwigPyPacked_str (SwigPyPacked *v)
 
SWIGRUNTIME int SwigPyPacked_compare (SwigPyPacked *v, SwigPyPacked *w)
 
SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce (void)
 
SWIGRUNTIME PyTypeObject * SwigPyPacked_type (void)
 
SWIGRUNTIMEINLINE int SwigPyPacked_Check (PyObject *op)
 
SWIGRUNTIME void SwigPyPacked_dealloc (PyObject *v)
 
SWIGRUNTIME PyObject * SwigPyPacked_New (void *ptr, size_t size, swig_type_info *ty)
 
SWIGRUNTIME swig_type_infoSwigPyPacked_UnpackData (PyObject *obj, void *ptr, size_t size)
 
SWIGRUNTIME PyObject * SWIG_This (void)
 
SWIGRUNTIME SwigPyObjectSWIG_Python_GetSwigThis (PyObject *pyobj)
 
SWIGRUNTIME int SWIG_Python_AcquirePtr (PyObject *obj, int own)
 
SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn (PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own)
 
SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr (PyObject *obj, void **ptr, swig_type_info *ty)
 
SWIGRUNTIME int SWIG_Python_ConvertPacked (PyObject *obj, void *ptr, size_t sz, swig_type_info *ty)
 
SWIGRUNTIME PyObject * SWIG_Python_NewShadowInstance (SwigPyClientData *data, PyObject *swig_this)
 
SWIGRUNTIME int SWIG_Python_SetSwigThis (PyObject *inst, PyObject *swig_this)
 
SWIGINTERN PyObject * SWIG_Python_InitShadowInstance (PyObject *args)
 
SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj (PyObject *self, void *ptr, swig_type_info *type, int flags)
 
SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj (void *ptr, size_t sz, swig_type_info *type)
 
SWIGRUNTIME swig_module_infoSWIG_Python_GetModule (void *SWIGUNUSEDPARM(clientdata))
 
SWIGRUNTIME void SWIG_Python_DestroyModule (PyObject *obj)
 
SWIGRUNTIME void SWIG_Python_SetModule (swig_module_info *swig_module)
 
SWIGRUNTIME PyObject * SWIG_Python_TypeCache (void)
 
SWIGRUNTIME swig_type_infoSWIG_Python_TypeQuery (const char *type)
 
SWIGRUNTIME int SWIG_Python_AddErrMesg (const char *mesg, int infront)
 
SWIGRUNTIME int SWIG_Python_ArgFail (int argnum)
 
SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc (PyObject *self)
 
SWIGRUNTIME void SWIG_Python_TypeError (const char *type, PyObject *obj)
 
SWIGRUNTIME void * SWIG_Python_MustGetPtr (PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags)
 
SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc (const char *name)
 
SWIGINTERN PyObject * SWIG_PyInstanceMethod_New (PyObject *SWIGUNUSEDPARM(self), PyObject *func)
 
SWIGINTERN PyObject * SWIG_PyStaticMethod_New (PyObject *SWIGUNUSEDPARM(self), PyObject *func)
 
int new_settrie ()
 
void destroy_settrie (int st_id)
 
void insert (int st_id, char *set, char *str_id)
 
char * find (int st_id, char *set)
 
int supersets (int st_id, char *set)
 
int subsets (int st_id, char *set)
 
int elements (int st_id, int set_id)
 
int next_set_id (int st_id, int set_id)
 
int num_sets (int st_id)
 
char * set_name (int st_id, int set_id)
 
int remove (int st_id, int set_id)
 
int purge (int st_id, int dry_run)
 
int iterator_size (int iter_id)
 
char * iterator_next (int iter_id)
 
void destroy_iterator (int iter_id)
 
int save_as_binary_image (int st_id)
 
bool push_binary_image_block (int st_id, char *p_block)
 
int binary_image_size (int image_id)
 
char * binary_image_next (int image_id)
 
void destroy_binary_image (int image_id)
 
SWIGINTERNINLINE PyObject * SWIG_From_int (int value)
 
SWIGINTERN int SWIG_AsVal_double (PyObject *obj, double *val)
 
SWIGINTERNINLINE int SWIG_CanCastAsInteger (double *d, double min, double max)
 
SWIGINTERN int SWIG_AsVal_long (PyObject *obj, long *val)
 
SWIGINTERN int SWIG_AsVal_int (PyObject *obj, int *val)
 
SWIGINTERN swig_type_infoSWIG_pchar_descriptor (void)
 
SWIGINTERN int SWIG_AsCharPtrAndSize (PyObject *obj, char **cptr, size_t *psize, int *alloc)
 
SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize (const char *carray, size_t size)
 
SWIGINTERNINLINE PyObject * SWIG_FromCharPtr (const char *cptr)
 
SWIGINTERNINLINE PyObject * SWIG_From_bool (bool value)
 
SWIGINTERN PyObject * _wrap_new_settrie (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_destroy_settrie (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_insert (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_find (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_supersets (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_subsets (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_elements (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_next_set_id (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_num_sets (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_set_name (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_remove (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_purge (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_iterator_size (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_iterator_next (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_destroy_iterator (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_save_as_binary_image (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_push_binary_image_block (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_binary_image_size (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_binary_image_next (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGINTERN PyObject * _wrap_destroy_binary_image (PyObject *SWIGUNUSEDPARM(self), PyObject *args)
 
SWIGRUNTIME void SWIG_InitializeModule (void *clientdata)
 
SWIGRUNTIME void SWIG_PropagateClientData (void)
 
SWIGINTERN PyObject * swig_varlink_repr (swig_varlinkobject *SWIGUNUSEDPARM(v))
 
SWIGINTERN PyObject * swig_varlink_str (swig_varlinkobject *v)
 
SWIGINTERN void swig_varlink_dealloc (swig_varlinkobject *v)
 
SWIGINTERN PyObject * swig_varlink_getattr (swig_varlinkobject *v, char *n)
 
SWIGINTERN int swig_varlink_setattr (swig_varlinkobject *v, char *n, PyObject *p)
 
SWIGINTERN PyTypeObject * swig_varlink_type (void)
 
SWIGINTERN PyObject * SWIG_Python_newvarlink (void)
 
SWIGINTERN void SWIG_Python_addvarlink (PyObject *p, const char *name, PyObject *(*get_attr)(void), int(*set_attr)(PyObject *p))
 
SWIGINTERN PyObject * SWIG_globals (void)
 
SWIGINTERN void SWIG_Python_InstallConstants (PyObject *d, swig_const_info constants[])
 
SWIGINTERN void SWIG_Python_FixMethods (PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial)
 

Macro Definition Documentation

◆ Py_hash_t

#define Py_hash_t   long

◆ Py_TYPE

#define Py_TYPE (   op)    ((op)->ob_type)

◆ PyDescr_NAME

#define PyDescr_NAME (   x)    (((PyDescrObject *)(x))->d_name)

◆ PyDescr_TYPE

#define PyDescr_TYPE (   x)    (((PyDescrObject *)(x))->d_type)

◆ PyObject_DEL

#define PyObject_DEL   PyObject_Del

◆ SWIG_AcquirePtr

#define SWIG_AcquirePtr (   ptr,
  src 
)    SWIG_Python_AcquirePtr(ptr, src)

◆ SWIG_AddCast

#define SWIG_AddCast (   r)    (r)

◆ SWIG_AddNewMask

#define SWIG_AddNewMask (   r)    (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)

◆ SWIG_AddTmpMask

#define SWIG_AddTmpMask (   r)    (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)

◆ SWIG_addvarlink

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

◆ SWIG_arg_fail

#define SWIG_arg_fail (   arg)    SWIG_Python_ArgFail(arg)

◆ SWIG_ArgError

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

◆ SWIG_as_voidptr

#define SWIG_as_voidptr (   a)    (void *)((const void *)(a))

◆ SWIG_as_voidptrptr

#define SWIG_as_voidptrptr (   a)    ((void)SWIG_as_voidptr(*a),(void**)(a))

◆ SWIG_AttributeError

#define SWIG_AttributeError   -11

◆ SWIG_BADOBJ

#define SWIG_BADOBJ   (SWIG_ERROR)

◆ SWIG_BUFFER_SIZE

#define SWIG_BUFFER_SIZE   1024

◆ SWIG_BUILTIN_INIT

#define SWIG_BUILTIN_INIT   (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)

◆ SWIG_BUILTIN_TP_INIT

#define SWIG_BUILTIN_TP_INIT   (SWIG_POINTER_OWN << 2)

◆ SWIG_CAST_NEW_MEMORY

#define SWIG_CAST_NEW_MEMORY   0x2

◆ SWIG_CASTRANKLIMIT

#define SWIG_CASTRANKLIMIT   (1 << 8)

◆ SWIG_CheckImplicit

#define SWIG_CheckImplicit (   ty)    SWIG_Python_CheckImplicit(ty)

◆ SWIG_CheckState

#define SWIG_CheckState (   r)    (SWIG_IsOK(r) ? 1 : 0)

◆ SWIG_contract_assert

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

◆ SWIG_ConvertFunctionPtr

#define SWIG_ConvertFunctionPtr (   obj,
  pptr,
  type 
)    SWIG_Python_ConvertFunctionPtr(obj, pptr, type)

◆ SWIG_ConvertInstance

#define SWIG_ConvertInstance (   obj,
  pptr,
  type,
  flags 
)    SWIG_ConvertPtr(obj, pptr, type, flags)

◆ SWIG_ConvertMember

#define SWIG_ConvertMember (   obj,
  ptr,
  sz,
  ty 
)    SWIG_Python_ConvertPacked(obj, ptr, sz, ty)

◆ SWIG_ConvertPacked

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

◆ SWIG_ConvertPtr

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

◆ SWIG_ConvertPtrAndOwn

#define SWIG_ConvertPtrAndOwn (   obj,
  pptr,
  type,
  flags,
  own 
)    SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)

◆ SWIG_DelNewMask

#define SWIG_DelNewMask (   r)    (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)

◆ SWIG_DelTmpMask

#define SWIG_DelTmpMask (   r)    (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)

◆ SWIG_DivisionByZero

#define SWIG_DivisionByZero   -6

◆ SWIG_ERROR

#define SWIG_ERROR   (-1)

◆ SWIG_Error

#define SWIG_Error (   code,
  msg 
)    SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)

◆ SWIG_ErrorType

#define SWIG_ErrorType (   code)    SWIG_Python_ErrorType(code)

◆ SWIG_exception_fail

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

◆ SWIG_fail

#define SWIG_fail   goto fail

◆ SWIG_GetModule

#define SWIG_GetModule (   clientdata)    SWIG_Python_GetModule(clientdata)

◆ SWIG_IndexError

#define SWIG_IndexError   -4

◆ SWIG_init

SWIGEXPORT void SWIG_init (   void)    init_py_settrie

◆ SWIG_InstallConstants

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

◆ SWIG_InternalNewPointerObj

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

◆ SWIG_IOError

#define SWIG_IOError   -2

◆ SWIG_IsNewObj

#define SWIG_IsNewObj (   r)    (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))

◆ SWIG_IsOK

#define SWIG_IsOK (   r)    (r >= 0)

◆ SWIG_IsTmpObj

#define SWIG_IsTmpObj (   r)    (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

◆ SWIG_MangledTypeQuery

#define SWIG_MangledTypeQuery (   name)    SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

◆ SWIG_MemoryError

#define SWIG_MemoryError   -12

◆ SWIG_MustGetPtr

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

◆ SWIG_name

#define SWIG_name   "_py_settrie"

◆ SWIG_NewClientData

#define SWIG_NewClientData (   obj)    SwigPyClientData_New(obj)

◆ SWIG_NewFunctionPtrObj

#define SWIG_NewFunctionPtrObj (   ptr,
  type 
)    SWIG_Python_NewPointerObj(NULL, ptr, type, 0)

◆ SWIG_NewInstanceObj

#define SWIG_NewInstanceObj (   ptr,
  type,
  flags 
)    SWIG_NewPointerObj(ptr, type, flags)

◆ SWIG_NewMemberObj

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

◆ SWIG_NEWOBJ

#define SWIG_NEWOBJ   (SWIG_OK | SWIG_NEWOBJMASK)

◆ SWIG_NEWOBJMASK

#define SWIG_NEWOBJMASK   (SWIG_CASTRANKLIMIT << 1)

◆ SWIG_NewPackedObj

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

◆ SWIG_NewPointerObj

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

◆ SWIG_newvarlink

#define SWIG_newvarlink ( )    SWIG_Python_newvarlink()

◆ SWIG_NullReferenceError

#define SWIG_NullReferenceError   -13

◆ SWIG_OK

#define SWIG_OK   (0)

◆ SWIG_OLDOBJ

#define SWIG_OLDOBJ   (SWIG_OK)

◆ SWIG_OverflowError

#define SWIG_OverflowError   -7

◆ swig_owntype

#define swig_owntype   int

◆ SWIG_POINTER_DISOWN

#define SWIG_POINTER_DISOWN   0x1

◆ SWIG_POINTER_EXCEPTION

#define SWIG_POINTER_EXCEPTION   0

◆ SWIG_POINTER_IMPLICIT_CONV

#define SWIG_POINTER_IMPLICIT_CONV   (SWIG_POINTER_DISOWN << 1)

◆ SWIG_POINTER_NEW

#define SWIG_POINTER_NEW   (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)

◆ SWIG_POINTER_NO_NULL

#define SWIG_POINTER_NO_NULL   0x4

◆ SWIG_POINTER_NOSHADOW

#define SWIG_POINTER_NOSHADOW   (SWIG_POINTER_OWN << 1)

◆ SWIG_POINTER_OWN

#define SWIG_POINTER_OWN   0x1

◆ SWIG_PY_BINARY

#define SWIG_PY_BINARY   5

◆ SWIG_PY_POINTER

#define SWIG_PY_POINTER   4

◆ SWIG_Python_CallFunctor

#define SWIG_Python_CallFunctor (   functor,
  obj 
)    PyObject_CallFunctionObjArgs(functor, obj, NULL);

◆ SWIG_Python_ConvertPtr

#define SWIG_Python_ConvertPtr (   obj,
  pptr,
  type,
  flags 
)    SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)

◆ SWIG_PYTHON_DIRECTOR_NO_VTABLE

#define SWIG_PYTHON_DIRECTOR_NO_VTABLE

◆ SWIG_PYTHON_INITIALIZE_THREADS

#define SWIG_PYTHON_INITIALIZE_THREADS

◆ SWIG_Python_Raise

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

◆ SWIG_Python_str_DelForPy3

#define SWIG_Python_str_DelForPy3 (   x)

◆ SWIG_Python_str_FromFormat

#define SWIG_Python_str_FromFormat   PyString_FromFormat

◆ SWIG_PYTHON_THREAD_BEGIN_ALLOW

#define SWIG_PYTHON_THREAD_BEGIN_ALLOW

◆ SWIG_PYTHON_THREAD_BEGIN_BLOCK

#define SWIG_PYTHON_THREAD_BEGIN_BLOCK

◆ SWIG_PYTHON_THREAD_END_ALLOW

#define SWIG_PYTHON_THREAD_END_ALLOW

◆ SWIG_PYTHON_THREAD_END_BLOCK

#define SWIG_PYTHON_THREAD_END_BLOCK

◆ SWIG_RUNTIME_VERSION

#define SWIG_RUNTIME_VERSION   "4"

◆ SWIG_RuntimeError

#define SWIG_RuntimeError   -3

◆ SWIG_SetErrorMsg

#define SWIG_SetErrorMsg   SWIG_Python_SetErrorMsg

◆ SWIG_SetErrorObj

#define SWIG_SetErrorObj   SWIG_Python_SetErrorObj

◆ SWIG_SetModule

#define SWIG_SetModule (   clientdata,
  pointer 
)    SWIG_Python_SetModule(pointer)

◆ SWIG_STATIC_POINTER

#define SWIG_STATIC_POINTER (   var)    var = 0; if (!var) var

◆ SWIG_SyntaxError

#define SWIG_SyntaxError   -8

◆ SWIG_SystemError

#define SWIG_SystemError   -10

◆ SWIG_TMPOBJ

#define SWIG_TMPOBJ   (SWIG_OK | SWIG_TMPOBJMASK)

◆ SWIG_TMPOBJMASK

#define SWIG_TMPOBJMASK   (SWIG_NEWOBJMASK << 1)

◆ SWIG_TYPE_TABLE_NAME

#define SWIG_TYPE_TABLE_NAME

◆ SWIG_TypeError

#define SWIG_TypeError   -5

◆ SWIG_TypeQuery [1/2]

#define SWIG_TypeQuery (   name)    SWIG_TypeQueryModule(&swig_module, &swig_module, name)

◆ SWIG_TypeQuery [2/2]

#define SWIG_TypeQuery   SWIG_Python_TypeQuery

◆ SWIG_UnknownError

#define SWIG_UnknownError   -1

◆ SWIG_ValueError

#define SWIG_ValueError   -9

◆ SWIG_VERSION

#define SWIG_VERSION   SWIGVERSION

◆ SWIGEXPORT

#define SWIGEXPORT

◆ SWIGINLINE

#define SWIGINLINE

◆ SWIGINTERN

#define SWIGINTERN   static SWIGUNUSED

◆ SWIGINTERNINLINE

#define SWIGINTERNINLINE   SWIGINTERN SWIGINLINE

◆ SWIGPY_CAPSULE_NAME

#define SWIGPY_CAPSULE_NAME   ("swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)

◆ SWIGPY_USE_CAPSULE

#define SWIGPY_USE_CAPSULE

◆ SWIGPYTHON

#define SWIGPYTHON

◆ SWIGRUNTIME

#define SWIGRUNTIME   SWIGINTERN

◆ SWIGRUNTIMEINLINE

#define SWIGRUNTIMEINLINE   SWIGRUNTIME SWIGINLINE

◆ SWIGSTDCALL

#define SWIGSTDCALL

◆ SWIGTEMPLATEDISAMBIGUATOR

#define SWIGTEMPLATEDISAMBIGUATOR

◆ SWIGTYPE_p_char

#define SWIGTYPE_p_char   swig_types[0]

◆ SWIGUNUSED

#define SWIGUNUSED

◆ SWIGUNUSEDPARM

#define SWIGUNUSEDPARM (   p)    p SWIGUNUSED

◆ SWIGVERSION

#define SWIGVERSION   0x040002

Typedef Documentation

◆ swig_cast_info

◆ swig_const_info

◆ swig_converter_func

typedef void *(* swig_converter_func) (void *, int *)

◆ swig_dycast_func

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

◆ swig_globalvar

◆ swig_module_info

◆ swig_type_info

◆ swig_varlinkobject

Function Documentation

◆ _wrap_binary_image_next()

SWIGINTERN PyObject * _wrap_binary_image_next ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_binary_image_size()

SWIGINTERN PyObject * _wrap_binary_image_size ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_destroy_binary_image()

SWIGINTERN PyObject * _wrap_destroy_binary_image ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_destroy_iterator()

SWIGINTERN PyObject * _wrap_destroy_iterator ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_destroy_settrie()

SWIGINTERN PyObject * _wrap_destroy_settrie ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_elements()

SWIGINTERN PyObject * _wrap_elements ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_find()

SWIGINTERN PyObject * _wrap_find ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_insert()

SWIGINTERN PyObject * _wrap_insert ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_iterator_next()

SWIGINTERN PyObject * _wrap_iterator_next ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_iterator_size()

SWIGINTERN PyObject * _wrap_iterator_size ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_new_settrie()

SWIGINTERN PyObject * _wrap_new_settrie ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_next_set_id()

SWIGINTERN PyObject * _wrap_next_set_id ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_num_sets()

SWIGINTERN PyObject * _wrap_num_sets ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_purge()

SWIGINTERN PyObject * _wrap_purge ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_push_binary_image_block()

SWIGINTERN PyObject * _wrap_push_binary_image_block ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_remove()

SWIGINTERN PyObject * _wrap_remove ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_save_as_binary_image()

SWIGINTERN PyObject * _wrap_save_as_binary_image ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_set_name()

SWIGINTERN PyObject * _wrap_set_name ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_subsets()

SWIGINTERN PyObject * _wrap_subsets ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ _wrap_supersets()

SWIGINTERN PyObject * _wrap_supersets ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  args 
)

◆ binary_image_next()

char * binary_image_next ( int  image_id)

Return the first unread binary images block in an iterator returned by a save_as_binary_image() call.

Parameters
image_idThe image_id returned by a previous save_as_binary_image() call.
Returns
The the binary image block serialized as base64 or an empty string on failure.

◆ binary_image_size()

int binary_image_size ( int  image_id)

Return the number of unread binary images blocks in an iterator returned by a save_as_binary_image() call.

Parameters
image_idThe image_id returned by a previous save_as_binary_image() call.
Returns
The number of unread blocks in the iterator.

◆ destroy_binary_image()

void destroy_binary_image ( int  image_id)

Destroy an iterator for a binary image(returned by save_as_binary_image()).

Parameters
image_idThe image_id returned by a previous save_as_binary_image() call.

◆ destroy_iterator()

void destroy_iterator ( int  iter_id)

Destroy an iterator (returned by subsets() or supersets()).

Parameters
iter_idThe iter_id returned by a previous subsets() or supersets() call.

◆ destroy_settrie()

void destroy_settrie ( int  st_id)

Destroy a SetTrie object that was used via the Python interface.

Parameters
st_idThe st_id returned by a previous new_settrie() call.

◆ elements()

int elements ( int  st_id,
int  set_id 
)

Return all the elements in a set from a SetTrie identified by set_id as an iterator of strings.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
set_idA valid set_id returned by a successful next_set_id() call.
Returns
0 on error or the empty set, or an iter_id > 0 that can be used to retrieve the result using iterator_next()/iterator_size() and must be explicitly destroyed via destroy_iterator()

◆ find()

char * find ( int  st_id,
char *  set 
)

Find a Python set (serialized by a str() call) for a complete match inside a SetTrie object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
setA Python set serialized by a str() call.
Returns
The str_id string that was given to the set when it was inserted.

◆ insert()

void insert ( int  st_id,
char *  set,
char *  str_id 
)

Insert a Python set (serialized by a str() call) into a SetTrie object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
setA Python set serialized by a str() call.
str_idAn id representing this set that will be returned in searches.

◆ iterator_next()

char * iterator_next ( int  iter_id)

Return the first unread item in an iterator (returned by subsets() or supersets()).

Parameters
iter_idThe iter_id returned by a previous subsets() or supersets() call.
Returns
The str_id of an insert()-ed set that matches the query.

◆ iterator_size()

int iterator_size ( int  iter_id)

Return the number of unread items in an iterator (returned by subsets() or supersets()).

Parameters
iter_idThe iter_id returned by a previous subsets() or supersets() call.
Returns
The number of unread items in the iterator.

◆ new_settrie()

int new_settrie ( )

Create a new SetTrie object that can be used via the Python interface.

Returns
A unique ID that can be passed as the st_id parameter for any method in the Python interface.

To free the resources allocated by this ID, the (python) caller must call destroy_settrie() with the st_id and never use the same st_id after that.

◆ next_set_id()

int next_set_id ( int  st_id,
int  set_id 
)

Return the integer set_id of the next set stored in a SetTrie after a given set_id to iterate over all the sets in the object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
set_idA valid set_id returned by previous call or the constant -1 to return the first set. Note that 0 may be the set_id of the empty set in case the empty set is in the SetTrie.
Returns
A unique integer set_id that can be used for iterating, calling set_name() or elements(). On error, it will return -3 if the st_id or the set_id is invalid and -2 if the set_id given is the last set in the object or the object is empty.

◆ num_sets()

int num_sets ( int  st_id)

Return the number of sets in a SetTrie object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
Returns
The number or -1 on invalid st_id.

◆ purge()

int purge ( int  st_id,
int  dry_run 
)

Purges (reassigns node integer ids and frees RAM) after a series of remove() calls.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
dry_runIf nonzero, does nothing and returns the number of dirty nodes.
Returns
A positive num_dirty_nodes on dry_run, zero on successful completion or a negative error code.

◆ push_binary_image_block()

bool push_binary_image_block ( int  st_id,
char *  p_block 
)

Pushes raw image blocks into an initially empty SetTrie object and finally creates it already populated with the binary image.

Parameters
st_idThe st_id returned by a previous new_settrie() call. The object must be empty (never inserted).
p_blockIf non-empty, a block in the right order making a binary image obtained for a previous save_as_binary_image() call. If empty, an order to .load() the SetTrie object and destroyed the previously stored blocks.
Returns
True on success.

◆ remove()

int remove ( int  st_id,
int  set_id 
)

Removes a set from the object by its unique integer id.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
set_idA valid set_id returned by a successful next_set_id() call.
Returns
0 on success or a negative error code.

◆ save_as_binary_image()

int save_as_binary_image ( int  st_id)

Saves a SetTrie object as a BinaryImage.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
Returns
0 on error, or a binary_image_id > 0 which is the same as st_id and must be destroyed using destroy_binary_image()

◆ set_name()

char * set_name ( int  st_id,
int  set_id 
)

Return the name (Python id) of a set stored in a SetTrie identified by its binary (int) set_id.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
set_idA valid set_id returned by a successful next_set_id() call.
Returns
An empty string on any error and the Python id of the set if both st_id and set_id are valid.

◆ subsets()

int subsets ( int  st_id,
char *  set 
)

Find all the subsets of a given Python set (serialized by a str() call) stored inside a SetTrie object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
setA Python set serialized by a str() call.
Returns
0 if no sets were found, or an iter_id > 0 that can be used to retrieve the result using iterator_next()/iterator_size() and must be explicitly destroyed via destroy_iterator()

◆ supersets()

int supersets ( int  st_id,
char *  set 
)

Find all the supersets of a given Python set (serialized by a str() call) stored inside a SetTrie object.

Parameters
st_idThe st_id returned by a previous new_settrie() call.
setA Python set serialized by a str() call.
Returns
0 if no sets were found, or an iter_id > 0 that can be used to retrieve the result using iterator_next()/iterator_size() and must be explicitly destroyed via destroy_iterator()

◆ SWIG_AsCharPtrAndSize()

SWIGINTERN int SWIG_AsCharPtrAndSize ( PyObject *  obj,
char **  cptr,
size_t *  psize,
int *  alloc 
)

◆ SWIG_AsVal_double()

SWIGINTERN int SWIG_AsVal_double ( PyObject *  obj,
double *  val 
)

◆ SWIG_AsVal_int()

SWIGINTERN int SWIG_AsVal_int ( PyObject *  obj,
int *  val 
)

◆ SWIG_AsVal_long()

SWIGINTERN int SWIG_AsVal_long ( PyObject *  obj,
long *  val 
)

◆ SWIG_CanCastAsInteger()

SWIGINTERNINLINE int SWIG_CanCastAsInteger ( double *  d,
double  min,
double  max 
)

◆ SWIG_From_bool()

SWIGINTERNINLINE PyObject * SWIG_From_bool ( bool  value)

◆ SWIG_From_int()

SWIGINTERNINLINE PyObject * SWIG_From_int ( int  value)

◆ SWIG_FromCharPtr()

SWIGINTERNINLINE PyObject * SWIG_FromCharPtr ( const char *  cptr)

◆ SWIG_FromCharPtrAndSize()

SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize ( const char *  carray,
size_t  size 
)

◆ SWIG_globals()

SWIGINTERN PyObject * SWIG_globals ( void  )

◆ SWIG_InitializeModule()

SWIGRUNTIME void SWIG_InitializeModule ( void *  clientdata)

◆ SWIG_MangledTypeQueryModule()

SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule ( swig_module_info start,
swig_module_info end,
const char *  name 
)

◆ SWIG_PackData()

SWIGRUNTIME char * SWIG_PackData ( char *  c,
void *  ptr,
size_t  sz 
)

◆ SWIG_PackDataName()

SWIGRUNTIME char * SWIG_PackDataName ( char *  buff,
void *  ptr,
size_t  sz,
const char *  name,
size_t  bsz 
)

◆ SWIG_PackVoidPtr()

SWIGRUNTIME char * SWIG_PackVoidPtr ( char *  buff,
void *  ptr,
const char *  name,
size_t  bsz 
)

◆ SWIG_pchar_descriptor()

SWIGINTERN swig_type_info * SWIG_pchar_descriptor ( void  )

◆ SWIG_PropagateClientData()

SWIGRUNTIME void SWIG_PropagateClientData ( void  )

◆ SWIG_Py_Void()

SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void ( void  )

◆ SWIG_PyInstanceMethod_New()

SWIGINTERN PyObject * SWIG_PyInstanceMethod_New ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  func 
)

◆ SWIG_PyStaticMethod_New()

SWIGINTERN PyObject * SWIG_PyStaticMethod_New ( PyObject *  SWIGUNUSEDPARMself,
PyObject *  func 
)

◆ SWIG_Python_AcquirePtr()

SWIGRUNTIME int SWIG_Python_AcquirePtr ( PyObject *  obj,
int  own 
)

◆ SWIG_Python_AddErrMesg()

SWIGRUNTIME int SWIG_Python_AddErrMesg ( const char *  mesg,
int  infront 
)

◆ SWIG_Python_AddErrorMsg()

SWIGRUNTIME void SWIG_Python_AddErrorMsg ( const char *  mesg)

◆ SWIG_Python_addvarlink()

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

◆ SWIG_Python_AppendOutput()

SWIGINTERN PyObject * SWIG_Python_AppendOutput ( PyObject *  result,
PyObject *  obj 
)

◆ SWIG_Python_ArgFail()

SWIGRUNTIME int SWIG_Python_ArgFail ( int  argnum)

◆ SWIG_Python_CheckImplicit()

SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit ( swig_type_info ty)

◆ SWIG_Python_CheckNoKeywords()

SWIGINTERN int SWIG_Python_CheckNoKeywords ( PyObject *  kwargs,
const char *  name 
)

◆ SWIG_Python_ConvertFunctionPtr()

SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr ( PyObject *  obj,
void **  ptr,
swig_type_info ty 
)

◆ SWIG_Python_ConvertPacked()

SWIGRUNTIME int SWIG_Python_ConvertPacked ( PyObject *  obj,
void *  ptr,
size_t  sz,
swig_type_info ty 
)

◆ SWIG_Python_ConvertPtrAndOwn()

SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn ( PyObject *  obj,
void **  ptr,
swig_type_info ty,
int  flags,
int *  own 
)

◆ SWIG_Python_DestroyModule()

SWIGRUNTIME void SWIG_Python_DestroyModule ( PyObject *  obj)

◆ SWIG_Python_ErrorType()

SWIGRUNTIME PyObject * SWIG_Python_ErrorType ( int  code)

◆ SWIG_Python_ExceptionType()

SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType ( swig_type_info desc)

◆ SWIG_Python_FixMethods()

SWIGINTERN void SWIG_Python_FixMethods ( PyMethodDef *  methods,
swig_const_info const_table,
swig_type_info **  types,
swig_type_info **  types_initial 
)

◆ SWIG_Python_GetModule()

SWIGRUNTIME swig_module_info * SWIG_Python_GetModule ( void *  SWIGUNUSEDPARMclientdata)

◆ SWIG_Python_GetSwigThis()

SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis ( PyObject *  pyobj)

◆ SWIG_Python_InitShadowInstance()

SWIGINTERN PyObject * SWIG_Python_InitShadowInstance ( PyObject *  args)

◆ SWIG_Python_InstallConstants()

SWIGINTERN void SWIG_Python_InstallConstants ( PyObject *  d,
swig_const_info  constants[] 
)

◆ SWIG_Python_MustGetPtr()

SWIGRUNTIME void * SWIG_Python_MustGetPtr ( PyObject *  obj,
swig_type_info ty,
int   SWIGUNUSEDPARMargnum,
int  flags 
)

◆ SWIG_Python_NewPackedObj()

SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj ( void *  ptr,
size_t  sz,
swig_type_info type 
)

◆ SWIG_Python_NewPointerObj()

SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj ( PyObject *  self,
void *  ptr,
swig_type_info type,
int  flags 
)

◆ SWIG_Python_NewShadowInstance()

SWIGRUNTIME PyObject * SWIG_Python_NewShadowInstance ( SwigPyClientData data,
PyObject *  swig_this 
)

◆ SWIG_Python_newvarlink()

SWIGINTERN PyObject * SWIG_Python_newvarlink ( void  )

◆ SWIG_Python_RaiseOrModifyTypeError()

SWIGRUNTIME void SWIG_Python_RaiseOrModifyTypeError ( const char *  message)

◆ SWIG_Python_SetConstant()

SWIGINTERN void SWIG_Python_SetConstant ( PyObject *  d,
const char *  name,
PyObject *  obj 
)

◆ SWIG_Python_SetErrorMsg()

SWIGINTERN void SWIG_Python_SetErrorMsg ( PyObject *  errtype,
const char *  msg 
)

◆ SWIG_Python_SetErrorObj()

SWIGINTERN void SWIG_Python_SetErrorObj ( PyObject *  errtype,
PyObject *  obj 
)

◆ SWIG_Python_SetModule()

SWIGRUNTIME void SWIG_Python_SetModule ( swig_module_info swig_module)

◆ SWIG_Python_SetSwigThis()

SWIGRUNTIME int SWIG_Python_SetSwigThis ( PyObject *  inst,
PyObject *  swig_this 
)

◆ SWIG_Python_str_AsChar()

SWIGINTERN char * SWIG_Python_str_AsChar ( PyObject *  str)

◆ SWIG_Python_str_FromChar()

SWIGINTERN PyObject * SWIG_Python_str_FromChar ( const char *  c)

◆ SWIG_Python_TypeCache()

SWIGRUNTIME PyObject * SWIG_Python_TypeCache ( void  )

◆ SWIG_Python_TypeError()

SWIGRUNTIME void SWIG_Python_TypeError ( const char *  type,
PyObject *  obj 
)

◆ SWIG_Python_TypeErrorOccurred()

SWIGRUNTIME int SWIG_Python_TypeErrorOccurred ( PyObject *  obj)

◆ SWIG_Python_TypeQuery()

SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery ( const char *  type)

◆ SWIG_Python_UnpackTuple()

SWIGINTERN Py_ssize_t SWIG_Python_UnpackTuple ( PyObject *  args,
const char *  name,
Py_ssize_t  min,
Py_ssize_t  max,
PyObject **  objs 
)

◆ SWIG_PythonGetProxyDoc()

SWIGINTERN PyMethodDef * SWIG_PythonGetProxyDoc ( const char *  name)

◆ SWIG_This()

SWIGRUNTIME PyObject * SWIG_This ( void  )

◆ SWIG_TypeCast()

SWIGRUNTIMEINLINE void * SWIG_TypeCast ( swig_cast_info ty,
void *  ptr,
int *  newmemory 
)

◆ SWIG_TypeCheck()

SWIGRUNTIME swig_cast_info * SWIG_TypeCheck ( const char *  c,
swig_type_info ty 
)

◆ SWIG_TypeCheckStruct()

SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct ( swig_type_info from,
swig_type_info ty 
)

◆ SWIG_TypeClientData()

SWIGRUNTIME void SWIG_TypeClientData ( swig_type_info ti,
void *  clientdata 
)

◆ SWIG_TypeCmp()

SWIGRUNTIME int SWIG_TypeCmp ( const char *  nb,
const char *  tb 
)

◆ SWIG_TypeDynamicCast()

SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast ( swig_type_info ty,
void **  ptr 
)

◆ SWIG_TypeEquiv()

SWIGRUNTIME int SWIG_TypeEquiv ( const char *  nb,
const char *  tb 
)

◆ SWIG_TypeName()

SWIGRUNTIMEINLINE const char * SWIG_TypeName ( const swig_type_info ty)

◆ SWIG_TypeNameComp()

SWIGRUNTIME int SWIG_TypeNameComp ( const char *  f1,
const char *  l1,
const char *  f2,
const char *  l2 
)

◆ SWIG_TypeNewClientData()

SWIGRUNTIME void SWIG_TypeNewClientData ( swig_type_info ti,
void *  clientdata 
)

◆ SWIG_TypePrettyName()

SWIGRUNTIME const char * SWIG_TypePrettyName ( const swig_type_info type)

◆ SWIG_TypeQueryModule()

SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule ( swig_module_info start,
swig_module_info end,
const char *  name 
)

◆ SWIG_UnpackData()

SWIGRUNTIME const char * SWIG_UnpackData ( const char *  c,
void *  ptr,
size_t  sz 
)

◆ SWIG_UnpackDataName()

SWIGRUNTIME const char * SWIG_UnpackDataName ( const char *  c,
void *  ptr,
size_t  sz,
const char *  name 
)

◆ SWIG_UnpackVoidPtr()

SWIGRUNTIME const char * SWIG_UnpackVoidPtr ( const char *  c,
void **  ptr,
const char *  name 
)

◆ swig_varlink_dealloc()

SWIGINTERN void swig_varlink_dealloc ( swig_varlinkobject v)

◆ swig_varlink_getattr()

SWIGINTERN PyObject * swig_varlink_getattr ( swig_varlinkobject v,
char *  n 
)

◆ swig_varlink_repr()

SWIGINTERN PyObject * swig_varlink_repr ( swig_varlinkobject SWIGUNUSEDPARMv)

◆ swig_varlink_setattr()

SWIGINTERN int swig_varlink_setattr ( swig_varlinkobject v,
char *  n,
PyObject *  p 
)

◆ swig_varlink_str()

SWIGINTERN PyObject * swig_varlink_str ( swig_varlinkobject v)

◆ swig_varlink_type()

SWIGINTERN PyTypeObject * swig_varlink_type ( void  )

◆ SwigPyClientData_Del()

SWIGRUNTIME void SwigPyClientData_Del ( SwigPyClientData data)

◆ SwigPyClientData_New()

SWIGRUNTIME SwigPyClientData * SwigPyClientData_New ( PyObject *  obj)

◆ SwigPyObject_acquire()

SWIGINTERN PyObject * SwigPyObject_acquire ( PyObject *  v,
PyObject *  SWIGUNUSEDPARMargs 
)

◆ SwigPyObject_append()

SWIGRUNTIME PyObject * SwigPyObject_append ( PyObject *  v,
PyObject *  next 
)

◆ SwigPyObject_Check()

SWIGRUNTIMEINLINE int SwigPyObject_Check ( PyObject *  op)

◆ SwigPyObject_compare()

SWIGRUNTIME int SwigPyObject_compare ( SwigPyObject v,
SwigPyObject w 
)

◆ SwigPyObject_dealloc()

SWIGRUNTIME void SwigPyObject_dealloc ( PyObject *  v)

◆ SwigPyObject_disown()

SWIGINTERN PyObject * SwigPyObject_disown ( PyObject *  v,
PyObject *  SWIGUNUSEDPARMargs 
)

◆ SwigPyObject_format()

SWIGRUNTIME PyObject * SwigPyObject_format ( const char *  fmt,
SwigPyObject v 
)

◆ SwigPyObject_GetDesc()

SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc ( PyObject *  self)

◆ SwigPyObject_hex()

SWIGRUNTIME PyObject * SwigPyObject_hex ( SwigPyObject v)

◆ SwigPyObject_long()

SWIGRUNTIME PyObject * SwigPyObject_long ( SwigPyObject v)

◆ SwigPyObject_New()

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

◆ SwigPyObject_next()

SWIGRUNTIME PyObject * SwigPyObject_next ( PyObject *  v,
PyObject *  SWIGUNUSEDPARMargs 
)

◆ SwigPyObject_oct()

SWIGRUNTIME PyObject * SwigPyObject_oct ( SwigPyObject v)

◆ SwigPyObject_own()

SWIGINTERN PyObject * SwigPyObject_own ( PyObject *  v,
PyObject *  args 
)

◆ SwigPyObject_repr()

SWIGRUNTIME PyObject * SwigPyObject_repr ( SwigPyObject v)

◆ SwigPyObject_repr2()

SWIGRUNTIME PyObject * SwigPyObject_repr2 ( PyObject *  v,
PyObject *  SWIGUNUSEDPARMargs 
)

◆ SwigPyObject_richcompare()

SWIGRUNTIME PyObject * SwigPyObject_richcompare ( SwigPyObject v,
SwigPyObject w,
int  op 
)

◆ SwigPyObject_type()

SWIGRUNTIME PyTypeObject * SwigPyObject_type ( void  )

◆ SwigPyObject_TypeOnce()

SWIGRUNTIME PyTypeObject * SwigPyObject_TypeOnce ( void  )

◆ SwigPyPacked_Check()

SWIGRUNTIMEINLINE int SwigPyPacked_Check ( PyObject *  op)

◆ SwigPyPacked_compare()

SWIGRUNTIME int SwigPyPacked_compare ( SwigPyPacked v,
SwigPyPacked w 
)

◆ SwigPyPacked_dealloc()

SWIGRUNTIME void SwigPyPacked_dealloc ( PyObject *  v)

◆ SwigPyPacked_New()

SWIGRUNTIME PyObject * SwigPyPacked_New ( void *  ptr,
size_t  size,
swig_type_info ty 
)

◆ SwigPyPacked_repr()

SWIGRUNTIME PyObject * SwigPyPacked_repr ( SwigPyPacked v)

◆ SwigPyPacked_str()

SWIGRUNTIME PyObject * SwigPyPacked_str ( SwigPyPacked v)

◆ SwigPyPacked_type()

SWIGRUNTIME PyTypeObject * SwigPyPacked_type ( void  )

◆ SwigPyPacked_TypeOnce()

SWIGRUNTIME PyTypeObject * SwigPyPacked_TypeOnce ( void  )

◆ SwigPyPacked_UnpackData()

SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData ( PyObject *  obj,
void *  ptr,
size_t  size 
)