Commit 05b4617f authored by Ralf Mueller's avatar Ralf Mueller 🎣
Browse files

update wrapper fall-back code from SWIG 1.3 to 4.0.0

parent 148f4cac
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
# Version 4.0.0
#
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError('Python 2.7 or later required')
# Import the low-level C/C++ module
if __package__ or '.' in __name__:
from . import _CdiObj
else:
import _CdiObj
import _CdiObj
import new
new_instancemethod = new.instancemethod
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'PySwigObject':
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if name == "thisown":
return self.this.own(value)
if name == "this":
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static) or hasattr(self,name):
self.__dict__[name] = value
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if not static:
object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError,name
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if name == "thisown":
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
import types
try:
_object = types.ObjectType
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
del types
class PySwigIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, PySwigIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, PySwigIterator, name)
def __init__(self): raise AttributeError, "No constructor defined"
def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr
def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr
def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper
class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
class SwigPyIterator(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _CdiObj.delete_PySwigIterator
__del__ = lambda self : None;
def value(*args): return _CdiObj.PySwigIterator_value(*args)
def incr(*args): return _CdiObj.PySwigIterator_incr(*args)
def decr(*args): return _CdiObj.PySwigIterator_decr(*args)
def distance(*args): return _CdiObj.PySwigIterator_distance(*args)
def equal(*args): return _CdiObj.PySwigIterator_equal(*args)
def copy(*args): return _CdiObj.PySwigIterator_copy(*args)
def next(*args): return _CdiObj.PySwigIterator_next(*args)
def previous(*args): return _CdiObj.PySwigIterator_previous(*args)
def advance(*args): return _CdiObj.PySwigIterator_advance(*args)
def __eq__(*args): return _CdiObj.PySwigIterator___eq__(*args)
def __ne__(*args): return _CdiObj.PySwigIterator___ne__(*args)
def __iadd__(*args): return _CdiObj.PySwigIterator___iadd__(*args)
def __isub__(*args): return _CdiObj.PySwigIterator___isub__(*args)
def __add__(*args): return _CdiObj.PySwigIterator___add__(*args)
def __sub__(*args): return _CdiObj.PySwigIterator___sub__(*args)
def __iter__(self): return self
PySwigIterator_swigregister = _CdiObj.PySwigIterator_swigregister
PySwigIterator_swigregister(PySwigIterator)
class IntVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, IntVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, IntVector, name)
__swig_destroy__ = _CdiObj.delete_SwigPyIterator
def value(self):
return _CdiObj.SwigPyIterator_value(self)
def incr(self, n=1):
return _CdiObj.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _CdiObj.SwigPyIterator_decr(self, n)
def distance(self, x):
return _CdiObj.SwigPyIterator_distance(self, x)
def equal(self, x):
return _CdiObj.SwigPyIterator_equal(self, x)
def copy(self):
return _CdiObj.SwigPyIterator_copy(self)
def next(self):
return _CdiObj.SwigPyIterator_next(self)
def __next__(self):
return _CdiObj.SwigPyIterator___next__(self)
def previous(self):
return _CdiObj.SwigPyIterator_previous(self)
def advance(self, n):
return _CdiObj.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _CdiObj.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _CdiObj.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _CdiObj.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _CdiObj.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _CdiObj.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _CdiObj.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
# Register SwigPyIterator in _CdiObj:
_CdiObj.SwigPyIterator_swigregister(SwigPyIterator)
class IntVector(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def iterator(*args): return _CdiObj.IntVector_iterator(*args)
def __iter__(self): return self.iterator()
def __nonzero__(*args): return _CdiObj.IntVector___nonzero__(*args)
def __len__(*args): return _CdiObj.IntVector___len__(*args)
def pop(*args): return _CdiObj.IntVector_pop(*args)
def __getslice__(*args): return _CdiObj.IntVector___getslice__(*args)
def __setslice__(*args): return _CdiObj.IntVector___setslice__(*args)
def __delslice__(*args): return _CdiObj.IntVector___delslice__(*args)
def __delitem__(*args): return _CdiObj.IntVector___delitem__(*args)
def __getitem__(*args): return _CdiObj.IntVector___getitem__(*args)
def __setitem__(*args): return _CdiObj.IntVector___setitem__(*args)
def append(*args): return _CdiObj.IntVector_append(*args)
def empty(*args): return _CdiObj.IntVector_empty(*args)
def size(*args): return _CdiObj.IntVector_size(*args)
def clear(*args): return _CdiObj.IntVector_clear(*args)
def swap(*args): return _CdiObj.IntVector_swap(*args)
def get_allocator(*args): return _CdiObj.IntVector_get_allocator(*args)
def begin(*args): return _CdiObj.IntVector_begin(*args)
def end(*args): return _CdiObj.IntVector_end(*args)
def rbegin(*args): return _CdiObj.IntVector_rbegin(*args)
def rend(*args): return _CdiObj.IntVector_rend(*args)
def pop_back(*args): return _CdiObj.IntVector_pop_back(*args)
def erase(*args): return _CdiObj.IntVector_erase(*args)
def __init__(self, *args):
this = _CdiObj.new_IntVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(*args): return _CdiObj.IntVector_push_back(*args)
def front(*args): return _CdiObj.IntVector_front(*args)
def back(*args): return _CdiObj.IntVector_back(*args)
def assign(*args): return _CdiObj.IntVector_assign(*args)
def resize(*args): return _CdiObj.IntVector_resize(*args)
def insert(*args): return _CdiObj.IntVector_insert(*args)
def reserve(*args): return _CdiObj.IntVector_reserve(*args)
def capacity(*args): return _CdiObj.IntVector_capacity(*args)
def iterator(self):
return _CdiObj.IntVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _CdiObj.IntVector___nonzero__(self)
def __bool__(self):
return _CdiObj.IntVector___bool__(self)
def __len__(self):
return _CdiObj.IntVector___len__(self)
def __getslice__(self, i, j):
return _CdiObj.IntVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _CdiObj.IntVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _CdiObj.IntVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _CdiObj.IntVector___delitem__(self, *args)
def __getitem__(self, *args):
return _CdiObj.IntVector___getitem__(self, *args)
def __setitem__(self, *args):
return _CdiObj.IntVector___setitem__(self, *args)
def pop(self):
return _CdiObj.IntVector_pop(self)
def append(self, x):
return _CdiObj.IntVector_append(self, x)
def empty(self):
return _CdiObj.IntVector_empty(self)
def size(self):
return _CdiObj.IntVector_size(self)
def swap(self, v):
return _CdiObj.IntVector_swap(self, v)
def begin(self):
return _CdiObj.IntVector_begin(self)
def end(self):
return _CdiObj.IntVector_end(self)
def rbegin(self):
return _CdiObj.IntVector_rbegin(self)
def rend(self):
return _CdiObj.IntVector_rend(self)
def clear(self):
return _CdiObj.IntVector_clear(self)
def get_allocator(self):
return _CdiObj.IntVector_get_allocator(self)
def pop_back(self):
return _CdiObj.IntVector_pop_back(self)
def erase(self, *args):
return _CdiObj.IntVector_erase(self, *args)
def __init__(self, *args):
_CdiObj.IntVector_swiginit(self, _CdiObj.new_IntVector(*args))
def push_back(self, x):
return _CdiObj.IntVector_push_back(self, x)
def front(self):
return _CdiObj.IntVector_front(self)
def back(self):
return _CdiObj.IntVector_back(self)
def assign(self, n, x):
return _CdiObj.IntVector_assign(self, n, x)
def resize(self, *args):
return _CdiObj.IntVector_resize(self, *args)
def insert(self, *args):
return _CdiObj.IntVector_insert(self, *args)
def reserve(self, n):
return _CdiObj.IntVector_reserve(self, n)
def capacity(self):
return _CdiObj.IntVector_capacity(self)
__swig_destroy__ = _CdiObj.delete_IntVector
__del__ = lambda self : None;
IntVector_swigregister = _CdiObj.IntVector_swigregister
IntVector_swigregister(IntVector)
class DoubleVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DoubleVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DoubleVector, name)
# Register IntVector in _CdiObj:
_CdiObj.IntVector_swigregister(IntVector)
class DoubleVector(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def iterator(*args): return _CdiObj.DoubleVector_iterator(*args)
def __iter__(self): return self.iterator()
def __nonzero__(*args): return _CdiObj.DoubleVector___nonzero__(*args)
def __len__(*args): return _CdiObj.DoubleVector___len__(*args)
def pop(*args): return _CdiObj.DoubleVector_pop(*args)
def __getslice__(*args): return _CdiObj.DoubleVector___getslice__(*args)
def __setslice__(*args): return _CdiObj.DoubleVector___setslice__(*args)
def __delslice__(*args): return _CdiObj.DoubleVector___delslice__(*args)
def __delitem__(*args): return _CdiObj.DoubleVector___delitem__(*args)
def __getitem__(*args): return _CdiObj.DoubleVector___getitem__(*args)
def __setitem__(*args): return _CdiObj.DoubleVector___setitem__(*args)
def append(*args): return _CdiObj.DoubleVector_append(*args)
def empty(*args): return _CdiObj.DoubleVector_empty(*args)
def size(*args): return _CdiObj.DoubleVector_size(*args)
def clear(*args): return _CdiObj.DoubleVector_clear(*args)
def swap(*args): return _CdiObj.DoubleVector_swap(*args)
def get_allocator(*args): return _CdiObj.DoubleVector_get_allocator(*args)
def begin(*args): return _CdiObj.DoubleVector_begin(*args)
def end(*args): return _CdiObj.DoubleVector_end(*args)
def rbegin(*args): return _CdiObj.DoubleVector_rbegin(*args)
def rend(*args): return _CdiObj.DoubleVector_rend(*args)
def pop_back(*args): return _CdiObj.DoubleVector_pop_back(*args)
def erase(*args): return _CdiObj.DoubleVector_erase(*args)
def __init__(self, *args):
this = _CdiObj.new_DoubleVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(*args): return _CdiObj.DoubleVector_push_back(*args)
def front(*args): return _CdiObj.DoubleVector_front(*args)
def back(*args): return _CdiObj.DoubleVector_back(*args)
def assign(*args): return _CdiObj.DoubleVector_assign(*args)
def resize(*args): return _CdiObj.DoubleVector_resize(*args)
def insert(*args): return _CdiObj.DoubleVector_insert(*args)
def reserve(*args): return _CdiObj.DoubleVector_reserve(*args)
def capacity(*args): return _CdiObj.DoubleVector_capacity(*args)
def iterator(self):
return _CdiObj.DoubleVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _CdiObj.DoubleVector___nonzero__(self)
def __bool__(self):
return _CdiObj.DoubleVector___bool__(self)
def __len__(self):
return _CdiObj.DoubleVector___len__(self)
def __getslice__(self, i, j):
return _CdiObj.DoubleVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _CdiObj.DoubleVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _CdiObj.DoubleVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _CdiObj.DoubleVector___delitem__(self, *args)
def __getitem__(self, *args):
return _CdiObj.DoubleVector___getitem__(self, *args)
def __setitem__(self, *args):
return _CdiObj.DoubleVector___setitem__(self, *args)
def pop(self):
return _CdiObj.DoubleVector_pop(self)
def append(self, x):
return _CdiObj.DoubleVector_append(self, x)
def empty(self):
return _CdiObj.DoubleVector_empty(self)
def size(self):
return _CdiObj.DoubleVector_size(self)
def swap(self, v):
return _CdiObj.DoubleVector_swap(self, v)
def begin(self):
return _CdiObj.DoubleVector_begin(self)
def end(self):
return _CdiObj.DoubleVector_end(self)
def rbegin(self):
return _CdiObj.DoubleVector_rbegin(self)
def rend(self):
return _CdiObj.DoubleVector_rend(self)
def clear(self):
return _CdiObj.DoubleVector_clear(self)
def get_allocator(self):
return _CdiObj.DoubleVector_get_allocator(self)
def pop_back(self):
return _CdiObj.DoubleVector_pop_back(self)
def erase(self, *args):
return _CdiObj.DoubleVector_erase(self, *args)
def __init__(self, *args):
_CdiObj.DoubleVector_swiginit(self, _CdiObj.new_DoubleVector(*args))
def push_back(self, x):
return _CdiObj.DoubleVector_push_back(self, x)
def front(self):
return _CdiObj.DoubleVector_front(self)
def back(self):
return _CdiObj.DoubleVector_back(self)
def assign(self, n, x):
return _CdiObj.DoubleVector_assign(self, n, x)
def resize(self, *args):
return _CdiObj.DoubleVector_resize(self, *args)
def insert(self, *args):
return _CdiObj.DoubleVector_insert(self, *args)
def reserve(self, n):
return _CdiObj.DoubleVector_reserve(self, n)
def capacity(self):
return _CdiObj.DoubleVector_capacity(self)
__swig_destroy__ = _CdiObj.delete_DoubleVector
__del__ = lambda self : None;
DoubleVector_swigregister = _CdiObj.DoubleVector_swigregister
DoubleVector_swigregister(DoubleVector)
class DoubleDoubleVector(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, DoubleDoubleVector, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, DoubleDoubleVector, name)
# Register DoubleVector in _CdiObj:
_CdiObj.DoubleVector_swigregister(DoubleVector)
class DoubleDoubleVector(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def iterator(*args): return _CdiObj.DoubleDoubleVector_iterator(*args)
def __iter__(self): return self.iterator()
def __nonzero__(*args): return _CdiObj.DoubleDoubleVector___nonzero__(*args)
def __len__(*args): return _CdiObj.DoubleDoubleVector___len__(*args)
def pop(*args): return _CdiObj.DoubleDoubleVector_pop(*args)
def __getslice__(*args): return _CdiObj.DoubleDoubleVector___getslice__(*args)
def __setslice__(*args): return _CdiObj.DoubleDoubleVector___setslice__(*args)
def __delslice__(*args): return _CdiObj.DoubleDoubleVector___delslice__(*args)
def __delitem__(*args): return _CdiObj.DoubleDoubleVector___delitem__(*args)
def __getitem__(*args): return _CdiObj.DoubleDoubleVector___getitem__(*args)
def __setitem__(*args): return _CdiObj.DoubleDoubleVector___setitem__(*args)
def append(*args): return _CdiObj.DoubleDoubleVector_append(*args)
def empty(*args): return _CdiObj.DoubleDoubleVector_empty(*args)
def size(*args): return _CdiObj.DoubleDoubleVector_size(*args)
def clear(*args): return _CdiObj.DoubleDoubleVector_clear(*args)
def swap(*args): return _CdiObj.DoubleDoubleVector_swap(*args)
def get_allocator(*args): return _CdiObj.DoubleDoubleVector_get_allocator(*args)
def begin(*args): return _CdiObj.DoubleDoubleVector_begin(*args)
def end(*args): return _CdiObj.DoubleDoubleVector_end(*args)
def rbegin(*args): return _CdiObj.DoubleDoubleVector_rbegin(*args)
def rend(*args): return _CdiObj.DoubleDoubleVector_rend(*args)
def pop_back(*args): return _CdiObj.DoubleDoubleVector_pop_back(*args)
def erase(*args): return _CdiObj.DoubleDoubleVector_erase(*args)
def __init__(self, *args):
this = _CdiObj.new_DoubleDoubleVector(*args)
try: self.this.append(this)
except: self.this = this
def push_back(*args): return _CdiObj.DoubleDoubleVector_push_back(*args)
def front(*args): return _CdiObj.DoubleDoubleVector_front(*args)
def back(*args): return _CdiObj.DoubleDoubleVector_back(*args)
def assign(*args): return _CdiObj.DoubleDoubleVector_assign(*args)
def resize(*args): return _CdiObj.DoubleDoubleVector_resize(*args)
def insert(*args): return _CdiObj.DoubleDoubleVector_insert(*args)
def reserve(*args): return _CdiObj.DoubleDoubleVector_reserve(*args)
def capacity(*args): return _CdiObj.DoubleDoubleVector_capacity(*args)
def iterator(self):
return _CdiObj.DoubleDoubleVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _CdiObj.DoubleDoubleVector___nonzero__(self)
def __bool__(self):
return _CdiObj.DoubleDoubleVector___bool__(self)
def __len__(self):
return _CdiObj.DoubleDoubleVector___len__(self)
def __getslice__(self, i, j):
return _CdiObj.DoubleDoubleVector___getslice__(self, i, j)
def __setslice__(self, *args):
return _CdiObj.DoubleDoubleVector___setslice__(self, *args)
def __delslice__(self, i, j):
return _CdiObj.DoubleDoubleVector___delslice__(self, i, j)
def __delitem__(self, *args):
return _CdiObj.DoubleDoubleVector___delitem__(self, *args)
def __getitem__(self, *args):