# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _wordlookup def _swig_setattr(self,class_type,name,value): if (name == "this"): if isinstance(value, class_type): self.__dict__[name] = value.this if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown del value.thisown return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) self.__dict__[name] = value def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name import types try: _object = types.ObjectType _newclass = 1 except AttributeError: class _object : pass _newclass = 0 class WordList(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, WordList, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, WordList, name) def __init__(self,*args): _swig_setattr(self, WordList, 'this', apply(_wordlookup.new_WordList,args)) _swig_setattr(self, WordList, 'thisown', 1) def loadList(*args): return apply(_wordlookup.WordList_loadList,args) def findWord(*args): return apply(_wordlookup.WordList_findWord,args) def findWordL(*args): return apply(_wordlookup.WordList_findWordL,args) def getWord(*args): return apply(_wordlookup.WordList_getWord,args) def size(*args): return apply(_wordlookup.WordList_size,args) def __del__(self, destroy= _wordlookup.delete_WordList): try: if self.thisown: destroy(self) except: pass def __repr__(self): return "" % (self.this,) class WordListPtr(WordList): def __init__(self,this): _swig_setattr(self, WordList, 'this', this) if not hasattr(self,"thisown"): _swig_setattr(self, WordList, 'thisown', 0) _swig_setattr(self, WordList,self.__class__,WordList) _wordlookup.WordList_swigregister(WordListPtr)