Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/DOTA_devkit/polyiou.py
Views: 475
# This file was automatically generated by SWIG (http://www.swig.org).1# Version 3.0.82#3# Do not make changes to this file unless you know what you are doing--modify4# the SWIG interface file instead.5678910from sys import version_info11if version_info >= (2, 6, 0):12def swig_import_helper():13from os.path import dirname14import imp15fp = None16try:17fp, pathname, description = imp.find_module('_polyiou', [dirname(__file__)])18except ImportError:19import _polyiou20return _polyiou21if fp is not None:22try:23_mod = imp.load_module('_polyiou', fp, pathname, description)24finally:25fp.close()26return _mod27_polyiou = swig_import_helper()28del swig_import_helper29else:30import _polyiou31del version_info32try:33_swig_property = property34except NameError:35pass # Python < 2.2 doesn't have 'property'.363738def _swig_setattr_nondynamic(self, class_type, name, value, static=1):39if (name == "thisown"):40return self.this.own(value)41if (name == "this"):42if type(value).__name__ == 'SwigPyObject':43self.__dict__[name] = value44return45method = class_type.__swig_setmethods__.get(name, None)46if method:47return method(self, value)48if (not static):49if _newclass:50object.__setattr__(self, name, value)51else:52self.__dict__[name] = value53else:54raise AttributeError("You cannot add attributes to %s" % self)555657def _swig_setattr(self, class_type, name, value):58return _swig_setattr_nondynamic(self, class_type, name, value, 0)596061def _swig_getattr_nondynamic(self, class_type, name, static=1):62if (name == "thisown"):63return self.this.own()64method = class_type.__swig_getmethods__.get(name, None)65if method:66return method(self)67if (not static):68return object.__getattr__(self, name)69else:70raise AttributeError(name)7172def _swig_getattr(self, class_type, name):73return _swig_getattr_nondynamic(self, class_type, name, 0)747576def _swig_repr(self):77try:78strthis = "proxy of " + self.this.__repr__()79except Exception:80strthis = ""81return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)8283try:84_object = object85_newclass = 186except AttributeError:87class _object:88pass89_newclass = 0909192class SwigPyIterator(_object):93__swig_setmethods__ = {}94__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)95__swig_getmethods__ = {}96__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)9798def __init__(self, *args, **kwargs):99raise AttributeError("No constructor defined - class is abstract")100__repr__ = _swig_repr101__swig_destroy__ = _polyiou.delete_SwigPyIterator102__del__ = lambda self: None103104def value(self):105return _polyiou.SwigPyIterator_value(self)106107def incr(self, n=1):108return _polyiou.SwigPyIterator_incr(self, n)109110def decr(self, n=1):111return _polyiou.SwigPyIterator_decr(self, n)112113def distance(self, x):114return _polyiou.SwigPyIterator_distance(self, x)115116def equal(self, x):117return _polyiou.SwigPyIterator_equal(self, x)118119def copy(self):120return _polyiou.SwigPyIterator_copy(self)121122def next(self):123return _polyiou.SwigPyIterator_next(self)124125def __next__(self):126return _polyiou.SwigPyIterator___next__(self)127128def previous(self):129return _polyiou.SwigPyIterator_previous(self)130131def advance(self, n):132return _polyiou.SwigPyIterator_advance(self, n)133134def __eq__(self, x):135return _polyiou.SwigPyIterator___eq__(self, x)136137def __ne__(self, x):138return _polyiou.SwigPyIterator___ne__(self, x)139140def __iadd__(self, n):141return _polyiou.SwigPyIterator___iadd__(self, n)142143def __isub__(self, n):144return _polyiou.SwigPyIterator___isub__(self, n)145146def __add__(self, n):147return _polyiou.SwigPyIterator___add__(self, n)148149def __sub__(self, *args):150return _polyiou.SwigPyIterator___sub__(self, *args)151def __iter__(self):152return self153SwigPyIterator_swigregister = _polyiou.SwigPyIterator_swigregister154SwigPyIterator_swigregister(SwigPyIterator)155156class VectorDouble(_object):157__swig_setmethods__ = {}158__setattr__ = lambda self, name, value: _swig_setattr(self, VectorDouble, name, value)159__swig_getmethods__ = {}160__getattr__ = lambda self, name: _swig_getattr(self, VectorDouble, name)161__repr__ = _swig_repr162163def iterator(self):164return _polyiou.VectorDouble_iterator(self)165def __iter__(self):166return self.iterator()167168def __nonzero__(self):169return _polyiou.VectorDouble___nonzero__(self)170171def __bool__(self):172return _polyiou.VectorDouble___bool__(self)173174def __len__(self):175return _polyiou.VectorDouble___len__(self)176177def __getslice__(self, i, j):178return _polyiou.VectorDouble___getslice__(self, i, j)179180def __setslice__(self, *args):181return _polyiou.VectorDouble___setslice__(self, *args)182183def __delslice__(self, i, j):184return _polyiou.VectorDouble___delslice__(self, i, j)185186def __delitem__(self, *args):187return _polyiou.VectorDouble___delitem__(self, *args)188189def __getitem__(self, *args):190return _polyiou.VectorDouble___getitem__(self, *args)191192def __setitem__(self, *args):193return _polyiou.VectorDouble___setitem__(self, *args)194195def pop(self):196return _polyiou.VectorDouble_pop(self)197198def append(self, x):199return _polyiou.VectorDouble_append(self, x)200201def empty(self):202return _polyiou.VectorDouble_empty(self)203204def size(self):205return _polyiou.VectorDouble_size(self)206207def swap(self, v):208return _polyiou.VectorDouble_swap(self, v)209210def begin(self):211return _polyiou.VectorDouble_begin(self)212213def end(self):214return _polyiou.VectorDouble_end(self)215216def rbegin(self):217return _polyiou.VectorDouble_rbegin(self)218219def rend(self):220return _polyiou.VectorDouble_rend(self)221222def clear(self):223return _polyiou.VectorDouble_clear(self)224225def get_allocator(self):226return _polyiou.VectorDouble_get_allocator(self)227228def pop_back(self):229return _polyiou.VectorDouble_pop_back(self)230231def erase(self, *args):232return _polyiou.VectorDouble_erase(self, *args)233234def __init__(self, *args):235this = _polyiou.new_VectorDouble(*args)236try:237self.this.append(this)238except Exception:239self.this = this240241def push_back(self, x):242return _polyiou.VectorDouble_push_back(self, x)243244def front(self):245return _polyiou.VectorDouble_front(self)246247def back(self):248return _polyiou.VectorDouble_back(self)249250def assign(self, n, x):251return _polyiou.VectorDouble_assign(self, n, x)252253def resize(self, *args):254return _polyiou.VectorDouble_resize(self, *args)255256def insert(self, *args):257return _polyiou.VectorDouble_insert(self, *args)258259def reserve(self, n):260return _polyiou.VectorDouble_reserve(self, n)261262def capacity(self):263return _polyiou.VectorDouble_capacity(self)264__swig_destroy__ = _polyiou.delete_VectorDouble265__del__ = lambda self: None266VectorDouble_swigregister = _polyiou.VectorDouble_swigregister267VectorDouble_swigregister(VectorDouble)268269270def iou_poly(p, q):271return _polyiou.iou_poly(p, q)272iou_poly = _polyiou.iou_poly273# This file is compatible with both classic and new-style classes.274275276277278