From ca6fd1b17958dc83f0354b6c67ee7474d8c94aa4 Mon Sep 17 00:00:00 2001 From: etotheipi Date: Mon, 19 Mar 2012 17:53:51 -0400 Subject: [PATCH] Added warning message about wlt migrate with 0.6.0+ --- ArmoryQt.py | 19 + CppBlockUtils.py | 1484 - cppForSwig/CppBlockUtils_wrap.cxx | 46721 ---------------------------- createTxFromAddrList.py | 2 +- qtdefines.py | 12 +- qtdialogs.py | 4 +- 6 files changed, 28 insertions(+), 48214 deletions(-) delete mode 100644 CppBlockUtils.py delete mode 100644 cppForSwig/CppBlockUtils_wrap.cxx diff --git a/ArmoryQt.py b/ArmoryQt.py index 99229d480..9953d19cc 100644 --- a/ArmoryQt.py +++ b/ArmoryQt.py @@ -1372,6 +1372,25 @@ def execRestorePaperBackup(self): ############################################################################# def execMigrateSatoshi(self): + reply = MsgBoxCustom(MSGBOX.Question, 'Wallet Version Warning', \ + 'This wallet migration tool only works with regular Bitcoin wallets ' + 'produced using version 0.5.X and earlier. ' + 'You can determine the version by ' + 'opening the regular Bitcoin client, then choosing "Help"' + '-->"About Bitcoin-Qt" from the main menu. ' + '

' + 'If you have used your wallet with any version of the regular ' + 'Bitcoin client 0.6.0 or higher, this tool will fail. ' + 'In fact, it is highly recommended that you do not even attempt ' + 'to use the tool on such wallets until it is officially supported ' + 'by Armory.' + '

' + 'Has your wallet ever been opened in the 0.6.0+ Satoshi client?', \ + yesStr='Yes, Abort!', noStr='No, Carry On!') + + if reply: + return + DlgMigrateSatoshiWallet(self, self).exec_() diff --git a/CppBlockUtils.py b/CppBlockUtils.py deleted file mode 100644 index 350726dbc..000000000 --- a/CppBlockUtils.py +++ /dev/null @@ -1,1484 +0,0 @@ -# This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.40 -# -# Do not make changes to this file unless you know what you are doing--modify -# the SWIG interface file instead. -# This file is compatible with both classic and new-style classes. - -from sys import version_info -if version_info >= (2,6,0): - def swig_import_helper(): - from os.path import dirname - import imp - fp = None - try: - fp, pathname, description = imp.find_module('_CppBlockUtils', [dirname(__file__)]) - except ImportError: - import _CppBlockUtils - return _CppBlockUtils - if fp is not None: - try: - _mod = imp.load_module('_CppBlockUtils', fp, pathname, description) - finally: - fp.close() - return _mod - _CppBlockUtils = swig_import_helper() - del swig_import_helper -else: - import _CppBlockUtils -del version_info -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 - 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_repr(self): - try: strthis = "proxy of " + self.this.__repr__() - except: strthis = "" - return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) - -class SwigPyIterator: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") - __repr__ = _swig_repr - __swig_destroy__ = _CppBlockUtils.delete_SwigPyIterator - __del__ = lambda self : None; - def value(self): return _CppBlockUtils.SwigPyIterator_value(self) - def incr(self, n = 1): return _CppBlockUtils.SwigPyIterator_incr(self, n) - def decr(self, n = 1): return _CppBlockUtils.SwigPyIterator_decr(self, n) - def distance(self, *args): return _CppBlockUtils.SwigPyIterator_distance(self, *args) - def equal(self, *args): return _CppBlockUtils.SwigPyIterator_equal(self, *args) - def copy(self): return _CppBlockUtils.SwigPyIterator_copy(self) - def next(self): return _CppBlockUtils.SwigPyIterator_next(self) - def __next__(self): return _CppBlockUtils.SwigPyIterator___next__(self) - def previous(self): return _CppBlockUtils.SwigPyIterator_previous(self) - def advance(self, *args): return _CppBlockUtils.SwigPyIterator_advance(self, *args) - def __eq__(self, *args): return _CppBlockUtils.SwigPyIterator___eq__(self, *args) - def __ne__(self, *args): return _CppBlockUtils.SwigPyIterator___ne__(self, *args) - def __iadd__(self, *args): return _CppBlockUtils.SwigPyIterator___iadd__(self, *args) - def __isub__(self, *args): return _CppBlockUtils.SwigPyIterator___isub__(self, *args) - def __add__(self, *args): return _CppBlockUtils.SwigPyIterator___add__(self, *args) - def __sub__(self, *args): return _CppBlockUtils.SwigPyIterator___sub__(self, *args) - def __iter__(self): return self -SwigPyIterator_swigregister = _CppBlockUtils.SwigPyIterator_swigregister -SwigPyIterator_swigregister(SwigPyIterator) - -class vector_int: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_int, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_int, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_int_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_int___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_int___bool__(self) - def __len__(self): return _CppBlockUtils.vector_int___len__(self) - def pop(self): return _CppBlockUtils.vector_int_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_int___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_int___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_int___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_int___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_int___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_int___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_int_append(self, *args) - def empty(self): return _CppBlockUtils.vector_int_empty(self) - def size(self): return _CppBlockUtils.vector_int_size(self) - def clear(self): return _CppBlockUtils.vector_int_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_int_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_int_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_int_begin(self) - def end(self): return _CppBlockUtils.vector_int_end(self) - def rbegin(self): return _CppBlockUtils.vector_int_rbegin(self) - def rend(self): return _CppBlockUtils.vector_int_rend(self) - def pop_back(self): return _CppBlockUtils.vector_int_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_int_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_int(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_int_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_int_front(self) - def back(self): return _CppBlockUtils.vector_int_back(self) - def assign(self, *args): return _CppBlockUtils.vector_int_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_int_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_int_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_int_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_int_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_int - __del__ = lambda self : None; -vector_int_swigregister = _CppBlockUtils.vector_int_swigregister -vector_int_swigregister(vector_int) - -class vector_float: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_float, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_float, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_float_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_float___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_float___bool__(self) - def __len__(self): return _CppBlockUtils.vector_float___len__(self) - def pop(self): return _CppBlockUtils.vector_float_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_float___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_float___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_float___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_float___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_float___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_float___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_float_append(self, *args) - def empty(self): return _CppBlockUtils.vector_float_empty(self) - def size(self): return _CppBlockUtils.vector_float_size(self) - def clear(self): return _CppBlockUtils.vector_float_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_float_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_float_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_float_begin(self) - def end(self): return _CppBlockUtils.vector_float_end(self) - def rbegin(self): return _CppBlockUtils.vector_float_rbegin(self) - def rend(self): return _CppBlockUtils.vector_float_rend(self) - def pop_back(self): return _CppBlockUtils.vector_float_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_float_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_float(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_float_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_float_front(self) - def back(self): return _CppBlockUtils.vector_float_back(self) - def assign(self, *args): return _CppBlockUtils.vector_float_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_float_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_float_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_float_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_float_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_float - __del__ = lambda self : None; -vector_float_swigregister = _CppBlockUtils.vector_float_swigregister -vector_float_swigregister(vector_float) - -class vector_BinaryData: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_BinaryData, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_BinaryData, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_BinaryData_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_BinaryData___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_BinaryData___bool__(self) - def __len__(self): return _CppBlockUtils.vector_BinaryData___len__(self) - def pop(self): return _CppBlockUtils.vector_BinaryData_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_BinaryData___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_BinaryData___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_BinaryData___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_BinaryData___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_BinaryData___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_BinaryData___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_BinaryData_append(self, *args) - def empty(self): return _CppBlockUtils.vector_BinaryData_empty(self) - def size(self): return _CppBlockUtils.vector_BinaryData_size(self) - def clear(self): return _CppBlockUtils.vector_BinaryData_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_BinaryData_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_BinaryData_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_BinaryData_begin(self) - def end(self): return _CppBlockUtils.vector_BinaryData_end(self) - def rbegin(self): return _CppBlockUtils.vector_BinaryData_rbegin(self) - def rend(self): return _CppBlockUtils.vector_BinaryData_rend(self) - def pop_back(self): return _CppBlockUtils.vector_BinaryData_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_BinaryData_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_BinaryData(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_BinaryData_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_BinaryData_front(self) - def back(self): return _CppBlockUtils.vector_BinaryData_back(self) - def assign(self, *args): return _CppBlockUtils.vector_BinaryData_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_BinaryData_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_BinaryData_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_BinaryData_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_BinaryData_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_BinaryData - __del__ = lambda self : None; -vector_BinaryData_swigregister = _CppBlockUtils.vector_BinaryData_swigregister -vector_BinaryData_swigregister(vector_BinaryData) - -class vector_LedgerEntry: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_LedgerEntry, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_LedgerEntry, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_LedgerEntry_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_LedgerEntry___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_LedgerEntry___bool__(self) - def __len__(self): return _CppBlockUtils.vector_LedgerEntry___len__(self) - def pop(self): return _CppBlockUtils.vector_LedgerEntry_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_LedgerEntry___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_LedgerEntry___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_LedgerEntry___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_LedgerEntry___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_LedgerEntry___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_LedgerEntry___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_LedgerEntry_append(self, *args) - def empty(self): return _CppBlockUtils.vector_LedgerEntry_empty(self) - def size(self): return _CppBlockUtils.vector_LedgerEntry_size(self) - def clear(self): return _CppBlockUtils.vector_LedgerEntry_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_LedgerEntry_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_LedgerEntry_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_LedgerEntry_begin(self) - def end(self): return _CppBlockUtils.vector_LedgerEntry_end(self) - def rbegin(self): return _CppBlockUtils.vector_LedgerEntry_rbegin(self) - def rend(self): return _CppBlockUtils.vector_LedgerEntry_rend(self) - def pop_back(self): return _CppBlockUtils.vector_LedgerEntry_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_LedgerEntry_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_LedgerEntry(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_LedgerEntry_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_LedgerEntry_front(self) - def back(self): return _CppBlockUtils.vector_LedgerEntry_back(self) - def assign(self, *args): return _CppBlockUtils.vector_LedgerEntry_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_LedgerEntry_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_LedgerEntry_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_LedgerEntry_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_LedgerEntry_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_LedgerEntry - __del__ = lambda self : None; -vector_LedgerEntry_swigregister = _CppBlockUtils.vector_LedgerEntry_swigregister -vector_LedgerEntry_swigregister(vector_LedgerEntry) - -class vector_TxRefPtr: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_TxRefPtr, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_TxRefPtr, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_TxRefPtr_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_TxRefPtr___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_TxRefPtr___bool__(self) - def __len__(self): return _CppBlockUtils.vector_TxRefPtr___len__(self) - def pop(self): return _CppBlockUtils.vector_TxRefPtr_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_TxRefPtr___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_TxRefPtr___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_TxRefPtr___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_TxRefPtr___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_TxRefPtr___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_TxRefPtr___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_TxRefPtr_append(self, *args) - def empty(self): return _CppBlockUtils.vector_TxRefPtr_empty(self) - def size(self): return _CppBlockUtils.vector_TxRefPtr_size(self) - def clear(self): return _CppBlockUtils.vector_TxRefPtr_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_TxRefPtr_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_TxRefPtr_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_TxRefPtr_begin(self) - def end(self): return _CppBlockUtils.vector_TxRefPtr_end(self) - def rbegin(self): return _CppBlockUtils.vector_TxRefPtr_rbegin(self) - def rend(self): return _CppBlockUtils.vector_TxRefPtr_rend(self) - def pop_back(self): return _CppBlockUtils.vector_TxRefPtr_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_TxRefPtr_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_TxRefPtr(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_TxRefPtr_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_TxRefPtr_front(self) - def back(self): return _CppBlockUtils.vector_TxRefPtr_back(self) - def assign(self, *args): return _CppBlockUtils.vector_TxRefPtr_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_TxRefPtr_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_TxRefPtr_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_TxRefPtr_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_TxRefPtr_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_TxRefPtr - __del__ = lambda self : None; -vector_TxRefPtr_swigregister = _CppBlockUtils.vector_TxRefPtr_swigregister -vector_TxRefPtr_swigregister(vector_TxRefPtr) - -class vector_HeaderRefPtr: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_HeaderRefPtr, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_HeaderRefPtr, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_HeaderRefPtr_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_HeaderRefPtr___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_HeaderRefPtr___bool__(self) - def __len__(self): return _CppBlockUtils.vector_HeaderRefPtr___len__(self) - def pop(self): return _CppBlockUtils.vector_HeaderRefPtr_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_HeaderRefPtr___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_append(self, *args) - def empty(self): return _CppBlockUtils.vector_HeaderRefPtr_empty(self) - def size(self): return _CppBlockUtils.vector_HeaderRefPtr_size(self) - def clear(self): return _CppBlockUtils.vector_HeaderRefPtr_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_HeaderRefPtr_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_HeaderRefPtr_begin(self) - def end(self): return _CppBlockUtils.vector_HeaderRefPtr_end(self) - def rbegin(self): return _CppBlockUtils.vector_HeaderRefPtr_rbegin(self) - def rend(self): return _CppBlockUtils.vector_HeaderRefPtr_rend(self) - def pop_back(self): return _CppBlockUtils.vector_HeaderRefPtr_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_HeaderRefPtr(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_HeaderRefPtr_front(self) - def back(self): return _CppBlockUtils.vector_HeaderRefPtr_back(self) - def assign(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_HeaderRefPtr_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_HeaderRefPtr_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_HeaderRefPtr - __del__ = lambda self : None; -vector_HeaderRefPtr_swigregister = _CppBlockUtils.vector_HeaderRefPtr_swigregister -vector_HeaderRefPtr_swigregister(vector_HeaderRefPtr) - -class vector_UnspentTxOut: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, vector_UnspentTxOut, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, vector_UnspentTxOut, name) - __repr__ = _swig_repr - def iterator(self): return _CppBlockUtils.vector_UnspentTxOut_iterator(self) - def __iter__(self): return self.iterator() - def __nonzero__(self): return _CppBlockUtils.vector_UnspentTxOut___nonzero__(self) - def __bool__(self): return _CppBlockUtils.vector_UnspentTxOut___bool__(self) - def __len__(self): return _CppBlockUtils.vector_UnspentTxOut___len__(self) - def pop(self): return _CppBlockUtils.vector_UnspentTxOut_pop(self) - def __getslice__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___getslice__(self, *args) - def __setslice__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___setslice__(self, *args) - def __delslice__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___delslice__(self, *args) - def __delitem__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___delitem__(self, *args) - def __getitem__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___getitem__(self, *args) - def __setitem__(self, *args): return _CppBlockUtils.vector_UnspentTxOut___setitem__(self, *args) - def append(self, *args): return _CppBlockUtils.vector_UnspentTxOut_append(self, *args) - def empty(self): return _CppBlockUtils.vector_UnspentTxOut_empty(self) - def size(self): return _CppBlockUtils.vector_UnspentTxOut_size(self) - def clear(self): return _CppBlockUtils.vector_UnspentTxOut_clear(self) - def swap(self, *args): return _CppBlockUtils.vector_UnspentTxOut_swap(self, *args) - def get_allocator(self): return _CppBlockUtils.vector_UnspentTxOut_get_allocator(self) - def begin(self): return _CppBlockUtils.vector_UnspentTxOut_begin(self) - def end(self): return _CppBlockUtils.vector_UnspentTxOut_end(self) - def rbegin(self): return _CppBlockUtils.vector_UnspentTxOut_rbegin(self) - def rend(self): return _CppBlockUtils.vector_UnspentTxOut_rend(self) - def pop_back(self): return _CppBlockUtils.vector_UnspentTxOut_pop_back(self) - def erase(self, *args): return _CppBlockUtils.vector_UnspentTxOut_erase(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_vector_UnspentTxOut(*args) - try: self.this.append(this) - except: self.this = this - def push_back(self, *args): return _CppBlockUtils.vector_UnspentTxOut_push_back(self, *args) - def front(self): return _CppBlockUtils.vector_UnspentTxOut_front(self) - def back(self): return _CppBlockUtils.vector_UnspentTxOut_back(self) - def assign(self, *args): return _CppBlockUtils.vector_UnspentTxOut_assign(self, *args) - def resize(self, *args): return _CppBlockUtils.vector_UnspentTxOut_resize(self, *args) - def insert(self, *args): return _CppBlockUtils.vector_UnspentTxOut_insert(self, *args) - def reserve(self, *args): return _CppBlockUtils.vector_UnspentTxOut_reserve(self, *args) - def capacity(self): return _CppBlockUtils.vector_UnspentTxOut_capacity(self) - __swig_destroy__ = _CppBlockUtils.delete_vector_UnspentTxOut - __del__ = lambda self : None; -vector_UnspentTxOut_swigregister = _CppBlockUtils.vector_UnspentTxOut_swigregister -vector_UnspentTxOut_swigregister(vector_UnspentTxOut) - -class BlockHeader: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BlockHeader, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BlockHeader, name) - __repr__ = _swig_repr - def getVersion(self): return _CppBlockUtils.BlockHeader_getVersion(self) - def getPrevHash(self): return _CppBlockUtils.BlockHeader_getPrevHash(self) - def getMerkleRoot(self): return _CppBlockUtils.BlockHeader_getMerkleRoot(self) - def getTimestamp(self): return _CppBlockUtils.BlockHeader_getTimestamp(self) - def getDiffBits(self): return _CppBlockUtils.BlockHeader_getDiffBits(self) - def getNonce(self): return _CppBlockUtils.BlockHeader_getNonce(self) - def getThisHash(self): return _CppBlockUtils.BlockHeader_getThisHash(self) - def getNextHash(self): return _CppBlockUtils.BlockHeader_getNextHash(self) - def getNumTx(self): return _CppBlockUtils.BlockHeader_getNumTx(self) - def getBlockHeight(self): return _CppBlockUtils.BlockHeader_getBlockHeight(self) - def getDifficulty(self): return _CppBlockUtils.BlockHeader_getDifficulty(self) - def getDifficultySum(self): return _CppBlockUtils.BlockHeader_getDifficultySum(self) - def isMainBranch(self): return _CppBlockUtils.BlockHeader_isMainBranch(self) - def isOrphan(self): return _CppBlockUtils.BlockHeader_isOrphan(self) - def setVersion(self, *args): return _CppBlockUtils.BlockHeader_setVersion(self, *args) - def setPrevHash(self, *args): return _CppBlockUtils.BlockHeader_setPrevHash(self, *args) - def setMerkleRoot(self, *args): return _CppBlockUtils.BlockHeader_setMerkleRoot(self, *args) - def setTimestamp(self, *args): return _CppBlockUtils.BlockHeader_setTimestamp(self, *args) - def setDiffBits(self, *args): return _CppBlockUtils.BlockHeader_setDiffBits(self, *args) - def setNonce(self, *args): return _CppBlockUtils.BlockHeader_setNonce(self, *args) - def setNextHash(self, *args): return _CppBlockUtils.BlockHeader_setNextHash(self, *args) - def serialize(self, *args): return _CppBlockUtils.BlockHeader_serialize(self, *args) - def unserialize_1_(self, *args): return _CppBlockUtils.BlockHeader_unserialize_1_(self, *args) - def unserialize(self, *args): return _CppBlockUtils.BlockHeader_unserialize(self, *args) - def __init__(self, *args): - this = _CppBlockUtils.new_BlockHeader(*args) - try: self.this.append(this) - except: self.this = this - def pprint(self, *args): return _CppBlockUtils.BlockHeader_pprint(self, *args) - def findNonce(self): return _CppBlockUtils.BlockHeader_findNonce(self) - __swig_destroy__ = _CppBlockUtils.delete_BlockHeader - __del__ = lambda self : None; -BlockHeader_swigregister = _CppBlockUtils.BlockHeader_swigregister -BlockHeader_swigregister(BlockHeader) - -class OutPoint: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, OutPoint, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, OutPoint, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_OutPoint(*args) - try: self.this.append(this) - except: self.this = this - def getTxHash(self): return _CppBlockUtils.OutPoint_getTxHash(self) - def getTxHashRef(self): return _CppBlockUtils.OutPoint_getTxHashRef(self) - def getTxOutIndex(self): return _CppBlockUtils.OutPoint_getTxOutIndex(self) - def setTxHash(self, *args): return _CppBlockUtils.OutPoint_setTxHash(self, *args) - def setTxOutIndex(self, *args): return _CppBlockUtils.OutPoint_setTxOutIndex(self, *args) - def __lt__(self, *args): return _CppBlockUtils.OutPoint___lt__(self, *args) - def __eq__(self, *args): return _CppBlockUtils.OutPoint___eq__(self, *args) - def serialize(self, *args): return _CppBlockUtils.OutPoint_serialize(self, *args) - def unserialize(self, *args): return _CppBlockUtils.OutPoint_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_OutPoint - __del__ = lambda self : None; -OutPoint_swigregister = _CppBlockUtils.OutPoint_swigregister -OutPoint_swigregister(OutPoint) - -class TxIn: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxIn, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxIn, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxIn(*args) - try: self.this.append(this) - except: self.this = this - def getOutPoint(self): return _CppBlockUtils.TxIn_getOutPoint(self) - def getBinScript(self): return _CppBlockUtils.TxIn_getBinScript(self) - def getSequence(self): return _CppBlockUtils.TxIn_getSequence(self) - def getScriptSize(self): return _CppBlockUtils.TxIn_getScriptSize(self) - def getSize(self): return _CppBlockUtils.TxIn_getSize(self) - def setOutPoint(self, *args): return _CppBlockUtils.TxIn_setOutPoint(self, *args) - def setBinScript(self, *args): return _CppBlockUtils.TxIn_setBinScript(self, *args) - def setSequence(self, *args): return _CppBlockUtils.TxIn_setSequence(self, *args) - def setIsMine(self, *args): return _CppBlockUtils.TxIn_setIsMine(self, *args) - def serialize(self, *args): return _CppBlockUtils.TxIn_serialize(self, *args) - def unserialize(self, *args): return _CppBlockUtils.TxIn_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_TxIn - __del__ = lambda self : None; -TxIn_swigregister = _CppBlockUtils.TxIn_swigregister -TxIn_swigregister(TxIn) - -class TxOut: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxOut, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxOut, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxOut(*args) - try: self.this.append(this) - except: self.this = this - def getValue(self): return _CppBlockUtils.TxOut_getValue(self) - def getPkScript(self): return _CppBlockUtils.TxOut_getPkScript(self) - def getScriptSize(self): return _CppBlockUtils.TxOut_getScriptSize(self) - def isStandard(self): return _CppBlockUtils.TxOut_isStandard(self) - def getRecipientAddr(self): return _CppBlockUtils.TxOut_getRecipientAddr(self) - def setValue(self, *args): return _CppBlockUtils.TxOut_setValue(self, *args) - def setPkScript(self, *args): return _CppBlockUtils.TxOut_setPkScript(self, *args) - def serialize(self, *args): return _CppBlockUtils.TxOut_serialize(self, *args) - def unserialize(self, *args): return _CppBlockUtils.TxOut_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_TxOut - __del__ = lambda self : None; -TxOut_swigregister = _CppBlockUtils.TxOut_swigregister -TxOut_swigregister(TxOut) - -class Tx: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, Tx, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, Tx, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_Tx() - try: self.this.append(this) - except: self.this = this - def getVersion_(self): return _CppBlockUtils.Tx_getVersion_(self) - def getNumTxIn_(self): return _CppBlockUtils.Tx_getNumTxIn_(self) - def getNumTxOut_(self): return _CppBlockUtils.Tx_getNumTxOut_(self) - def getTxInList_(self): return _CppBlockUtils.Tx_getTxInList_(self) - def getTxOutList_(self): return _CppBlockUtils.Tx_getTxOutList_(self) - def getLockTime_(self): return _CppBlockUtils.Tx_getLockTime_(self) - def getNumBytes(self): return _CppBlockUtils.Tx_getNumBytes(self) - def getHeaderPtr(self): return _CppBlockUtils.Tx_getHeaderPtr(self) - def getHeaderRefPtr(self): return _CppBlockUtils.Tx_getHeaderRefPtr(self) - def createOutPoint(self, *args): return _CppBlockUtils.Tx_createOutPoint(self, *args) - def serialize(self, *args): return _CppBlockUtils.Tx_serialize(self, *args) - def unserialize(self, *args): return _CppBlockUtils.Tx_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_Tx - __del__ = lambda self : None; -Tx_swigregister = _CppBlockUtils.Tx_swigregister -Tx_swigregister(Tx) - -class UnspentTxOut: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, UnspentTxOut, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, UnspentTxOut, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_UnspentTxOut(*args) - try: self.this.append(this) - except: self.this = this - def init(self, *args): return _CppBlockUtils.UnspentTxOut_init(self, *args) - def getTxHash(self): return _CppBlockUtils.UnspentTxOut_getTxHash(self) - def getTxOutIndex(self): return _CppBlockUtils.UnspentTxOut_getTxOutIndex(self) - def getValue(self): return _CppBlockUtils.UnspentTxOut_getValue(self) - def getTxHeight(self): return _CppBlockUtils.UnspentTxOut_getTxHeight(self) - def getNumConfirm(self): return _CppBlockUtils.UnspentTxOut_getNumConfirm(self) - def getScript(self): return _CppBlockUtils.UnspentTxOut_getScript(self) - def getRecipientAddr(self): return _CppBlockUtils.UnspentTxOut_getRecipientAddr(self) - def updateNumConfirm(self, *args): return _CppBlockUtils.UnspentTxOut_updateNumConfirm(self, *args) - __swig_getmethods__["CompareNaive"] = lambda x: _CppBlockUtils.UnspentTxOut_CompareNaive - __swig_getmethods__["CompareTech1"] = lambda x: _CppBlockUtils.UnspentTxOut_CompareTech1 - __swig_getmethods__["CompareTech2"] = lambda x: _CppBlockUtils.UnspentTxOut_CompareTech2 - __swig_getmethods__["CompareTech3"] = lambda x: _CppBlockUtils.UnspentTxOut_CompareTech3 - __swig_getmethods__["sortTxOutVect"] = lambda x: _CppBlockUtils.UnspentTxOut_sortTxOutVect - def pprintOneLine(self, *args): return _CppBlockUtils.UnspentTxOut_pprintOneLine(self, *args) - __swig_setmethods__["txHash_"] = _CppBlockUtils.UnspentTxOut_txHash__set - __swig_getmethods__["txHash_"] = _CppBlockUtils.UnspentTxOut_txHash__get - __swig_setmethods__["txOutIndex_"] = _CppBlockUtils.UnspentTxOut_txOutIndex__set - __swig_getmethods__["txOutIndex_"] = _CppBlockUtils.UnspentTxOut_txOutIndex__get - __swig_setmethods__["txHeight_"] = _CppBlockUtils.UnspentTxOut_txHeight__set - __swig_getmethods__["txHeight_"] = _CppBlockUtils.UnspentTxOut_txHeight__get - __swig_setmethods__["value_"] = _CppBlockUtils.UnspentTxOut_value__set - __swig_getmethods__["value_"] = _CppBlockUtils.UnspentTxOut_value__get - __swig_setmethods__["script_"] = _CppBlockUtils.UnspentTxOut_script__set - __swig_getmethods__["script_"] = _CppBlockUtils.UnspentTxOut_script__get - __swig_setmethods__["numConfirm_"] = _CppBlockUtils.UnspentTxOut_numConfirm__set - __swig_getmethods__["numConfirm_"] = _CppBlockUtils.UnspentTxOut_numConfirm__get - __swig_setmethods__["targetTxAmount_"] = _CppBlockUtils.UnspentTxOut_targetTxAmount__set - __swig_getmethods__["targetTxAmount_"] = _CppBlockUtils.UnspentTxOut_targetTxAmount__get - __swig_destroy__ = _CppBlockUtils.delete_UnspentTxOut - __del__ = lambda self : None; -UnspentTxOut_swigregister = _CppBlockUtils.UnspentTxOut_swigregister -UnspentTxOut_swigregister(UnspentTxOut) - -def UnspentTxOut_CompareNaive(*args): - return _CppBlockUtils.UnspentTxOut_CompareNaive(*args) -UnspentTxOut_CompareNaive = _CppBlockUtils.UnspentTxOut_CompareNaive - -def UnspentTxOut_CompareTech1(*args): - return _CppBlockUtils.UnspentTxOut_CompareTech1(*args) -UnspentTxOut_CompareTech1 = _CppBlockUtils.UnspentTxOut_CompareTech1 - -def UnspentTxOut_CompareTech2(*args): - return _CppBlockUtils.UnspentTxOut_CompareTech2(*args) -UnspentTxOut_CompareTech2 = _CppBlockUtils.UnspentTxOut_CompareTech2 - -def UnspentTxOut_CompareTech3(*args): - return _CppBlockUtils.UnspentTxOut_CompareTech3(*args) -UnspentTxOut_CompareTech3 = _CppBlockUtils.UnspentTxOut_CompareTech3 - -def UnspentTxOut_sortTxOutVect(*args): - return _CppBlockUtils.UnspentTxOut_sortTxOutVect(*args) -UnspentTxOut_sortTxOutVect = _CppBlockUtils.UnspentTxOut_sortTxOutVect - -class BlockHeaderRef: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BlockHeaderRef, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BlockHeaderRef, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_BlockHeaderRef(*args) - try: self.this.append(this) - except: self.this = this - def unserialize_1_(self, *args): return _CppBlockUtils.BlockHeaderRef_unserialize_1_(self, *args) - def getVersion(self): return _CppBlockUtils.BlockHeaderRef_getVersion(self) - def getThisHash(self): return _CppBlockUtils.BlockHeaderRef_getThisHash(self) - def getPrevHash(self): return _CppBlockUtils.BlockHeaderRef_getPrevHash(self) - def getNextHash(self): return _CppBlockUtils.BlockHeaderRef_getNextHash(self) - def getMerkleRoot(self): return _CppBlockUtils.BlockHeaderRef_getMerkleRoot(self) - def getDiffBits(self): return _CppBlockUtils.BlockHeaderRef_getDiffBits(self) - def getTimestamp(self): return _CppBlockUtils.BlockHeaderRef_getTimestamp(self) - def getNonce(self): return _CppBlockUtils.BlockHeaderRef_getNonce(self) - def getBlockHeight(self): return _CppBlockUtils.BlockHeaderRef_getBlockHeight(self) - def isMainBranch(self): return _CppBlockUtils.BlockHeaderRef_isMainBranch(self) - def isOrphan(self): return _CppBlockUtils.BlockHeaderRef_isOrphan(self) - def getDifficulty(self): return _CppBlockUtils.BlockHeaderRef_getDifficulty(self) - def getDifficultySum(self): return _CppBlockUtils.BlockHeaderRef_getDifficultySum(self) - def getThisHashRef(self): return _CppBlockUtils.BlockHeaderRef_getThisHashRef(self) - def getPrevHashRef(self): return _CppBlockUtils.BlockHeaderRef_getPrevHashRef(self) - def getNextHashRef(self): return _CppBlockUtils.BlockHeaderRef_getNextHashRef(self) - def getMerkleRootRef(self): return _CppBlockUtils.BlockHeaderRef_getMerkleRootRef(self) - def getDiffBitsRef(self): return _CppBlockUtils.BlockHeaderRef_getDiffBitsRef(self) - def getBlkStartByte(self): return _CppBlockUtils.BlockHeaderRef_getBlkStartByte(self) - def getNumTx(self): return _CppBlockUtils.BlockHeaderRef_getNumTx(self) - def getPtr(self): return _CppBlockUtils.BlockHeaderRef_getPtr(self) - def getSize(self): return _CppBlockUtils.BlockHeaderRef_getSize(self) - def isInitialized(self): return _CppBlockUtils.BlockHeaderRef_isInitialized(self) - def getBlockSize(self): return _CppBlockUtils.BlockHeaderRef_getBlockSize(self) - def getTxRefPtrList(self): return _CppBlockUtils.BlockHeaderRef_getTxRefPtrList(self) - def getTxHashList(self): return _CppBlockUtils.BlockHeaderRef_getTxHashList(self) - def calcMerkleRoot(self, treeOut = None): return _CppBlockUtils.BlockHeaderRef_calcMerkleRoot(self, treeOut) - def verifyMerkleRoot(self): return _CppBlockUtils.BlockHeaderRef_verifyMerkleRoot(self) - def verifyIntegrity(self): return _CppBlockUtils.BlockHeaderRef_verifyIntegrity(self) - def getCopy(self): return _CppBlockUtils.BlockHeaderRef_getCopy(self) - def pprint(self, *args): return _CppBlockUtils.BlockHeaderRef_pprint(self, *args) - def pprintAlot(self, *args): return _CppBlockUtils.BlockHeaderRef_pprintAlot(self, *args) - def serialize(self): return _CppBlockUtils.BlockHeaderRef_serialize(self) - def serializeRef(self): return _CppBlockUtils.BlockHeaderRef_serializeRef(self) - def serializeWholeBlock(self, *args): return _CppBlockUtils.BlockHeaderRef_serializeWholeBlock(self, *args) - def unserialize(self, *args): return _CppBlockUtils.BlockHeaderRef_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_BlockHeaderRef - __del__ = lambda self : None; -BlockHeaderRef_swigregister = _CppBlockUtils.BlockHeaderRef_swigregister -BlockHeaderRef_swigregister(BlockHeaderRef) - -class OutPointRef: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, OutPointRef, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, OutPointRef, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_OutPointRef(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self): return _CppBlockUtils.OutPointRef_getPtr(self) - def getSize(self): return _CppBlockUtils.OutPointRef_getSize(self) - def getCopy(self): return _CppBlockUtils.OutPointRef_getCopy(self) - def getTxHash(self): return _CppBlockUtils.OutPointRef_getTxHash(self) - def getTxHashRef(self): return _CppBlockUtils.OutPointRef_getTxHashRef(self) - def getTxOutIndex(self): return _CppBlockUtils.OutPointRef_getTxOutIndex(self) - def serialize(self): return _CppBlockUtils.OutPointRef_serialize(self) - def serializeRef(self): return _CppBlockUtils.OutPointRef_serializeRef(self) - def unserialize(self, *args): return _CppBlockUtils.OutPointRef_unserialize(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_OutPointRef - __del__ = lambda self : None; -OutPointRef_swigregister = _CppBlockUtils.OutPointRef_swigregister -OutPointRef_swigregister(OutPointRef) - -class TxInRef: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxInRef, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxInRef, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxInRef(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self): return _CppBlockUtils.TxInRef_getPtr(self) - def getSize(self): return _CppBlockUtils.TxInRef_getSize(self) - def isStandard(self): return _CppBlockUtils.TxInRef_isStandard(self) - def isCoinbase(self): return _CppBlockUtils.TxInRef_isCoinbase(self) - def isInitialized(self): return _CppBlockUtils.TxInRef_isInitialized(self) - def getScriptType(self): return _CppBlockUtils.TxInRef_getScriptType(self) - def getScriptOffset(self): return _CppBlockUtils.TxInRef_getScriptOffset(self) - def getCopy(self): return _CppBlockUtils.TxInRef_getCopy(self) - def getParentTxPtr(self): return _CppBlockUtils.TxInRef_getParentTxPtr(self) - def getIndex(self): return _CppBlockUtils.TxInRef_getIndex(self) - def setParentTx(self, *args): return _CppBlockUtils.TxInRef_setParentTx(self, *args) - def getSequence(self): return _CppBlockUtils.TxInRef_getSequence(self) - def getScriptSize(self): return _CppBlockUtils.TxInRef_getScriptSize(self) - def getOutPoint(self): return _CppBlockUtils.TxInRef_getOutPoint(self) - def getOutPointRef(self): return _CppBlockUtils.TxInRef_getOutPointRef(self) - def getScript(self): return _CppBlockUtils.TxInRef_getScript(self) - def getScriptRef(self): return _CppBlockUtils.TxInRef_getScriptRef(self) - def isScriptStandard(self): return _CppBlockUtils.TxInRef_isScriptStandard(self) - def isScriptCoinbase(self): return _CppBlockUtils.TxInRef_isScriptCoinbase(self) - def isScriptSpendCB(self): return _CppBlockUtils.TxInRef_isScriptSpendCB(self) - def isScriptUnknown(self): return _CppBlockUtils.TxInRef_isScriptUnknown(self) - def serialize(self): return _CppBlockUtils.TxInRef_serialize(self) - def serializeRef(self): return _CppBlockUtils.TxInRef_serializeRef(self) - def unserialize(self, *args): return _CppBlockUtils.TxInRef_unserialize(self, *args) - def getSenderAddrIfAvailable(self, *args): return _CppBlockUtils.TxInRef_getSenderAddrIfAvailable(self, *args) - def pprint(self, *args): return _CppBlockUtils.TxInRef_pprint(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_TxInRef - __del__ = lambda self : None; -TxInRef_swigregister = _CppBlockUtils.TxInRef_swigregister -TxInRef_swigregister(TxInRef) - -class TxOutRef: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxOutRef, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxOutRef, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxOutRef(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self): return _CppBlockUtils.TxOutRef_getPtr(self) - def getSize(self): return _CppBlockUtils.TxOutRef_getSize(self) - def getValue(self): return _CppBlockUtils.TxOutRef_getValue(self) - def isStandard(self): return _CppBlockUtils.TxOutRef_isStandard(self) - def isInitialized(self): return _CppBlockUtils.TxOutRef_isInitialized(self) - def getParentTxPtr(self): return _CppBlockUtils.TxOutRef_getParentTxPtr(self) - def getIndex(self): return _CppBlockUtils.TxOutRef_getIndex(self) - def setParentTx(self, *args): return _CppBlockUtils.TxOutRef_setParentTx(self, *args) - def getScriptType(self): return _CppBlockUtils.TxOutRef_getScriptType(self) - def getScriptSize(self): return _CppBlockUtils.TxOutRef_getScriptSize(self) - def getRecipientAddr(self): return _CppBlockUtils.TxOutRef_getRecipientAddr(self) - def getRecipientAddrRef(self): return _CppBlockUtils.TxOutRef_getRecipientAddrRef(self) - def getScript(self): return _CppBlockUtils.TxOutRef_getScript(self) - def getScriptRef(self): return _CppBlockUtils.TxOutRef_getScriptRef(self) - def isScriptStandard(self): return _CppBlockUtils.TxOutRef_isScriptStandard(self) - def isScriptCoinbase(self): return _CppBlockUtils.TxOutRef_isScriptCoinbase(self) - def isScriptUnknown(self): return _CppBlockUtils.TxOutRef_isScriptUnknown(self) - def serialize(self): return _CppBlockUtils.TxOutRef_serialize(self) - def serializeRef(self): return _CppBlockUtils.TxOutRef_serializeRef(self) - def unserialize(self, *args): return _CppBlockUtils.TxOutRef_unserialize(self, *args) - def getCopy(self): return _CppBlockUtils.TxOutRef_getCopy(self) - def pprint(self, *args): return _CppBlockUtils.TxOutRef_pprint(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_TxOutRef - __del__ = lambda self : None; -TxOutRef_swigregister = _CppBlockUtils.TxOutRef_swigregister -TxOutRef_swigregister(TxOutRef) - -class TxRef: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxRef, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxRef, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxRef(*args) - try: self.this.append(this) - except: self.this = this - def getPtr(self): return _CppBlockUtils.TxRef_getPtr(self) - def getSize(self): return _CppBlockUtils.TxRef_getSize(self) - def getVersion(self): return _CppBlockUtils.TxRef_getVersion(self) - def getNumTxIn(self): return _CppBlockUtils.TxRef_getNumTxIn(self) - def getNumTxOut(self): return _CppBlockUtils.TxRef_getNumTxOut(self) - def getThisHash(self): return _CppBlockUtils.TxRef_getThisHash(self) - def getThisHashRef(self): return _CppBlockUtils.TxRef_getThisHashRef(self) - def setMainBranch(self, b = True): return _CppBlockUtils.TxRef_setMainBranch(self, b) - def isMainBranch(self): return _CppBlockUtils.TxRef_isMainBranch(self) - def getTxStartByte(self): return _CppBlockUtils.TxRef_getTxStartByte(self) - def setTxStartByte(self, *args): return _CppBlockUtils.TxRef_setTxStartByte(self, *args) - def getTxInOffset(self, *args): return _CppBlockUtils.TxRef_getTxInOffset(self, *args) - def getTxOutOffset(self, *args): return _CppBlockUtils.TxRef_getTxOutOffset(self, *args) - def createFromStr(self, *args): return _CppBlockUtils.TxRef_createFromStr(self, *args) - def getCopy(self): return _CppBlockUtils.TxRef_getCopy(self) - def getHeaderPtr(self): return _CppBlockUtils.TxRef_getHeaderPtr(self) - def setHeaderPtr(self, *args): return _CppBlockUtils.TxRef_setHeaderPtr(self, *args) - def serialize(self): return _CppBlockUtils.TxRef_serialize(self) - def serializeRef(self): return _CppBlockUtils.TxRef_serializeRef(self) - def unserialize(self, *args): return _CppBlockUtils.TxRef_unserialize(self, *args) - def getLockTime(self): return _CppBlockUtils.TxRef_getLockTime(self) - def getSumOfOutputs(self): return _CppBlockUtils.TxRef_getSumOfOutputs(self) - def getTxInRef(self, *args): return _CppBlockUtils.TxRef_getTxInRef(self, *args) - def getTxOutRef(self, *args): return _CppBlockUtils.TxRef_getTxOutRef(self, *args) - def getBlockTimestamp(self): return _CppBlockUtils.TxRef_getBlockTimestamp(self) - def getBlockHeight(self): return _CppBlockUtils.TxRef_getBlockHeight(self) - def getBlockTxIndex(self): return _CppBlockUtils.TxRef_getBlockTxIndex(self) - def pprint(self, *args): return _CppBlockUtils.TxRef_pprint(self, *args) - def pprintAlot(self, *args): return _CppBlockUtils.TxRef_pprintAlot(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_TxRef - __del__ = lambda self : None; -TxRef_swigregister = _CppBlockUtils.TxRef_swigregister -TxRef_swigregister(TxRef) - -TX_0_UNCONFIRMED = _CppBlockUtils.TX_0_UNCONFIRMED -TX_NOT_EXIST = _CppBlockUtils.TX_NOT_EXIST -TX_OFF_MAIN_BRANCH = _CppBlockUtils.TX_OFF_MAIN_BRANCH -class TxIOPair: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, TxIOPair, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, TxIOPair, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_TxIOPair(*args) - try: self.this.append(this) - except: self.this = this - def hasTxOut(self): return _CppBlockUtils.TxIOPair_hasTxOut(self) - def hasTxIn(self): return _CppBlockUtils.TxIOPair_hasTxIn(self) - def hasTxOutInMain(self): return _CppBlockUtils.TxIOPair_hasTxOutInMain(self) - def hasTxInInMain(self): return _CppBlockUtils.TxIOPair_hasTxInInMain(self) - def hasTxOutZC(self): return _CppBlockUtils.TxIOPair_hasTxOutZC(self) - def hasTxInZC(self): return _CppBlockUtils.TxIOPair_hasTxInZC(self) - def hasValue(self): return _CppBlockUtils.TxIOPair_hasValue(self) - def getValue(self): return _CppBlockUtils.TxIOPair_getValue(self) - def getTxOutRef(self): return _CppBlockUtils.TxIOPair_getTxOutRef(self) - def getTxInRef(self): return _CppBlockUtils.TxIOPair_getTxInRef(self) - def getTxOutRefZC(self): return _CppBlockUtils.TxIOPair_getTxOutRefZC(self) - def getTxInRefZC(self): return _CppBlockUtils.TxIOPair_getTxInRefZC(self) - def getTxRefOfOutput(self): return _CppBlockUtils.TxIOPair_getTxRefOfOutput(self) - def getTxRefOfInput(self): return _CppBlockUtils.TxIOPair_getTxRefOfInput(self) - def getOutPoint(self): return _CppBlockUtils.TxIOPair_getOutPoint(self) - def reassessValidity(self): return _CppBlockUtils.TxIOPair_reassessValidity(self) - def isTxOutFromSelf(self): return _CppBlockUtils.TxIOPair_isTxOutFromSelf(self) - def setTxOutFromSelf(self, isTrue = True): return _CppBlockUtils.TxIOPair_setTxOutFromSelf(self, isTrue) - def getTxHashOfInput(self): return _CppBlockUtils.TxIOPair_getTxHashOfInput(self) - def getTxHashOfOutput(self): return _CppBlockUtils.TxIOPair_getTxHashOfOutput(self) - def setTxInRef(self, *args): return _CppBlockUtils.TxIOPair_setTxInRef(self, *args) - def setTxOutRef(self, *args): return _CppBlockUtils.TxIOPair_setTxOutRef(self, *args) - def isSourceUnknown(self): return _CppBlockUtils.TxIOPair_isSourceUnknown(self) - def isStandardTxOutScript(self): return _CppBlockUtils.TxIOPair_isStandardTxOutScript(self) - def isSpent(self): return _CppBlockUtils.TxIOPair_isSpent(self) - def isUnspent(self): return _CppBlockUtils.TxIOPair_isUnspent(self) - def isSpendable(self): return _CppBlockUtils.TxIOPair_isSpendable(self) - def isMineButUnconfirmed(self, *args): return _CppBlockUtils.TxIOPair_isMineButUnconfirmed(self, *args) - def clearZCFields(self): return _CppBlockUtils.TxIOPair_clearZCFields(self) - def pprintOneLine(self): return _CppBlockUtils.TxIOPair_pprintOneLine(self) - __swig_destroy__ = _CppBlockUtils.delete_TxIOPair - __del__ = lambda self : None; -TxIOPair_swigregister = _CppBlockUtils.TxIOPair_swigregister -TxIOPair_swigregister(TxIOPair) - -class LedgerEntry: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, LedgerEntry, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, LedgerEntry, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_LedgerEntry(*args) - try: self.this.append(this) - except: self.this = this - def getAddrStr20(self): return _CppBlockUtils.LedgerEntry_getAddrStr20(self) - def getValue(self): return _CppBlockUtils.LedgerEntry_getValue(self) - def getBlockNum(self): return _CppBlockUtils.LedgerEntry_getBlockNum(self) - def getTxHash(self): return _CppBlockUtils.LedgerEntry_getTxHash(self) - def getIndex(self): return _CppBlockUtils.LedgerEntry_getIndex(self) - def getTxTime(self): return _CppBlockUtils.LedgerEntry_getTxTime(self) - def isValid(self): return _CppBlockUtils.LedgerEntry_isValid(self) - def isSentToSelf(self): return _CppBlockUtils.LedgerEntry_isSentToSelf(self) - def isChangeBack(self): return _CppBlockUtils.LedgerEntry_isChangeBack(self) - def setAddr20(self, *args): return _CppBlockUtils.LedgerEntry_setAddr20(self, *args) - def setValid(self, b = True): return _CppBlockUtils.LedgerEntry_setValid(self, b) - def changeBlkNum(self, *args): return _CppBlockUtils.LedgerEntry_changeBlkNum(self, *args) - def __lt__(self, *args): return _CppBlockUtils.LedgerEntry___lt__(self, *args) - def __eq__(self, *args): return _CppBlockUtils.LedgerEntry___eq__(self, *args) - def pprint(self): return _CppBlockUtils.LedgerEntry_pprint(self) - def pprintOneLine(self): return _CppBlockUtils.LedgerEntry_pprintOneLine(self) - __swig_destroy__ = _CppBlockUtils.delete_LedgerEntry - __del__ = lambda self : None; -LedgerEntry_swigregister = _CppBlockUtils.LedgerEntry_swigregister -LedgerEntry_swigregister(LedgerEntry) - -class BtcAddress: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BtcAddress, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BtcAddress, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_BtcAddress(*args) - try: self.this.append(this) - except: self.this = this - def getAddrStr20(self): return _CppBlockUtils.BtcAddress_getAddrStr20(self) - def getFirstBlockNum(self): return _CppBlockUtils.BtcAddress_getFirstBlockNum(self) - def getFirstTimestamp(self): return _CppBlockUtils.BtcAddress_getFirstTimestamp(self) - def getLastBlockNum(self): return _CppBlockUtils.BtcAddress_getLastBlockNum(self) - def getLastTimestamp(self): return _CppBlockUtils.BtcAddress_getLastTimestamp(self) - def setFirstBlockNum(self, *args): return _CppBlockUtils.BtcAddress_setFirstBlockNum(self, *args) - def setFirstTimestamp(self, *args): return _CppBlockUtils.BtcAddress_setFirstTimestamp(self, *args) - def setLastBlockNum(self, *args): return _CppBlockUtils.BtcAddress_setLastBlockNum(self, *args) - def setLastTimestamp(self, *args): return _CppBlockUtils.BtcAddress_setLastTimestamp(self, *args) - def isUnused(self): return _CppBlockUtils.BtcAddress_isUnused(self) - def setUnused(self): return _CppBlockUtils.BtcAddress_setUnused(self) - def setAddrStr20(self, *args): return _CppBlockUtils.BtcAddress_setAddrStr20(self, *args) - def sortLedger(self): return _CppBlockUtils.BtcAddress_sortLedger(self) - def removeInvalidEntries(self): return _CppBlockUtils.BtcAddress_removeInvalidEntries(self) - def getFullBalance(self): return _CppBlockUtils.BtcAddress_getFullBalance(self) - def getSpendableBalance(self): return _CppBlockUtils.BtcAddress_getSpendableBalance(self) - def getUnconfirmedBalance(self, *args): return _CppBlockUtils.BtcAddress_getUnconfirmedBalance(self, *args) - def getFullTxOutList(self, currBlk = 0): return _CppBlockUtils.BtcAddress_getFullTxOutList(self, currBlk) - def getSpendableTxOutList(self, currBlk = 0): return _CppBlockUtils.BtcAddress_getSpendableTxOutList(self, currBlk) - def clearZeroConfPool(self): return _CppBlockUtils.BtcAddress_clearZeroConfPool(self) - def getTxLedger(self): return _CppBlockUtils.BtcAddress_getTxLedger(self) - def getZeroConfLedger(self): return _CppBlockUtils.BtcAddress_getZeroConfLedger(self) - def getTxIOList(self): return _CppBlockUtils.BtcAddress_getTxIOList(self) - def addTxIO(self, *args): return _CppBlockUtils.BtcAddress_addTxIO(self, *args) - def addLedgerEntry(self, *args): return _CppBlockUtils.BtcAddress_addLedgerEntry(self, *args) - def pprintLedger(self): return _CppBlockUtils.BtcAddress_pprintLedger(self) - __swig_destroy__ = _CppBlockUtils.delete_BtcAddress - __del__ = lambda self : None; -BtcAddress_swigregister = _CppBlockUtils.BtcAddress_swigregister -BtcAddress_swigregister(BtcAddress) - -class BtcWallet: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BtcWallet, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BtcWallet, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_BtcWallet() - try: self.this.append(this) - except: self.this = this - def addAddress(self, *args): return _CppBlockUtils.BtcWallet_addAddress(self, *args) - def addAddress_BtcAddress_(self, *args): return _CppBlockUtils.BtcWallet_addAddress_BtcAddress_(self, *args) - def addAddress_1_(self, *args): return _CppBlockUtils.BtcWallet_addAddress_1_(self, *args) - def addAddress_3_(self, *args): return _CppBlockUtils.BtcWallet_addAddress_3_(self, *args) - def addAddress_5_(self, *args): return _CppBlockUtils.BtcWallet_addAddress_5_(self, *args) - def hasAddr(self, *args): return _CppBlockUtils.BtcWallet_hasAddr(self, *args) - def isMineBulkFilter(self, *args): return _CppBlockUtils.BtcWallet_isMineBulkFilter(self, *args) - def scanTx(self, *args): return _CppBlockUtils.BtcWallet_scanTx(self, *args) - def scanNonStdTx(self, *args): return _CppBlockUtils.BtcWallet_scanNonStdTx(self, *args) - def getFullBalance(self): return _CppBlockUtils.BtcWallet_getFullBalance(self) - def getSpendableBalance(self): return _CppBlockUtils.BtcWallet_getSpendableBalance(self) - def getUnconfirmedBalance(self, *args): return _CppBlockUtils.BtcWallet_getUnconfirmedBalance(self, *args) - def getFullTxOutList(self, currBlk = 0): return _CppBlockUtils.BtcWallet_getFullTxOutList(self, currBlk) - def getSpendableTxOutList(self, currBlk = 0): return _CppBlockUtils.BtcWallet_getSpendableTxOutList(self, currBlk) - def clearZeroConfPool(self): return _CppBlockUtils.BtcWallet_clearZeroConfPool(self) - def getNumAddr(self): return _CppBlockUtils.BtcWallet_getNumAddr(self) - def getAddrByIndex(self, *args): return _CppBlockUtils.BtcWallet_getAddrByIndex(self, *args) - def getAddrByHash160(self, *args): return _CppBlockUtils.BtcWallet_getAddrByHash160(self, *args) - def sortLedger(self): return _CppBlockUtils.BtcWallet_sortLedger(self) - def removeInvalidEntries(self): return _CppBlockUtils.BtcWallet_removeInvalidEntries(self) - def getZeroConfLedger(self, addr160 = None): return _CppBlockUtils.BtcWallet_getZeroConfLedger(self, addr160) - def getTxLedger(self, addr160 = None): return _CppBlockUtils.BtcWallet_getTxLedger(self, addr160) - def getTxIOMap(self): return _CppBlockUtils.BtcWallet_getTxIOMap(self) - def getNonStdTxIO(self): return _CppBlockUtils.BtcWallet_getNonStdTxIO(self) - def isOutPointMine(self, *args): return _CppBlockUtils.BtcWallet_isOutPointMine(self, *args) - def pprintLedger(self): return _CppBlockUtils.BtcWallet_pprintLedger(self) - def pprintAlot(self, topBlk = 0, withAddr = False): return _CppBlockUtils.BtcWallet_pprintAlot(self, topBlk, withAddr) - __swig_destroy__ = _CppBlockUtils.delete_BtcWallet - __del__ = lambda self : None; -BtcWallet_swigregister = _CppBlockUtils.BtcWallet_swigregister -BtcWallet_swigregister(BtcWallet) - -class ZeroConfData: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, ZeroConfData, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, ZeroConfData, name) - __repr__ = _swig_repr - __swig_setmethods__["txref_"] = _CppBlockUtils.ZeroConfData_txref__set - __swig_getmethods__["txref_"] = _CppBlockUtils.ZeroConfData_txref__get - __swig_setmethods__["txtime_"] = _CppBlockUtils.ZeroConfData_txtime__set - __swig_getmethods__["txtime_"] = _CppBlockUtils.ZeroConfData_txtime__get - __swig_setmethods__["iter_"] = _CppBlockUtils.ZeroConfData_iter__set - __swig_getmethods__["iter_"] = _CppBlockUtils.ZeroConfData_iter__get - def __init__(self): - this = _CppBlockUtils.new_ZeroConfData() - try: self.this.append(this) - except: self.this = this - __swig_destroy__ = _CppBlockUtils.delete_ZeroConfData - __del__ = lambda self : None; -ZeroConfData_swigregister = _CppBlockUtils.ZeroConfData_swigregister -ZeroConfData_swigregister(ZeroConfData) - -BDM_MODE_FULL_BLOCKCHAIN = _CppBlockUtils.BDM_MODE_FULL_BLOCKCHAIN -BDM_MODE_LIGHT_STORAGE = _CppBlockUtils.BDM_MODE_LIGHT_STORAGE -BDM_MODE_NO_STORAGE = _CppBlockUtils.BDM_MODE_NO_STORAGE -BDM_MODE_COUNT = _CppBlockUtils.BDM_MODE_COUNT -ADD_BLOCK_SUCCEEDED = _CppBlockUtils.ADD_BLOCK_SUCCEEDED -ADD_BLOCK_NEW_TOP_BLOCK = _CppBlockUtils.ADD_BLOCK_NEW_TOP_BLOCK -ADD_BLOCK_CAUSED_REORG = _CppBlockUtils.ADD_BLOCK_CAUSED_REORG -class BlockDataManager_FullRAM: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BlockDataManager_FullRAM, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BlockDataManager_FullRAM, name) - def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") - __repr__ = _swig_repr - __swig_getmethods__["GetInstance"] = lambda x: _CppBlockUtils.BlockDataManager_FullRAM_GetInstance - def isInitialized(self): return _CppBlockUtils.BlockDataManager_FullRAM_isInitialized(self) - def SetBtcNetworkParams(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_SetBtcNetworkParams(self, *args) - def SelectNetwork(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_SelectNetwork(self, *args) - def Reset(self): return _CppBlockUtils.BlockDataManager_FullRAM_Reset(self) - def getNumConfirmations(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getNumConfirmations(self, *args) - def getTopBlockHeader(self): return _CppBlockUtils.BlockDataManager_FullRAM_getTopBlockHeader(self) - def getGenesisBlock(self): return _CppBlockUtils.BlockDataManager_FullRAM_getGenesisBlock(self) - def getHeaderByHeight(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getHeaderByHeight(self, *args) - def getHeaderByHash(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getHeaderByHash(self, *args) - def getTxByHash(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getTxByHash(self, *args) - def getBlockfilePath(self): return _CppBlockUtils.BlockDataManager_FullRAM_getBlockfilePath(self) - def parseNewBlockData(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_parseNewBlockData(self, *args) - def addNewBlockData(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_addNewBlockData(self, *args) - def addNewBlockDataRef(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_addNewBlockDataRef(self, *args) - def reassessAfterReorg(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_reassessAfterReorg(self, *args) - def hasTxWithHash(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_hasTxWithHash(self, *args) - def hasHeaderWithHash(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_hasHeaderWithHash(self, *args) - def getNumBlocks(self): return _CppBlockUtils.BlockDataManager_FullRAM_getNumBlocks(self) - def getNumTx(self): return _CppBlockUtils.BlockDataManager_FullRAM_getNumTx(self) - def getHeadersNotOnMainChain(self): return _CppBlockUtils.BlockDataManager_FullRAM_getHeadersNotOnMainChain(self) - def prefixSearchHeaders(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_prefixSearchHeaders(self, *args) - def prefixSearchTx(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_prefixSearchTx(self, *args) - def prefixSearchAddress(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_prefixSearchAddress(self, *args) - def scanBlockchainForTx(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_scanBlockchainForTx(self, *args) - def readBlkFile_FromScratch(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_readBlkFile_FromScratch(self, *args) - def readBlkFileUpdate(self, filename = ""): return _CppBlockUtils.BlockDataManager_FullRAM_readBlkFileUpdate(self, filename) - def verifyBlkFileIntegrity(self): return _CppBlockUtils.BlockDataManager_FullRAM_verifyBlkFileIntegrity(self) - def scanBlockchainForTx_FromScratch_AllAddr(self): return _CppBlockUtils.BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr(self) - def findAllNonStdTx(self): return _CppBlockUtils.BlockDataManager_FullRAM_findAllNonStdTx(self) - def enableZeroConf(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_enableZeroConf(self, *args) - def disableZeroConf(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_disableZeroConf(self, *args) - def readZeroConfFile(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_readZeroConfFile(self, *args) - def addNewZeroConfTx(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_addNewZeroConfTx(self, *args) - def purgeZeroConfPool(self): return _CppBlockUtils.BlockDataManager_FullRAM_purgeZeroConfPool(self) - def pprintZeroConfPool(self): return _CppBlockUtils.BlockDataManager_FullRAM_pprintZeroConfPool(self) - def rewriteZeroConfFile(self): return _CppBlockUtils.BlockDataManager_FullRAM_rewriteZeroConfFile(self) - def rescanWalletZeroConf(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_rescanWalletZeroConf(self, *args) - def organizeChain(self, forceRebuild = False): return _CppBlockUtils.BlockDataManager_FullRAM_organizeChain(self, forceRebuild) - def isLastBlockReorg(self): return _CppBlockUtils.BlockDataManager_FullRAM_isLastBlockReorg(self) - def getTxJustInvalidated(self): return _CppBlockUtils.BlockDataManager_FullRAM_getTxJustInvalidated(self) - def getTxJustAffected(self): return _CppBlockUtils.BlockDataManager_FullRAM_getTxJustAffected(self) - def updateWalletAfterReorg(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_updateWalletAfterReorg(self, *args) - def updateWalletsAfterReorg(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_updateWalletsAfterReorg(self, *args) - def getPrevTxOut(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getPrevTxOut(self, *args) - def getSenderAddr20(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getSenderAddr20(self, *args) - def getSentValue(self, *args): return _CppBlockUtils.BlockDataManager_FullRAM_getSentValue(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_BlockDataManager_FullRAM - __del__ = lambda self : None; -BlockDataManager_FullRAM_swigregister = _CppBlockUtils.BlockDataManager_FullRAM_swigregister -BlockDataManager_FullRAM_swigregister(BlockDataManager_FullRAM) - -def BlockDataManager_FullRAM_GetInstance(): - return _CppBlockUtils.BlockDataManager_FullRAM_GetInstance() -BlockDataManager_FullRAM_GetInstance = _CppBlockUtils.BlockDataManager_FullRAM_GetInstance - -class BlockDataManager: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BlockDataManager, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BlockDataManager, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_BlockDataManager() - try: self.this.append(this) - except: self.this = this - def getBDM(self): return _CppBlockUtils.BlockDataManager_getBDM(self) - __swig_destroy__ = _CppBlockUtils.delete_BlockDataManager - __del__ = lambda self : None; -BlockDataManager_swigregister = _CppBlockUtils.BlockDataManager_swigregister -BlockDataManager_swigregister(BlockDataManager) - -HEADER_SIZE = _CppBlockUtils.HEADER_SIZE -CONVERTBTC = _CppBlockUtils.CONVERTBTC -TESTNET_MAGIC_BYTES = _CppBlockUtils.TESTNET_MAGIC_BYTES -TESTNET_GENESIS_HASH_HEX = _CppBlockUtils.TESTNET_GENESIS_HASH_HEX -TESTNET_GENESIS_TX_HASH_HEX = _CppBlockUtils.TESTNET_GENESIS_TX_HASH_HEX -MAINNET_MAGIC_BYTES = _CppBlockUtils.MAINNET_MAGIC_BYTES -MAINNET_GENESIS_HASH_HEX = _CppBlockUtils.MAINNET_GENESIS_HASH_HEX -MAINNET_GENESIS_TX_HASH_HEX = _CppBlockUtils.MAINNET_GENESIS_TX_HASH_HEX -TXOUT_SCRIPT_STANDARD = _CppBlockUtils.TXOUT_SCRIPT_STANDARD -TXOUT_SCRIPT_COINBASE = _CppBlockUtils.TXOUT_SCRIPT_COINBASE -TXOUT_SCRIPT_UNKNOWN = _CppBlockUtils.TXOUT_SCRIPT_UNKNOWN -TXIN_SCRIPT_STANDARD = _CppBlockUtils.TXIN_SCRIPT_STANDARD -TXIN_SCRIPT_COINBASE = _CppBlockUtils.TXIN_SCRIPT_COINBASE -TXIN_SCRIPT_SPENDCB = _CppBlockUtils.TXIN_SCRIPT_SPENDCB -TXIN_SCRIPT_UNKNOWN = _CppBlockUtils.TXIN_SCRIPT_UNKNOWN -OP_0 = _CppBlockUtils.OP_0 -OP_FALSE = _CppBlockUtils.OP_FALSE -OP_PUSHDATA1 = _CppBlockUtils.OP_PUSHDATA1 -OP_PUSHDATA2 = _CppBlockUtils.OP_PUSHDATA2 -OP_PUSHDATA4 = _CppBlockUtils.OP_PUSHDATA4 -OP_1NEGATE = _CppBlockUtils.OP_1NEGATE -OP_RESERVED = _CppBlockUtils.OP_RESERVED -OP_1 = _CppBlockUtils.OP_1 -OP_TRUE = _CppBlockUtils.OP_TRUE -OP_2 = _CppBlockUtils.OP_2 -OP_3 = _CppBlockUtils.OP_3 -OP_4 = _CppBlockUtils.OP_4 -OP_5 = _CppBlockUtils.OP_5 -OP_6 = _CppBlockUtils.OP_6 -OP_7 = _CppBlockUtils.OP_7 -OP_8 = _CppBlockUtils.OP_8 -OP_9 = _CppBlockUtils.OP_9 -OP_10 = _CppBlockUtils.OP_10 -OP_11 = _CppBlockUtils.OP_11 -OP_12 = _CppBlockUtils.OP_12 -OP_13 = _CppBlockUtils.OP_13 -OP_14 = _CppBlockUtils.OP_14 -OP_15 = _CppBlockUtils.OP_15 -OP_16 = _CppBlockUtils.OP_16 -OP_NOP = _CppBlockUtils.OP_NOP -OP_VER = _CppBlockUtils.OP_VER -OP_IF = _CppBlockUtils.OP_IF -OP_NOTIF = _CppBlockUtils.OP_NOTIF -OP_VERIF = _CppBlockUtils.OP_VERIF -OP_VERNOTIF = _CppBlockUtils.OP_VERNOTIF -OP_ELSE = _CppBlockUtils.OP_ELSE -OP_ENDIF = _CppBlockUtils.OP_ENDIF -OP_VERIFY = _CppBlockUtils.OP_VERIFY -OP_RETURN = _CppBlockUtils.OP_RETURN -OP_TOALTSTACK = _CppBlockUtils.OP_TOALTSTACK -OP_FROMALTSTACK = _CppBlockUtils.OP_FROMALTSTACK -OP_2DROP = _CppBlockUtils.OP_2DROP -OP_2DUP = _CppBlockUtils.OP_2DUP -OP_3DUP = _CppBlockUtils.OP_3DUP -OP_2OVER = _CppBlockUtils.OP_2OVER -OP_2ROT = _CppBlockUtils.OP_2ROT -OP_2SWAP = _CppBlockUtils.OP_2SWAP -OP_IFDUP = _CppBlockUtils.OP_IFDUP -OP_DEPTH = _CppBlockUtils.OP_DEPTH -OP_DROP = _CppBlockUtils.OP_DROP -OP_DUP = _CppBlockUtils.OP_DUP -OP_NIP = _CppBlockUtils.OP_NIP -OP_OVER = _CppBlockUtils.OP_OVER -OP_PICK = _CppBlockUtils.OP_PICK -OP_ROLL = _CppBlockUtils.OP_ROLL -OP_ROT = _CppBlockUtils.OP_ROT -OP_SWAP = _CppBlockUtils.OP_SWAP -OP_TUCK = _CppBlockUtils.OP_TUCK -OP_CAT = _CppBlockUtils.OP_CAT -OP_SUBSTR = _CppBlockUtils.OP_SUBSTR -OP_LEFT = _CppBlockUtils.OP_LEFT -OP_RIGHT = _CppBlockUtils.OP_RIGHT -OP_SIZE = _CppBlockUtils.OP_SIZE -OP_INVERT = _CppBlockUtils.OP_INVERT -OP_AND = _CppBlockUtils.OP_AND -OP_OR = _CppBlockUtils.OP_OR -OP_XOR = _CppBlockUtils.OP_XOR -OP_EQUAL = _CppBlockUtils.OP_EQUAL -OP_EQUALVERIFY = _CppBlockUtils.OP_EQUALVERIFY -OP_RESERVED1 = _CppBlockUtils.OP_RESERVED1 -OP_RESERVED2 = _CppBlockUtils.OP_RESERVED2 -OP_1ADD = _CppBlockUtils.OP_1ADD -OP_1SUB = _CppBlockUtils.OP_1SUB -OP_2MUL = _CppBlockUtils.OP_2MUL -OP_2DIV = _CppBlockUtils.OP_2DIV -OP_NEGATE = _CppBlockUtils.OP_NEGATE -OP_ABS = _CppBlockUtils.OP_ABS -OP_NOT = _CppBlockUtils.OP_NOT -OP_0NOTEQUAL = _CppBlockUtils.OP_0NOTEQUAL -OP_ADD = _CppBlockUtils.OP_ADD -OP_SUB = _CppBlockUtils.OP_SUB -OP_MUL = _CppBlockUtils.OP_MUL -OP_DIV = _CppBlockUtils.OP_DIV -OP_MOD = _CppBlockUtils.OP_MOD -OP_LSHIFT = _CppBlockUtils.OP_LSHIFT -OP_RSHIFT = _CppBlockUtils.OP_RSHIFT -OP_BOOLAND = _CppBlockUtils.OP_BOOLAND -OP_BOOLOR = _CppBlockUtils.OP_BOOLOR -OP_NUMEQUAL = _CppBlockUtils.OP_NUMEQUAL -OP_NUMEQUALVERIFY = _CppBlockUtils.OP_NUMEQUALVERIFY -OP_NUMNOTEQUAL = _CppBlockUtils.OP_NUMNOTEQUAL -OP_LESSTHAN = _CppBlockUtils.OP_LESSTHAN -OP_GREATERTHAN = _CppBlockUtils.OP_GREATERTHAN -OP_LESSTHANOREQUAL = _CppBlockUtils.OP_LESSTHANOREQUAL -OP_GREATERTHANOREQUAL = _CppBlockUtils.OP_GREATERTHANOREQUAL -OP_MIN = _CppBlockUtils.OP_MIN -OP_MAX = _CppBlockUtils.OP_MAX -OP_WITHIN = _CppBlockUtils.OP_WITHIN -OP_RIPEMD160 = _CppBlockUtils.OP_RIPEMD160 -OP_SHA1 = _CppBlockUtils.OP_SHA1 -OP_SHA256 = _CppBlockUtils.OP_SHA256 -OP_HASH160 = _CppBlockUtils.OP_HASH160 -OP_HASH256 = _CppBlockUtils.OP_HASH256 -OP_CODESEPARATOR = _CppBlockUtils.OP_CODESEPARATOR -OP_CHECKSIG = _CppBlockUtils.OP_CHECKSIG -OP_CHECKSIGVERIFY = _CppBlockUtils.OP_CHECKSIGVERIFY -OP_CHECKMULTISIG = _CppBlockUtils.OP_CHECKMULTISIG -OP_CHECKMULTISIGVERIFY = _CppBlockUtils.OP_CHECKMULTISIGVERIFY -OP_NOP1 = _CppBlockUtils.OP_NOP1 -OP_NOP2 = _CppBlockUtils.OP_NOP2 -OP_NOP3 = _CppBlockUtils.OP_NOP3 -OP_NOP4 = _CppBlockUtils.OP_NOP4 -OP_NOP5 = _CppBlockUtils.OP_NOP5 -OP_NOP6 = _CppBlockUtils.OP_NOP6 -OP_NOP7 = _CppBlockUtils.OP_NOP7 -OP_NOP8 = _CppBlockUtils.OP_NOP8 -OP_NOP9 = _CppBlockUtils.OP_NOP9 -OP_NOP10 = _CppBlockUtils.OP_NOP10 -OP_PUBKEYHASH = _CppBlockUtils.OP_PUBKEYHASH -OP_PUBKEY = _CppBlockUtils.OP_PUBKEY -OP_INVALIDOPCODE = _CppBlockUtils.OP_INVALIDOPCODE -class BtcUtils: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, BtcUtils, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, BtcUtils, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_BtcUtils() - try: self.this.append(this) - except: self.this = this - def hash256(self, *args): return _CppBlockUtils.BtcUtils_hash256(self, *args) - def hash160(self, *args): return _CppBlockUtils.BtcUtils_hash160(self, *args) - __swig_setmethods__["BadAddress_"] = _CppBlockUtils.BtcUtils_BadAddress__set - __swig_getmethods__["BadAddress_"] = _CppBlockUtils.BtcUtils_BadAddress__get - __swig_setmethods__["EmptyHash_"] = _CppBlockUtils.BtcUtils_EmptyHash__set - __swig_getmethods__["EmptyHash_"] = _CppBlockUtils.BtcUtils_EmptyHash__get - __swig_getmethods__["readVarInt"] = lambda x: _CppBlockUtils.BtcUtils_readVarInt - __swig_getmethods__["readVarIntLength"] = lambda x: _CppBlockUtils.BtcUtils_readVarIntLength - __swig_getmethods__["calcVarIntSize"] = lambda x: _CppBlockUtils.BtcUtils_calcVarIntSize - __swig_getmethods__["getHash256_NoSafetyCheck"] = lambda x: _CppBlockUtils.BtcUtils_getHash256_NoSafetyCheck - __swig_getmethods__["getHash256"] = lambda x: _CppBlockUtils.BtcUtils_getHash256 - __swig_getmethods__["getHash160_NoSafetyCheck"] = lambda x: _CppBlockUtils.BtcUtils_getHash160_NoSafetyCheck - __swig_getmethods__["getHash160"] = lambda x: _CppBlockUtils.BtcUtils_getHash160 - def getHash160_SWIG(self, *args): return _CppBlockUtils.BtcUtils_getHash160_SWIG(self, *args) - def ripemd160_SWIG(self, *args): return _CppBlockUtils.BtcUtils_ripemd160_SWIG(self, *args) - __swig_getmethods__["calculateMerkleRoot"] = lambda x: _CppBlockUtils.BtcUtils_calculateMerkleRoot - __swig_getmethods__["calculateMerkleTree"] = lambda x: _CppBlockUtils.BtcUtils_calculateMerkleTree - __swig_getmethods__["TxInCalcLength"] = lambda x: _CppBlockUtils.BtcUtils_TxInCalcLength - __swig_getmethods__["TxOutCalcLength"] = lambda x: _CppBlockUtils.BtcUtils_TxOutCalcLength - __swig_getmethods__["TxCalcLength"] = lambda x: _CppBlockUtils.BtcUtils_TxCalcLength - __swig_getmethods__["getTxOutScriptType"] = lambda x: _CppBlockUtils.BtcUtils_getTxOutScriptType - __swig_getmethods__["getTxInScriptType"] = lambda x: _CppBlockUtils.BtcUtils_getTxInScriptType - __swig_getmethods__["getTxOutRecipientAddr"] = lambda x: _CppBlockUtils.BtcUtils_getTxOutRecipientAddr - __swig_getmethods__["getTxInAddr"] = lambda x: _CppBlockUtils.BtcUtils_getTxInAddr - __swig_getmethods__["convertDiffBitsToDouble"] = lambda x: _CppBlockUtils.BtcUtils_convertDiffBitsToDouble - __swig_getmethods__["getOpCodeName"] = lambda x: _CppBlockUtils.BtcUtils_getOpCodeName - __swig_getmethods__["convertScriptToOpStrings"] = lambda x: _CppBlockUtils.BtcUtils_convertScriptToOpStrings - __swig_getmethods__["num2str"] = lambda x: _CppBlockUtils.BtcUtils_num2str - __swig_getmethods__["pprintScript"] = lambda x: _CppBlockUtils.BtcUtils_pprintScript - __swig_getmethods__["verifyProofOfWork"] = lambda x: _CppBlockUtils.BtcUtils_verifyProofOfWork - __swig_destroy__ = _CppBlockUtils.delete_BtcUtils - __del__ = lambda self : None; -BtcUtils_swigregister = _CppBlockUtils.BtcUtils_swigregister -BtcUtils_swigregister(BtcUtils) -cvar = _CppBlockUtils.cvar - -def BtcUtils_readVarInt(*args): - return _CppBlockUtils.BtcUtils_readVarInt(*args) -BtcUtils_readVarInt = _CppBlockUtils.BtcUtils_readVarInt - -def BtcUtils_readVarIntLength(*args): - return _CppBlockUtils.BtcUtils_readVarIntLength(*args) -BtcUtils_readVarIntLength = _CppBlockUtils.BtcUtils_readVarIntLength - -def BtcUtils_calcVarIntSize(*args): - return _CppBlockUtils.BtcUtils_calcVarIntSize(*args) -BtcUtils_calcVarIntSize = _CppBlockUtils.BtcUtils_calcVarIntSize - -def BtcUtils_getHash256_NoSafetyCheck(*args): - return _CppBlockUtils.BtcUtils_getHash256_NoSafetyCheck(*args) -BtcUtils_getHash256_NoSafetyCheck = _CppBlockUtils.BtcUtils_getHash256_NoSafetyCheck - -def BtcUtils_getHash256(*args): - return _CppBlockUtils.BtcUtils_getHash256(*args) -BtcUtils_getHash256 = _CppBlockUtils.BtcUtils_getHash256 - -def BtcUtils_getHash160_NoSafetyCheck(*args): - return _CppBlockUtils.BtcUtils_getHash160_NoSafetyCheck(*args) -BtcUtils_getHash160_NoSafetyCheck = _CppBlockUtils.BtcUtils_getHash160_NoSafetyCheck - -def BtcUtils_getHash160(*args): - return _CppBlockUtils.BtcUtils_getHash160(*args) -BtcUtils_getHash160 = _CppBlockUtils.BtcUtils_getHash160 - -def BtcUtils_calculateMerkleRoot(*args): - return _CppBlockUtils.BtcUtils_calculateMerkleRoot(*args) -BtcUtils_calculateMerkleRoot = _CppBlockUtils.BtcUtils_calculateMerkleRoot - -def BtcUtils_calculateMerkleTree(*args): - return _CppBlockUtils.BtcUtils_calculateMerkleTree(*args) -BtcUtils_calculateMerkleTree = _CppBlockUtils.BtcUtils_calculateMerkleTree - -def BtcUtils_TxInCalcLength(*args): - return _CppBlockUtils.BtcUtils_TxInCalcLength(*args) -BtcUtils_TxInCalcLength = _CppBlockUtils.BtcUtils_TxInCalcLength - -def BtcUtils_TxOutCalcLength(*args): - return _CppBlockUtils.BtcUtils_TxOutCalcLength(*args) -BtcUtils_TxOutCalcLength = _CppBlockUtils.BtcUtils_TxOutCalcLength - -def BtcUtils_TxCalcLength(*args): - return _CppBlockUtils.BtcUtils_TxCalcLength(*args) -BtcUtils_TxCalcLength = _CppBlockUtils.BtcUtils_TxCalcLength - -def BtcUtils_getTxOutScriptType(*args): - return _CppBlockUtils.BtcUtils_getTxOutScriptType(*args) -BtcUtils_getTxOutScriptType = _CppBlockUtils.BtcUtils_getTxOutScriptType - -def BtcUtils_getTxInScriptType(*args): - return _CppBlockUtils.BtcUtils_getTxInScriptType(*args) -BtcUtils_getTxInScriptType = _CppBlockUtils.BtcUtils_getTxInScriptType - -def BtcUtils_getTxOutRecipientAddr(*args): - return _CppBlockUtils.BtcUtils_getTxOutRecipientAddr(*args) -BtcUtils_getTxOutRecipientAddr = _CppBlockUtils.BtcUtils_getTxOutRecipientAddr - -def BtcUtils_getTxInAddr(*args): - return _CppBlockUtils.BtcUtils_getTxInAddr(*args) -BtcUtils_getTxInAddr = _CppBlockUtils.BtcUtils_getTxInAddr - -def BtcUtils_convertDiffBitsToDouble(*args): - return _CppBlockUtils.BtcUtils_convertDiffBitsToDouble(*args) -BtcUtils_convertDiffBitsToDouble = _CppBlockUtils.BtcUtils_convertDiffBitsToDouble - -def BtcUtils_getOpCodeName(*args): - return _CppBlockUtils.BtcUtils_getOpCodeName(*args) -BtcUtils_getOpCodeName = _CppBlockUtils.BtcUtils_getOpCodeName - -def BtcUtils_convertScriptToOpStrings(*args): - return _CppBlockUtils.BtcUtils_convertScriptToOpStrings(*args) -BtcUtils_convertScriptToOpStrings = _CppBlockUtils.BtcUtils_convertScriptToOpStrings - -def BtcUtils_num2str(*args): - return _CppBlockUtils.BtcUtils_num2str(*args) -BtcUtils_num2str = _CppBlockUtils.BtcUtils_num2str - -def BtcUtils_pprintScript(*args): - return _CppBlockUtils.BtcUtils_pprintScript(*args) -BtcUtils_pprintScript = _CppBlockUtils.BtcUtils_pprintScript - -def BtcUtils_verifyProofOfWork(*args): - return _CppBlockUtils.BtcUtils_verifyProofOfWork(*args) -BtcUtils_verifyProofOfWork = _CppBlockUtils.BtcUtils_verifyProofOfWork - -DEFAULT_KDF_MAX_MEMORY = _CppBlockUtils.DEFAULT_KDF_MAX_MEMORY -class SecureBinaryData: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, SecureBinaryData, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, SecureBinaryData, name) - __repr__ = _swig_repr - __swig_destroy__ = _CppBlockUtils.delete_SecureBinaryData - __del__ = lambda self : None; - def getPtr(self, *args): return _CppBlockUtils.SecureBinaryData_getPtr(self, *args) - def getSize(self): return _CppBlockUtils.SecureBinaryData_getSize(self) - def copy(self): return _CppBlockUtils.SecureBinaryData_copy(self) - def toHexStr(self, BE = False): return _CppBlockUtils.SecureBinaryData_toHexStr(self, BE) - def toBinStr(self): return _CppBlockUtils.SecureBinaryData_toBinStr(self) - def __init__(self, *args): - this = _CppBlockUtils.new_SecureBinaryData(*args) - try: self.this.append(this) - except: self.this = this - def resize(self, *args): return _CppBlockUtils.SecureBinaryData_resize(self, *args) - def reserve(self, *args): return _CppBlockUtils.SecureBinaryData_reserve(self, *args) - def getRawCopy(self): return _CppBlockUtils.SecureBinaryData_getRawCopy(self) - def getRawRef(self): return _CppBlockUtils.SecureBinaryData_getRawRef(self) - def copySwapEndian(self, pos1 = 0, pos2 = 0): return _CppBlockUtils.SecureBinaryData_copySwapEndian(self, pos1, pos2) - def append(self, *args): return _CppBlockUtils.SecureBinaryData_append(self, *args) - def __add__(self, *args): return _CppBlockUtils.SecureBinaryData___add__(self, *args) - def __eq__(self, *args): return _CppBlockUtils.SecureBinaryData___eq__(self, *args) - def getHash256(self): return _CppBlockUtils.SecureBinaryData_getHash256(self) - def getHash160(self): return _CppBlockUtils.SecureBinaryData_getHash160(self) - def GenerateRandom(self, *args): return _CppBlockUtils.SecureBinaryData_GenerateRandom(self, *args) - def lockData(self): return _CppBlockUtils.SecureBinaryData_lockData(self) - def destroy(self): return _CppBlockUtils.SecureBinaryData_destroy(self) -SecureBinaryData_swigregister = _CppBlockUtils.SecureBinaryData_swigregister -SecureBinaryData_swigregister(SecureBinaryData) - -class KdfRomix: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, KdfRomix, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, KdfRomix, name) - __repr__ = _swig_repr - def __init__(self, *args): - this = _CppBlockUtils.new_KdfRomix(*args) - try: self.this.append(this) - except: self.this = this - def computeKdfParams(self, targetComputeSec = 0.25, maxMemReqtsBytes = 32*1024*1024): return _CppBlockUtils.KdfRomix_computeKdfParams(self, targetComputeSec, maxMemReqtsBytes) - def usePrecomputedKdfParams(self, *args): return _CppBlockUtils.KdfRomix_usePrecomputedKdfParams(self, *args) - def printKdfParams(self): return _CppBlockUtils.KdfRomix_printKdfParams(self) - def DeriveKey_OneIter(self, *args): return _CppBlockUtils.KdfRomix_DeriveKey_OneIter(self, *args) - def DeriveKey(self, *args): return _CppBlockUtils.KdfRomix_DeriveKey(self, *args) - def getHashFunctionName(self): return _CppBlockUtils.KdfRomix_getHashFunctionName(self) - def getMemoryReqtBytes(self): return _CppBlockUtils.KdfRomix_getMemoryReqtBytes(self) - def getNumIterations(self): return _CppBlockUtils.KdfRomix_getNumIterations(self) - def getSalt(self): return _CppBlockUtils.KdfRomix_getSalt(self) - __swig_destroy__ = _CppBlockUtils.delete_KdfRomix - __del__ = lambda self : None; -KdfRomix_swigregister = _CppBlockUtils.KdfRomix_swigregister -KdfRomix_swigregister(KdfRomix) - -class CryptoAES: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, CryptoAES, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, CryptoAES, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_CryptoAES() - try: self.this.append(this) - except: self.this = this - def EncryptCFB(self, *args): return _CppBlockUtils.CryptoAES_EncryptCFB(self, *args) - def DecryptCFB(self, *args): return _CppBlockUtils.CryptoAES_DecryptCFB(self, *args) - def EncryptCBC(self, *args): return _CppBlockUtils.CryptoAES_EncryptCBC(self, *args) - def DecryptCBC(self, *args): return _CppBlockUtils.CryptoAES_DecryptCBC(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_CryptoAES - __del__ = lambda self : None; -CryptoAES_swigregister = _CppBlockUtils.CryptoAES_swigregister -CryptoAES_swigregister(CryptoAES) - -class CryptoECDSA: - __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, CryptoECDSA, name, value) - __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, CryptoECDSA, name) - __repr__ = _swig_repr - def __init__(self): - this = _CppBlockUtils.new_CryptoECDSA() - try: self.this.append(this) - except: self.this = this - __swig_getmethods__["CreateNewPrivateKey"] = lambda x: _CppBlockUtils.CryptoECDSA_CreateNewPrivateKey - __swig_getmethods__["ParsePrivateKey"] = lambda x: _CppBlockUtils.CryptoECDSA_ParsePrivateKey - __swig_getmethods__["ParsePublicKey"] = lambda x: _CppBlockUtils.CryptoECDSA_ParsePublicKey - __swig_getmethods__["SerializePrivateKey"] = lambda x: _CppBlockUtils.CryptoECDSA_SerializePrivateKey - __swig_getmethods__["SerializePublicKey"] = lambda x: _CppBlockUtils.CryptoECDSA_SerializePublicKey - def GenerateNewPrivateKey(self): return _CppBlockUtils.CryptoECDSA_GenerateNewPrivateKey(self) - def ComputePublicKey(self, *args): return _CppBlockUtils.CryptoECDSA_ComputePublicKey(self, *args) - def VerifyPublicKeyValid(self, *args): return _CppBlockUtils.CryptoECDSA_VerifyPublicKeyValid(self, *args) - def CheckPubPrivKeyMatch(self, *args): return _CppBlockUtils.CryptoECDSA_CheckPubPrivKeyMatch(self, *args) - def SignData(self, *args): return _CppBlockUtils.CryptoECDSA_SignData(self, *args) - def VerifyData(self, *args): return _CppBlockUtils.CryptoECDSA_VerifyData(self, *args) - def ComputeChainedPrivateKey(self, *args): return _CppBlockUtils.CryptoECDSA_ComputeChainedPrivateKey(self, *args) - def ComputeChainedPublicKey(self, *args): return _CppBlockUtils.CryptoECDSA_ComputeChainedPublicKey(self, *args) - def ECVerifyPoint(self, *args): return _CppBlockUtils.CryptoECDSA_ECVerifyPoint(self, *args) - def ECMultiplyScalars(self, *args): return _CppBlockUtils.CryptoECDSA_ECMultiplyScalars(self, *args) - def ECMultiplyPoint(self, *args): return _CppBlockUtils.CryptoECDSA_ECMultiplyPoint(self, *args) - def ECAddPoints(self, *args): return _CppBlockUtils.CryptoECDSA_ECAddPoints(self, *args) - def ECInverse(self, *args): return _CppBlockUtils.CryptoECDSA_ECInverse(self, *args) - __swig_destroy__ = _CppBlockUtils.delete_CryptoECDSA - __del__ = lambda self : None; -CryptoECDSA_swigregister = _CppBlockUtils.CryptoECDSA_swigregister -CryptoECDSA_swigregister(CryptoECDSA) - -def CryptoECDSA_CreateNewPrivateKey(): - return _CppBlockUtils.CryptoECDSA_CreateNewPrivateKey() -CryptoECDSA_CreateNewPrivateKey = _CppBlockUtils.CryptoECDSA_CreateNewPrivateKey - -def CryptoECDSA_ParsePrivateKey(*args): - return _CppBlockUtils.CryptoECDSA_ParsePrivateKey(*args) -CryptoECDSA_ParsePrivateKey = _CppBlockUtils.CryptoECDSA_ParsePrivateKey - -def CryptoECDSA_ParsePublicKey(*args): - return _CppBlockUtils.CryptoECDSA_ParsePublicKey(*args) -CryptoECDSA_ParsePublicKey = _CppBlockUtils.CryptoECDSA_ParsePublicKey - -def CryptoECDSA_SerializePrivateKey(*args): - return _CppBlockUtils.CryptoECDSA_SerializePrivateKey(*args) -CryptoECDSA_SerializePrivateKey = _CppBlockUtils.CryptoECDSA_SerializePrivateKey - -def CryptoECDSA_SerializePublicKey(*args): - return _CppBlockUtils.CryptoECDSA_SerializePublicKey(*args) -CryptoECDSA_SerializePublicKey = _CppBlockUtils.CryptoECDSA_SerializePublicKey - - - diff --git a/cppForSwig/CppBlockUtils_wrap.cxx b/cppForSwig/CppBlockUtils_wrap.cxx deleted file mode 100644 index a0cea20b9..000000000 --- a/cppForSwig/CppBlockUtils_wrap.cxx +++ /dev/null @@ -1,46721 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.40 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE -#define SWIG_PYTHON_CLASSIC - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template class SwigValueWrapper { - struct SwigMovePointer { - T *ptr; - SwigMovePointer(T *p) : ptr(p) { } - ~SwigMovePointer() { delete ptr; } - SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } - } pointer; - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); - SwigValueWrapper(const SwigValueWrapper& rhs); -public: - SwigValueWrapper() : pointer(0) { } - SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } - operator T&() const { return *pointer.ptr; } - T *operator&() { return pointer.ptr; } -}; - -template T SwigValueInit() { - return T(); -} -#endif - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - - -/* Python.h has to appear first */ -#include - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return and integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#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)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; -} - - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - register size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#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 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -/* Add PyObject_Del for old Pythons */ -#if PY_VERSION_HEX < 0x01060000 -# define PyObject_Del(op) PyMem_DEL((op)) -#endif -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# 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 -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* cc-mode */ -#endif -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyInstanceMethod_New(func); -#else - return NULL; -#endif -} - -#ifdef __cplusplus -#if 0 -{ /* cc-mode */ -#endif -} -#endif - - -/* ----------------------------------------------------------------------------- - * See the LICENSE file for information on copyright, usage and redistribution - * of SWIG, and the README file for authors - http://www.swig.org/release.html. - * - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#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(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 - -/* for raw packed data */ -#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) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#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) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() -#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 - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, (char *) msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { - PyDict_SetItemString(d, (char*) name, obj); - Py_DECREF(obj); -} - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - register int i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#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) - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* cc-mode */ -#endif -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData* data) -{ - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -} SwigPyObject; - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", name, v); - if (v->next) { -#ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -#else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -#endif -#if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -#else - PyString_ConcatAndDel(&repr,nrep); -#endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char *str; -#ifdef METH_NOARGS - PyObject *repr = SwigPyObject_repr(v); -#else - PyObject *repr = SwigPyObject_repr(v, NULL); -#endif - if (repr) { - str = SWIG_Python_str_AsChar(repr); - fputs(str, fp); - SWIG_Python_str_DelForPy3(str); - Py_DECREF(repr); - return 0; - } else { - return 1; - } -} - -SWIGRUNTIME PyObject * -SwigPyObject_str(SwigPyObject *v) -{ - char result[SWIG_BUFFER_SIZE]; - return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? - SWIG_Python_str_FromChar(result) : 0; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ) - res = Py_True; - else - res = Py_False; - Py_INCREF(res); - return res; -} - - -SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); - -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#else - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -_PySwigObject_type(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp - = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(&PyType_Type, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - (printfunc)SwigPyObject_print, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyObject_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpyobject_type = tmp; - /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */ -#if PY_VERSION_HEX < 0x03000000 - swigpyobject_type.ob_type = &PyType_Type; -#endif - type_init = 1; - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == _PySwigPacked_type()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -_PySwigPacked_type(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp - = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(&PyType_Type, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpypacked_type = tmp; - /* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */ -#if PY_VERSION_HEX < 0x03000000 - swigpypacked_type.ob_type = &PyType_Type; -#endif - type_init = 1; - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - if (SwigPyObject_Check(pyobj)) { - return (SwigPyObject *) pyobj; - } else { - PyObject *obj = 0; -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; - } -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - if (!obj) return SWIG_ERROR; - if (obj == Py_None) { - if (ptr) *ptr = 0; - return SWIG_OK; - } else { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - return SWIG_OK; - } else { - int res = SWIG_ERROR; - if (flags & SWIG_POINTER_IMPLICIT_CONV) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - return res; - } - } -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; -#else - PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst; - PyObject *dict = PyDict_New(); - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { - if (!ptr) { - return SWIG_Py_Void(); - } else { - int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - PyObject *robj = SwigPyObject_New(ptr, type, own); - SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - if (inst) { - Py_DECREF(robj); - robj = inst; - } - } - return robj; - } -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -SWIG_Python_DestroyModule(void *vptr) -{ - swig_module_info *swig_module = (swig_module_info *) vptr; - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ - -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - swig_empty_runtime_method_table); -#endif - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); - } else { - swig_module_info *swig_module = SWIG_Python_GetModule(); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { - obj = PyCObject_FromVoidPtr(descriptor, NULL); - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#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) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : (char*)""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - - -#ifdef __cplusplus -#if 0 -{ /* cc-mode */ -#endif -} -#endif - - - -#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 SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_ADD_BLOCK_RESULT_INDEX swig_types[0] -#define SWIGTYPE_p_BDM_MODE swig_types[1] -#define SWIGTYPE_p_BinaryData swig_types[2] -#define SWIGTYPE_p_BinaryDataRef swig_types[3] -#define SWIGTYPE_p_BinaryReader swig_types[4] -#define SWIGTYPE_p_BinaryRefReader swig_types[5] -#define SWIGTYPE_p_BinaryWriter swig_types[6] -#define SWIGTYPE_p_BlockDataManager swig_types[7] -#define SWIGTYPE_p_BlockDataManager_FullRAM swig_types[8] -#define SWIGTYPE_p_BlockHeader swig_types[9] -#define SWIGTYPE_p_BlockHeaderRef swig_types[10] -#define SWIGTYPE_p_BtcAddress swig_types[11] -#define SWIGTYPE_p_BtcUtils swig_types[12] -#define SWIGTYPE_p_BtcWallet swig_types[13] -#define SWIGTYPE_p_CryptoAES swig_types[14] -#define SWIGTYPE_p_CryptoECDSA swig_types[15] -#define SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey swig_types[16] -#define SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey swig_types[17] -#define SWIGTYPE_p_KdfRomix swig_types[18] -#define SWIGTYPE_p_LedgerEntry swig_types[19] -#define SWIGTYPE_p_OutPoint swig_types[20] -#define SWIGTYPE_p_OutPointRef swig_types[21] -#define SWIGTYPE_p_SecureBinaryData swig_types[22] -#define SWIGTYPE_p_Tx swig_types[23] -#define SWIGTYPE_p_TxIOPair swig_types[24] -#define SWIGTYPE_p_TxIn swig_types[25] -#define SWIGTYPE_p_TxInRef swig_types[26] -#define SWIGTYPE_p_TxOut swig_types[27] -#define SWIGTYPE_p_TxOutRef swig_types[28] -#define SWIGTYPE_p_TxRef swig_types[29] -#define SWIGTYPE_p_UnspentTxOut swig_types[30] -#define SWIGTYPE_p_ZeroConfData swig_types[31] -#define SWIGTYPE_p_allocator_type swig_types[32] -#define SWIGTYPE_p_char swig_types[33] -#define SWIGTYPE_p_const_reference swig_types[34] -#define SWIGTYPE_p_difference_type swig_types[35] -#define SWIGTYPE_p_int swig_types[36] -#define SWIGTYPE_p_listT_BinaryData_t__iterator swig_types[37] -#define SWIGTYPE_p_long_long swig_types[38] -#define SWIGTYPE_p_mapT_OutPoint_TxIOPair_t swig_types[39] -#define SWIGTYPE_p_ostream swig_types[40] -#define SWIGTYPE_p_p_PyObject swig_types[41] -#define SWIGTYPE_p_pairT_bool_bool_t swig_types[42] -#define SWIGTYPE_p_reference swig_types[43] -#define SWIGTYPE_p_setT_HashString_t swig_types[44] -#define SWIGTYPE_p_short swig_types[45] -#define SWIGTYPE_p_size_type swig_types[46] -#define SWIGTYPE_p_std__invalid_argument swig_types[47] -#define SWIGTYPE_p_std__string swig_types[48] -#define SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t swig_types[49] -#define SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type swig_types[50] -#define SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type swig_types[51] -#define SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t swig_types[52] -#define SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type swig_types[53] -#define SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t swig_types[54] -#define SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t swig_types[55] -#define SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type swig_types[56] -#define SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type swig_types[57] -#define SWIGTYPE_p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t swig_types[58] -#define SWIGTYPE_p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t swig_types[59] -#define SWIGTYPE_p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t swig_types[60] -#define SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t swig_types[61] -#define SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type swig_types[62] -#define SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t swig_types[63] -#define SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type swig_types[64] -#define SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type swig_types[65] -#define SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t swig_types[66] -#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t swig_types[67] -#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type swig_types[68] -#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[69] -#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type swig_types[70] -#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[71] -#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[72] -#define SWIGTYPE_p_swig__SwigPyIterator swig_types[73] -#define SWIGTYPE_p_unsigned_char swig_types[74] -#define SWIGTYPE_p_unsigned_int swig_types[75] -#define SWIGTYPE_p_unsigned_long_long swig_types[76] -#define SWIGTYPE_p_unsigned_short swig_types[77] -#define SWIGTYPE_p_value_type swig_types[78] -#define SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type swig_types[79] -#define SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type swig_types[80] -static swig_type_info *swig_types[82]; -static swig_module_info swig_module = {swig_types, 81, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _CppBlockUtils.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__CppBlockUtils - -#else -# define SWIG_init init_CppBlockUtils - -#endif -#define SWIG_name "_CppBlockUtils" - -#define SWIGVERSION 0x010340 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -namespace swig { - class SwigPtr_PyObject { - protected: - PyObject *_obj; - - public: - SwigPtr_PyObject() :_obj(0) - { - } - - SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) - { - Py_XINCREF(_obj); - } - - SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) - { - if (initial_ref) { - Py_XINCREF(_obj); - } - } - - SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) - { - Py_XINCREF(item._obj); - Py_XDECREF(_obj); - _obj = item._obj; - return *this; - } - - ~SwigPtr_PyObject() - { - Py_XDECREF(_obj); - } - - operator PyObject *() const - { - return _obj; - } - - PyObject *operator->() const - { - return _obj; - } - }; -} - - -namespace swig { - struct SwigVar_PyObject : SwigPtr_PyObject { - SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } - - SwigVar_PyObject & operator = (PyObject* obj) - { - Py_XDECREF(_obj); - _obj = obj; - return *this; - } - }; -} - - -#define SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS -#include "BlockObj.h" -#include "BlockObjRef.h" -#include "BlockUtils.h" -#include "BtcUtils.h" -#include "EncryptionUtils.h" - - -#include - - -#include - - -#include - - -#if defined(__GNUC__) -# if __GNUC__ == 2 && __GNUC_MINOR <= 96 -# define SWIG_STD_NOMODERN_STL -# endif -#endif - - -#include -#include - - -namespace swig { - struct stop_iteration { - }; - - struct SwigPyIterator { - private: - SwigPtr_PyObject _seq; - - protected: - SwigPyIterator(PyObject *seq) : _seq(seq) - { - } - - public: - virtual ~SwigPyIterator() {} - - // Access iterator method, required by Python - virtual PyObject *value() const = 0; - - // Forward iterator method, required by Python - virtual SwigPyIterator *incr(size_t n = 1) = 0; - - // Backward iterator method, very common in C++, but not required in Python - virtual SwigPyIterator *decr(size_t /*n*/ = 1) - { - throw stop_iteration(); - } - - // Random access iterator methods, but not required in Python - virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const - { - throw std::invalid_argument("operation not supported"); - } - - virtual bool equal (const SwigPyIterator &/*x*/) const - { - throw std::invalid_argument("operation not supported"); - } - - // C++ common/needed methods - virtual SwigPyIterator *copy() const = 0; - - PyObject *next() - { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads - PyObject *obj = value(); - incr(); - SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads - return obj; - } - - /* Make an alias for Python 3.x */ - PyObject *__next__() - { - return next(); - } - - PyObject *previous() - { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads - decr(); - PyObject *obj = value(); - SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads - return obj; - } - - SwigPyIterator *advance(ptrdiff_t n) - { - return (n > 0) ? incr(n) : decr(-n); - } - - bool operator == (const SwigPyIterator& x) const - { - return equal(x); - } - - bool operator != (const SwigPyIterator& x) const - { - return ! operator==(x); - } - - SwigPyIterator& operator += (ptrdiff_t n) - { - return *advance(n); - } - - SwigPyIterator& operator -= (ptrdiff_t n) - { - return *advance(-n); - } - - SwigPyIterator* operator + (ptrdiff_t n) const - { - return copy()->advance(n); - } - - SwigPyIterator* operator - (ptrdiff_t n) const - { - return copy()->advance(-n); - } - - ptrdiff_t operator - (const SwigPyIterator& x) const - { - return x.distance(*this); - } - - static swig_type_info* descriptor() { - static int init = 0; - static swig_type_info* desc = 0; - if (!init) { - desc = SWIG_TypeQuery("swig::SwigPyIterator *"); - init = 1; - } - return desc; - } - }; -} - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; - } else if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERNINLINE int -SWIG_AsVal_size_t (PyObject * obj, size_t *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); - if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); - return res; -} - - - #define SWIG_From_long PyInt_FromLong - - -SWIGINTERNINLINE PyObject * -SWIG_From_ptrdiff_t (ptrdiff_t value) -{ - return SWIG_From_long (static_cast< long >(value)); -} - - -SWIGINTERNINLINE PyObject* - SWIG_From_bool (bool value) -{ - return PyBool_FromLong(value ? 1 : 0); -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERNINLINE int -SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) -{ - long v; - int res = SWIG_AsVal_long (obj, val ? &v : 0); - if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v); - return res; -} - - -#include - - -#include - - -#include - - -namespace swig { - template - struct noconst_traits { - typedef Type noconst_type; - }; - - template - struct noconst_traits { - typedef Type noconst_type; - }; - - /* - type categories - */ - struct pointer_category { }; - struct value_category { }; - - /* - General traits that provides type_name and type_info - */ - template struct traits { }; - - template - inline const char* type_name() { - return traits::noconst_type >::type_name(); - } - - template - struct traits_info { - static swig_type_info *type_query(std::string name) { - name += " *"; - return SWIG_TypeQuery(name.c_str()); - } - static swig_type_info *type_info() { - static swig_type_info *info = type_query(type_name()); - return info; - } - }; - - template - inline swig_type_info *type_info() { - return traits_info::type_info(); - } - - /* - Partial specialization for pointers - */ - template struct traits { - typedef pointer_category category; - static std::string make_ptr_name(const char* name) { - std::string ptrname = name; - ptrname += " *"; - return ptrname; - } - static const char* type_name() { - static std::string name = make_ptr_name(swig::type_name()); - return name.c_str(); - } - }; - - template - struct traits_as { }; - - template - struct traits_check { }; - -} - - -namespace swig { - /* - Traits that provides the from method - */ - template struct traits_from_ptr { - static PyObject *from(Type *val, int owner = 0) { - return SWIG_NewPointerObj(val, type_info(), owner); - } - }; - - template struct traits_from { - static PyObject *from(const Type& val) { - return traits_from_ptr::from(new Type(val), 1); - } - }; - - template struct traits_from { - static PyObject *from(Type* val) { - return traits_from_ptr::from(val, 0); - } - }; - - template struct traits_from { - static PyObject *from(const Type* val) { - return traits_from_ptr::from(const_cast(val), 0); - } - }; - - - template - inline PyObject *from(const Type& val) { - return traits_from::from(val); - } - - template - inline PyObject *from_ptr(Type* val, int owner) { - return traits_from_ptr::from(val, owner); - } - - /* - Traits that provides the asval/as/check method - */ - template - struct traits_asptr { - static int asptr(PyObject *obj, Type **val) { - Type *p; - int res = SWIG_ConvertPtr(obj, (void**)&p, type_info(), 0); - if (SWIG_IsOK(res)) { - if (val) *val = p; - } - return res; - } - }; - - template - inline int asptr(PyObject *obj, Type **vptr) { - return traits_asptr::asptr(obj, vptr); - } - - template - struct traits_asval { - static int asval(PyObject *obj, Type *val) { - if (val) { - Type *p = 0; - int res = traits_asptr::asptr(obj, &p); - if (!SWIG_IsOK(res)) return res; - if (p) { - typedef typename noconst_traits::noconst_type noconst_type; - *(const_cast(val)) = *p; - if (SWIG_IsNewObj(res)){ - delete p; - res = SWIG_DelNewMask(res); - } - return res; - } else { - return SWIG_ERROR; - } - } else { - return traits_asptr::asptr(obj, (Type **)(0)); - } - } - }; - - template struct traits_asval { - static int asval(PyObject *obj, Type **val) { - if (val) { - typedef typename noconst_traits::noconst_type noconst_type; - noconst_type *p = 0; - int res = traits_asptr::asptr(obj, &p); - if (SWIG_IsOK(res)) { - *(const_cast(val)) = p; - } - return res; - } else { - return traits_asptr::asptr(obj, (Type **)(0)); - } - } - }; - - template - inline int asval(PyObject *obj, Type *val) { - return traits_asval::asval(obj, val); - } - - template - struct traits_as { - static Type as(PyObject *obj, bool throw_error) { - Type v; - int res = asval(obj, &v); - if (!obj || !SWIG_IsOK(res)) { - if (!PyErr_Occurred()) { - ::SWIG_Error(SWIG_TypeError, swig::type_name()); - } - if (throw_error) throw std::invalid_argument("bad type"); - } - return v; - } - }; - - template - struct traits_as { - static Type as(PyObject *obj, bool throw_error) { - Type *v = 0; - int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); - if (SWIG_IsOK(res) && v) { - if (SWIG_IsNewObj(res)) { - Type r(*v); - delete v; - return r; - } else { - return *v; - } - } else { - // Uninitialized return value, no Type() constructor required. - static Type *v_def = (Type*) malloc(sizeof(Type)); - if (!PyErr_Occurred()) { - SWIG_Error(SWIG_TypeError, swig::type_name()); - } - if (throw_error) throw std::invalid_argument("bad type"); - memset(v_def,0,sizeof(Type)); - return *v_def; - } - } - }; - - template - struct traits_as { - static Type* as(PyObject *obj, bool throw_error) { - Type *v = 0; - int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); - if (SWIG_IsOK(res)) { - return v; - } else { - if (!PyErr_Occurred()) { - SWIG_Error(SWIG_TypeError, swig::type_name()); - } - if (throw_error) throw std::invalid_argument("bad type"); - return 0; - } - } - }; - - template - inline Type as(PyObject *obj, bool te = false) { - return traits_as::category>::as(obj, te); - } - - template - struct traits_check { - static bool check(PyObject *obj) { - int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR; - return SWIG_IsOK(res) ? true : false; - } - }; - - template - struct traits_check { - static bool check(PyObject *obj) { - int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR; - return SWIG_IsOK(res) ? true : false; - } - }; - - template - inline bool check(PyObject *obj) { - return traits_check::category>::check(obj); - } -} - - -#include - -namespace std { - template <> - struct less : public binary_function - { - bool - operator()(PyObject * v, PyObject *w) const - { - bool res; - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false; - /* This may fall into a case of inconsistent - eg. ObjA > ObjX > ObjB - but ObjA < ObjB - */ - if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) ) - { - /* Objects can't be compared, this mostly occurred in Python 3.0 */ - /* Compare their ptr directly for a workaround */ - res = (v < w); - PyErr_Clear(); - } - SWIG_PYTHON_THREAD_END_BLOCK; - return res; - } - }; - - template <> - struct less : public binary_function - { - bool - operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const - { - return std::less()(v, w); - } - }; - - template <> - struct less : public binary_function - { - bool - operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const - { - return std::less()(v, w); - } - }; - -} - -namespace swig { - template <> struct traits { - typedef value_category category; - static const char* type_name() { return "PyObject *"; } - }; - - template <> struct traits_asval { - typedef PyObject * value_type; - static int asval(PyObject *obj, value_type *val) { - if (val) *val = obj; - return SWIG_OK; - } - }; - - template <> - struct traits_check { - static bool check(PyObject *) { - return true; - } - }; - - template <> struct traits_from { - typedef PyObject * value_type; - static PyObject *from(const value_type& val) { - Py_XINCREF(val); - return val; - } - }; - -} - -namespace swig { - inline size_t - check_index(ptrdiff_t i, size_t size, bool insert = false) { - if ( i < 0 ) { - if ((size_t) (-i) <= size) - return (size_t) (i + size); - } else if ( (size_t) i < size ) { - return (size_t) i; - } else if (insert && ((size_t) i == size)) { - return size; - } - - throw std::out_of_range("index out of range"); - } - - inline size_t - slice_index(ptrdiff_t i, size_t size) { - if ( i < 0 ) { - if ((size_t) (-i) <= size) { - return (size_t) (i + size); - } else { - throw std::out_of_range("index out of range"); - } - } else { - return ( (size_t) i < size ) ? ((size_t) i) : size; - } - } - - template - inline typename Sequence::iterator - getpos(Sequence* self, Difference i) { - typename Sequence::iterator pos = self->begin(); - std::advance(pos, check_index(i,self->size())); - return pos; - } - - template - inline typename Sequence::const_iterator - cgetpos(const Sequence* self, Difference i) { - typename Sequence::const_iterator pos = self->begin(); - std::advance(pos, check_index(i,self->size())); - return pos; - } - - template - inline Sequence* - getslice(const Sequence* self, Difference i, Difference j) { - typename Sequence::size_type size = self->size(); - typename Sequence::size_type ii = swig::check_index(i, size); - typename Sequence::size_type jj = swig::slice_index(j, size); - - if (jj > ii) { - typename Sequence::const_iterator vb = self->begin(); - typename Sequence::const_iterator ve = self->begin(); - std::advance(vb,ii); - std::advance(ve,jj); - return new Sequence(vb, ve); - } else { - return new Sequence(); - } - } - - template - inline void - setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) { - typename Sequence::size_type size = self->size(); - typename Sequence::size_type ii = swig::check_index(i, size, true); - typename Sequence::size_type jj = swig::slice_index(j, size); - if (jj < ii) jj = ii; - size_t ssize = jj - ii; - if (ssize <= v.size()) { - typename Sequence::iterator sb = self->begin(); - typename InputSeq::const_iterator vmid = v.begin(); - std::advance(sb,ii); - std::advance(vmid, jj - ii); - self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end()); - } else { - typename Sequence::iterator sb = self->begin(); - typename Sequence::iterator se = self->begin(); - std::advance(sb,ii); - std::advance(se,jj); - self->erase(sb,se); - self->insert(sb, v.begin(), v.end()); - } - } - - template - inline void - delslice(Sequence* self, Difference i, Difference j) { - typename Sequence::size_type size = self->size(); - typename Sequence::size_type ii = swig::check_index(i, size, true); - typename Sequence::size_type jj = swig::slice_index(j, size); - if (jj > ii) { - typename Sequence::iterator sb = self->begin(); - typename Sequence::iterator se = self->begin(); - std::advance(sb,ii); - std::advance(se,jj); - self->erase(sb,se); - } - } -} - - -#if defined(__SUNPRO_CC) && defined(_RWSTD_VER) -# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL) -# define SWIG_STD_NOITERATOR_TRAITS_STL -# endif -#endif - -#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL) -#include -#else -namespace std { - template - struct iterator_traits { - typedef ptrdiff_t difference_type; - typedef typename Iterator::value_type value_type; - }; - - template - struct iterator_traits<__reverse_bi_iterator > { - typedef Distance difference_type; - typedef T value_type; - }; - - template - struct iterator_traits { - typedef T value_type; - typedef ptrdiff_t difference_type; - }; - - template - inline typename iterator_traits<_InputIterator>::difference_type - distance(_InputIterator __first, _InputIterator __last) - { - typename iterator_traits<_InputIterator>::difference_type __n = 0; - while (__first != __last) { - ++__first; ++__n; - } - return __n; - } -} -#endif - - -namespace swig { - template - class SwigPyIterator_T : public SwigPyIterator - { - public: - typedef OutIterator out_iterator; - typedef typename std::iterator_traits::value_type value_type; - typedef SwigPyIterator_T self_type; - - SwigPyIterator_T(out_iterator curr, PyObject *seq) - : SwigPyIterator(seq), current(curr) - { - } - - const out_iterator& get_current() const - { - return current; - } - - - bool equal (const SwigPyIterator &iter) const - { - const self_type *iters = dynamic_cast(&iter); - if (iters) { - return (current == iters->get_current()); - } else { - throw std::invalid_argument("bad iterator type"); - } - } - - ptrdiff_t distance(const SwigPyIterator &iter) const - { - const self_type *iters = dynamic_cast(&iter); - if (iters) { - return std::distance(current, iters->get_current()); - } else { - throw std::invalid_argument("bad iterator type"); - } - } - - protected: - out_iterator current; - }; - - template - struct from_oper - { - typedef const ValueType& argument_type; - typedef PyObject *result_type; - result_type operator()(argument_type v) const - { - return swig::from(v); - } - }; - - template::value_type, - typename FromOper = from_oper > - class SwigPyIteratorOpen_T : public SwigPyIterator_T - { - public: - FromOper from; - typedef OutIterator out_iterator; - typedef ValueType value_type; - typedef SwigPyIterator_T base; - typedef SwigPyIteratorOpen_T self_type; - - SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq) - : SwigPyIterator_T(curr, seq) - { - } - - PyObject *value() const { - return from(static_cast(*(base::current))); - } - - SwigPyIterator *copy() const - { - return new self_type(*this); - } - - SwigPyIterator *incr(size_t n = 1) - { - while (n--) { - ++base::current; - } - return this; - } - - SwigPyIterator *decr(size_t n = 1) - { - while (n--) { - --base::current; - } - return this; - } - }; - - template::value_type, - typename FromOper = from_oper > - class SwigPyIteratorClosed_T : public SwigPyIterator_T - { - public: - FromOper from; - typedef OutIterator out_iterator; - typedef ValueType value_type; - typedef SwigPyIterator_T base; - typedef SwigPyIteratorClosed_T self_type; - - SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq) - : SwigPyIterator_T(curr, seq), begin(first), end(last) - { - } - - PyObject *value() const { - if (base::current == end) { - throw stop_iteration(); - } else { - return from(static_cast(*(base::current))); - } - } - - SwigPyIterator *copy() const - { - return new self_type(*this); - } - - SwigPyIterator *incr(size_t n = 1) - { - while (n--) { - if (base::current == end) { - throw stop_iteration(); - } else { - ++base::current; - } - } - return this; - } - - SwigPyIterator *decr(size_t n = 1) - { - while (n--) { - if (base::current == begin) { - throw stop_iteration(); - } else { - --base::current; - } - } - return this; - } - - private: - out_iterator begin; - out_iterator end; - }; - - template - inline SwigPyIterator* - make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0) - { - return new SwigPyIteratorClosed_T(current, begin, end, seq); - } - - template - inline SwigPyIterator* - make_output_iterator(const OutIter& current, PyObject *seq = 0) - { - return new SwigPyIteratorOpen_T(current, seq); - } -} - - -namespace swig -{ - template - struct SwigPySequence_Ref - { - SwigPySequence_Ref(PyObject* seq, int index) - : _seq(seq), _index(index) - { - } - - operator T () const - { - swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index); - try { - return swig::as(item, true); - } catch (std::exception& e) { - char msg[1024]; - sprintf(msg, "in sequence element %d ", _index); - if (!PyErr_Occurred()) { - ::SWIG_Error(SWIG_TypeError, swig::type_name()); - } - SWIG_Python_AddErrorMsg(msg); - SWIG_Python_AddErrorMsg(e.what()); - throw; - } - } - - SwigPySequence_Ref& operator=(const T& v) - { - PySequence_SetItem(_seq, _index, swig::from(v)); - return *this; - } - - private: - PyObject* _seq; - int _index; - }; - - template - struct SwigPySequence_ArrowProxy - { - SwigPySequence_ArrowProxy(const T& x): m_value(x) {} - const T* operator->() const { return &m_value; } - operator const T*() const { return &m_value; } - T m_value; - }; - - template - struct SwigPySequence_InputIterator - { - typedef SwigPySequence_InputIterator self; - - typedef std::random_access_iterator_tag iterator_category; - typedef Reference reference; - typedef T value_type; - typedef T* pointer; - typedef int difference_type; - - SwigPySequence_InputIterator() - { - } - - SwigPySequence_InputIterator(PyObject* seq, int index) - : _seq(seq), _index(index) - { - } - - reference operator*() const - { - return reference(_seq, _index); - } - - SwigPySequence_ArrowProxy - operator->() const { - return SwigPySequence_ArrowProxy(operator*()); - } - - bool operator==(const self& ri) const - { - return (_index == ri._index) && (_seq == ri._seq); - } - - bool operator!=(const self& ri) const - { - return !(operator==(ri)); - } - - self& operator ++ () - { - ++_index; - return *this; - } - - self& operator -- () - { - --_index; - return *this; - } - - self& operator += (difference_type n) - { - _index += n; - return *this; - } - - self operator +(difference_type n) const - { - return self(_seq, _index + n); - } - - self& operator -= (difference_type n) - { - _index -= n; - return *this; - } - - self operator -(difference_type n) const - { - return self(_seq, _index - n); - } - - difference_type operator - (const self& ri) const - { - return _index - ri._index; - } - - bool operator < (const self& ri) const - { - return _index < ri._index; - } - - reference - operator[](difference_type n) const - { - return reference(_seq, _index + n); - } - - private: - PyObject* _seq; - difference_type _index; - }; - - template - struct SwigPySequence_Cont - { - typedef SwigPySequence_Ref reference; - typedef const SwigPySequence_Ref const_reference; - typedef T value_type; - typedef T* pointer; - typedef int difference_type; - typedef int size_type; - typedef const pointer const_pointer; - typedef SwigPySequence_InputIterator iterator; - typedef SwigPySequence_InputIterator const_iterator; - - SwigPySequence_Cont(PyObject* seq) : _seq(0) - { - if (!PySequence_Check(seq)) { - throw std::invalid_argument("a sequence is expected"); - } - _seq = seq; - Py_INCREF(_seq); - } - - ~SwigPySequence_Cont() - { - Py_XDECREF(_seq); - } - - size_type size() const - { - return static_cast(PySequence_Size(_seq)); - } - - bool empty() const - { - return size() == 0; - } - - iterator begin() - { - return iterator(_seq, 0); - } - - const_iterator begin() const - { - return const_iterator(_seq, 0); - } - - iterator end() - { - return iterator(_seq, size()); - } - - const_iterator end() const - { - return const_iterator(_seq, size()); - } - - reference operator[](difference_type n) - { - return reference(_seq, n); - } - - const_reference operator[](difference_type n) const - { - return const_reference(_seq, n); - } - - bool check(bool set_err = true) const - { - int s = size(); - for (int i = 0; i < s; ++i) { - swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i); - if (!swig::check(item)) { - if (set_err) { - char msg[1024]; - sprintf(msg, "in sequence element %d", i); - SWIG_Error(SWIG_RuntimeError, msg); - } - return false; - } - } - return true; - } - - private: - PyObject* _seq; - }; - -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< int >(v); - } - } - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_int (int value) -{ - return SWIG_From_long (value); -} - - -namespace swig { - template <> struct traits { - typedef value_category category; - static const char* type_name() { return"int"; } - }; - template <> struct traits_asval { - typedef int value_type; - static int asval(PyObject *obj, value_type *val) { - return SWIG_AsVal_int (obj, val); - } - }; - template <> struct traits_from { - typedef int value_type; - static PyObject *from(const value_type& val) { - return SWIG_From_int (val); - } - }; -} - - -namespace swig { - template - inline void - assign(const SwigPySeq& swigpyseq, Seq* seq) { - // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented - typedef typename SwigPySeq::value_type value_type; - typename SwigPySeq::const_iterator it = swigpyseq.begin(); - for (;it != swigpyseq.end(); ++it) { - seq->insert(seq->end(),(value_type)(*it)); - } - } - - template - struct traits_asptr_stdseq { - typedef Seq sequence; - typedef T value_type; - - static int asptr(PyObject *obj, sequence **seq) { - if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) { - sequence *p; - if (::SWIG_ConvertPtr(obj,(void**)&p, - swig::type_info(),0) == SWIG_OK) { - if (seq) *seq = p; - return SWIG_OLDOBJ; - } - } else if (PySequence_Check(obj)) { - try { - SwigPySequence_Cont swigpyseq(obj); - if (seq) { - sequence *pseq = new sequence(); - assign(swigpyseq, pseq); - *seq = pseq; - return SWIG_NEWOBJ; - } else { - return swigpyseq.check() ? SWIG_OK : SWIG_ERROR; - } - } catch (std::exception& e) { - if (seq) { - if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_TypeError, e.what()); - } - } - return SWIG_ERROR; - } - } - return SWIG_ERROR; - } - }; - - template - struct traits_from_stdseq { - typedef Seq sequence; - typedef T value_type; - typedef typename Seq::size_type size_type; - typedef typename sequence::const_iterator const_iterator; - - static PyObject *from(const sequence& seq) { -#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS - swig_type_info *desc = swig::type_info(); - if (desc && desc->clientdata) { - return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN); - } -#endif - size_type size = seq.size(); - if (size <= (size_type)INT_MAX) { - PyObject *obj = PyTuple_New((int)size); - int i = 0; - for (const_iterator it = seq.begin(); - it != seq.end(); ++it, ++i) { - PyTuple_SetItem(obj,i,swig::from(*it)); - } - return obj; - } else { - PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python"); - return NULL; - } - } - }; -} - - - namespace swig { - template - struct traits_asptr > { - static int asptr(PyObject *obj, std::vector **vec) { - return traits_asptr_stdseq >::asptr(obj, vec); - } - }; - - template - struct traits_from > { - static PyObject *from(const std::vector& vec) { - return traits_from_stdseq >::from(vec); - } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef pointer_category category; - static const char* type_name() { - return "std::vector<" "int" "," "std::allocator< int >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_int_Sg__iterator(std::vector< int > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_int_Sg____nonzero__(std::vector< int > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_int_Sg____bool__(std::vector< int > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){ - return self->size(); - } - -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long (unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_unsigned_SS_int (unsigned int value) -{ - return SWIG_From_unsigned_SS_long (value); -} - -SWIGINTERN std::vector< int >::value_type std_vector_Sl_int_Sg__pop(std::vector< int > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_int_Sg____setslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j,std::vector< int,std::allocator< int > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_int_Sg____delslice__(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_0(std::vector< int > *self,std::vector< int >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< int,std::allocator< int > > *std_vector_Sl_int_Sg____getitem____SWIG_0(std::vector< int > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_0(std::vector< int > *self,PySliceObject *slice,std::vector< int,std::allocator< int > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_int_Sg____delitem____SWIG_1(std::vector< int > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< int >::value_type const &std_vector_Sl_int_Sg____getitem____SWIG_1(std::vector< int > const *self,std::vector< int >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_int_Sg____setitem____SWIG_1(std::vector< int > *self,std::vector< int >::difference_type i,std::vector< int >::value_type const &x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_int_Sg__append(std::vector< int > *self,std::vector< int >::value_type const &x){ - self->push_back(x); - } - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UINT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned int >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_float (PyObject * obj, float *val) -{ - double v; - int res = SWIG_AsVal_double (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < -FLT_MAX || v > FLT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< float >(v); - } - } - return res; -} - - - #define SWIG_From_double PyFloat_FromDouble - - -SWIGINTERNINLINE PyObject * -SWIG_From_float (float value) -{ - return SWIG_From_double (value); -} - - -namespace swig { - template <> struct traits { - typedef value_category category; - static const char* type_name() { return"float"; } - }; - template <> struct traits_asval { - typedef float value_type; - static int asval(PyObject *obj, value_type *val) { - return SWIG_AsVal_float (obj, val); - } - }; - template <> struct traits_from { - typedef float value_type; - static PyObject *from(const value_type& val) { - return SWIG_From_float (val); - } - }; -} - - - namespace swig { - template <> struct traits > > { - typedef pointer_category category; - static const char* type_name() { - return "std::vector<" "float" "," "std::allocator< float >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_float_Sg__iterator(std::vector< float > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_float_Sg____nonzero__(std::vector< float > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_float_Sg____bool__(std::vector< float > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< float >::size_type std_vector_Sl_float_Sg____len__(std::vector< float > const *self){ - return self->size(); - } -SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__pop(std::vector< float > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_float_Sg____setslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j,std::vector< float,std::allocator< float > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_float_Sg____delslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getitem____SWIG_0(std::vector< float > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_0(std::vector< float > *self,PySliceObject *slice,std::vector< float,std::allocator< float > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< float >::value_type const &std_vector_Sl_float_Sg____getitem____SWIG_1(std::vector< float > const *self,std::vector< float >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_1(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::value_type const &x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_float_Sg__append(std::vector< float > *self,std::vector< float >::value_type const &x){ - self->push_back(x); - } - - namespace swig { - template <> struct traits { - typedef pointer_category category; - static const char* type_name() { return"BinaryData"; } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef pointer_category category; - static const char* type_name() { - return "std::vector<" "BinaryData" "," "std::allocator< BinaryData >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_BinaryData_Sg__iterator(std::vector< BinaryData > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_BinaryData_Sg____nonzero__(std::vector< BinaryData > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_BinaryData_Sg____bool__(std::vector< BinaryData > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< BinaryData >::size_type std_vector_Sl_BinaryData_Sg____len__(std::vector< BinaryData > const *self){ - return self->size(); - } -SWIGINTERN std::vector< BinaryData >::value_type std_vector_Sl_BinaryData_Sg__pop(std::vector< BinaryData > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< BinaryData,std::allocator< BinaryData > > *std_vector_Sl_BinaryData_Sg____getslice__(std::vector< BinaryData > *self,std::vector< BinaryData >::difference_type i,std::vector< BinaryData >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____setslice__(std::vector< BinaryData > *self,std::vector< BinaryData >::difference_type i,std::vector< BinaryData >::difference_type j,std::vector< BinaryData,std::allocator< BinaryData > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____delslice__(std::vector< BinaryData > *self,std::vector< BinaryData >::difference_type i,std::vector< BinaryData >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____delitem____SWIG_0(std::vector< BinaryData > *self,std::vector< BinaryData >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< BinaryData,std::allocator< BinaryData > > *std_vector_Sl_BinaryData_Sg____getitem____SWIG_0(std::vector< BinaryData > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____setitem____SWIG_0(std::vector< BinaryData > *self,PySliceObject *slice,std::vector< BinaryData,std::allocator< BinaryData > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____delitem____SWIG_1(std::vector< BinaryData > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< BinaryData >::value_type const &std_vector_Sl_BinaryData_Sg____getitem____SWIG_1(std::vector< BinaryData > const *self,std::vector< BinaryData >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg____setitem____SWIG_1(std::vector< BinaryData > *self,std::vector< BinaryData >::difference_type i,std::vector< BinaryData >::value_type const &x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_BinaryData_Sg__append(std::vector< BinaryData > *self,std::vector< BinaryData >::value_type const &x){ - self->push_back(x); - } - - namespace swig { - template <> struct traits { - typedef pointer_category category; - static const char* type_name() { return"LedgerEntry"; } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef pointer_category category; - static const char* type_name() { - return "std::vector<" "LedgerEntry" "," "std::allocator< LedgerEntry >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_LedgerEntry_Sg__iterator(std::vector< LedgerEntry > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_LedgerEntry_Sg____nonzero__(std::vector< LedgerEntry > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_LedgerEntry_Sg____bool__(std::vector< LedgerEntry > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< LedgerEntry >::size_type std_vector_Sl_LedgerEntry_Sg____len__(std::vector< LedgerEntry > const *self){ - return self->size(); - } -SWIGINTERN std::vector< LedgerEntry >::value_type std_vector_Sl_LedgerEntry_Sg__pop(std::vector< LedgerEntry > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< LedgerEntry,std::allocator< LedgerEntry > > *std_vector_Sl_LedgerEntry_Sg____getslice__(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::difference_type i,std::vector< LedgerEntry >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____setslice__(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::difference_type i,std::vector< LedgerEntry >::difference_type j,std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____delslice__(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::difference_type i,std::vector< LedgerEntry >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____delitem____SWIG_0(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< LedgerEntry,std::allocator< LedgerEntry > > *std_vector_Sl_LedgerEntry_Sg____getitem____SWIG_0(std::vector< LedgerEntry > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____setitem____SWIG_0(std::vector< LedgerEntry > *self,PySliceObject *slice,std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____delitem____SWIG_1(std::vector< LedgerEntry > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< LedgerEntry >::value_type const &std_vector_Sl_LedgerEntry_Sg____getitem____SWIG_1(std::vector< LedgerEntry > const *self,std::vector< LedgerEntry >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg____setitem____SWIG_1(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::difference_type i,std::vector< LedgerEntry >::value_type const &x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_LedgerEntry_Sg__append(std::vector< LedgerEntry > *self,std::vector< LedgerEntry >::value_type const &x){ - self->push_back(x); - } - - namespace swig { - template <> struct traits { - typedef pointer_category category; - static const char* type_name() { return"TxRef"; } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef value_category category; - static const char* type_name() { - return "std::vector<" "TxRef" " *," "std::allocator< TxRef * >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_TxRef_Sm__Sg__iterator(std::vector< TxRef * > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_TxRef_Sm__Sg____nonzero__(std::vector< TxRef * > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_TxRef_Sm__Sg____bool__(std::vector< TxRef * > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< TxRef * >::size_type std_vector_Sl_TxRef_Sm__Sg____len__(std::vector< TxRef * > const *self){ - return self->size(); - } -SWIGINTERN std::vector< TxRef * >::value_type std_vector_Sl_TxRef_Sm__Sg__pop(std::vector< TxRef * > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< TxRef *,std::allocator< TxRef * > > *std_vector_Sl_TxRef_Sm__Sg____getslice__(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i,std::vector< TxRef * >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____setslice__(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i,std::vector< TxRef * >::difference_type j,std::vector< TxRef *,std::allocator< TxRef * > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____delslice__(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i,std::vector< TxRef * >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____delitem____SWIG_0(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< TxRef *,std::allocator< TxRef * > > *std_vector_Sl_TxRef_Sm__Sg____getitem____SWIG_0(std::vector< TxRef * > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____setitem____SWIG_0(std::vector< TxRef * > *self,PySliceObject *slice,std::vector< TxRef *,std::allocator< TxRef * > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____delitem____SWIG_1(std::vector< TxRef * > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< TxRef * >::value_type std_vector_Sl_TxRef_Sm__Sg____getitem____SWIG_1(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg____setitem____SWIG_1(std::vector< TxRef * > *self,std::vector< TxRef * >::difference_type i,std::vector< TxRef * >::value_type x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_TxRef_Sm__Sg__append(std::vector< TxRef * > *self,std::vector< TxRef * >::value_type x){ - self->push_back(x); - } - - namespace swig { - template <> struct traits { - typedef pointer_category category; - static const char* type_name() { return"BlockHeaderRef"; } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef value_category category; - static const char* type_name() { - return "std::vector<" "BlockHeaderRef" " *," "std::allocator< BlockHeaderRef * >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_BlockHeaderRef_Sm__Sg__iterator(std::vector< BlockHeaderRef * > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_BlockHeaderRef_Sm__Sg____nonzero__(std::vector< BlockHeaderRef * > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_BlockHeaderRef_Sm__Sg____bool__(std::vector< BlockHeaderRef * > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< BlockHeaderRef * >::size_type std_vector_Sl_BlockHeaderRef_Sm__Sg____len__(std::vector< BlockHeaderRef * > const *self){ - return self->size(); - } -SWIGINTERN std::vector< BlockHeaderRef * >::value_type std_vector_Sl_BlockHeaderRef_Sm__Sg__pop(std::vector< BlockHeaderRef * > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *std_vector_Sl_BlockHeaderRef_Sm__Sg____getslice__(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i,std::vector< BlockHeaderRef * >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____setslice__(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i,std::vector< BlockHeaderRef * >::difference_type j,std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____delslice__(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i,std::vector< BlockHeaderRef * >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____delitem____SWIG_0(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *std_vector_Sl_BlockHeaderRef_Sm__Sg____getitem____SWIG_0(std::vector< BlockHeaderRef * > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____setitem____SWIG_0(std::vector< BlockHeaderRef * > *self,PySliceObject *slice,std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____delitem____SWIG_1(std::vector< BlockHeaderRef * > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< BlockHeaderRef * >::value_type std_vector_Sl_BlockHeaderRef_Sm__Sg____getitem____SWIG_1(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg____setitem____SWIG_1(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::difference_type i,std::vector< BlockHeaderRef * >::value_type x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_BlockHeaderRef_Sm__Sg__append(std::vector< BlockHeaderRef * > *self,std::vector< BlockHeaderRef * >::value_type x){ - self->push_back(x); - } - - namespace swig { - template <> struct traits { - typedef pointer_category category; - static const char* type_name() { return"UnspentTxOut"; } - }; - } - - - namespace swig { - template <> struct traits > > { - typedef pointer_category category; - static const char* type_name() { - return "std::vector<" "UnspentTxOut" "," "std::allocator< UnspentTxOut >" " >"; - } - }; - } - -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_UnspentTxOut_Sg__iterator(std::vector< UnspentTxOut > *self,PyObject **PYTHON_SELF){ - return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); - } -SWIGINTERN bool std_vector_Sl_UnspentTxOut_Sg____nonzero__(std::vector< UnspentTxOut > const *self){ - return !(self->empty()); - } -SWIGINTERN bool std_vector_Sl_UnspentTxOut_Sg____bool__(std::vector< UnspentTxOut > const *self){ - return !(self->empty()); - } -SWIGINTERN std::vector< UnspentTxOut >::size_type std_vector_Sl_UnspentTxOut_Sg____len__(std::vector< UnspentTxOut > const *self){ - return self->size(); - } -SWIGINTERN std::vector< UnspentTxOut >::value_type std_vector_Sl_UnspentTxOut_Sg__pop(std::vector< UnspentTxOut > *self){ - if (self->size() == 0) - throw std::out_of_range("pop from empty container"); - std::vector >::value_type x = self->back(); - self->pop_back(); - return x; - } -SWIGINTERN std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *std_vector_Sl_UnspentTxOut_Sg____getslice__(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::difference_type i,std::vector< UnspentTxOut >::difference_type j){ - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____setslice__(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::difference_type i,std::vector< UnspentTxOut >::difference_type j,std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &v){ - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____delslice__(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::difference_type i,std::vector< UnspentTxOut >::difference_type j){ - swig::delslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____delitem____SWIG_0(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::difference_type i){ - self->erase(swig::getpos(self,i)); - } -SWIGINTERN std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *std_vector_Sl_UnspentTxOut_Sg____getitem____SWIG_0(std::vector< UnspentTxOut > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return NULL; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - return swig::getslice(self, i, j); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____setitem____SWIG_0(std::vector< UnspentTxOut > *self,PySliceObject *slice,std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &v){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::setslice(self, i, j, v); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____delitem____SWIG_1(std::vector< UnspentTxOut > *self,PySliceObject *slice){ - Py_ssize_t i, j, step; - if( !PySlice_Check(slice) ) { - SWIG_Error(SWIG_TypeError, "Slice object expected."); - return; - } - PySlice_GetIndices(slice, self->size(), &i, &j, &step); - swig::delslice(self, i,j); - } -SWIGINTERN std::vector< UnspentTxOut >::value_type const &std_vector_Sl_UnspentTxOut_Sg____getitem____SWIG_1(std::vector< UnspentTxOut > const *self,std::vector< UnspentTxOut >::difference_type i){ - return *(swig::cgetpos(self, i)); - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg____setitem____SWIG_1(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::difference_type i,std::vector< UnspentTxOut >::value_type const &x){ - *(swig::getpos(self,i)) = x; - } -SWIGINTERN void std_vector_Sl_UnspentTxOut_Sg__append(std::vector< UnspentTxOut > *self,std::vector< UnspentTxOut >::value_type const &x){ - self->push_back(x); - } - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 - if (PyUnicode_Check(obj)) -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - PyBytes_AsStringAndSize(obj, &cstr, &len); - if(alloc) *alloc = SWIG_NEWOBJ; -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { - #if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - #endif - *cptr = SWIG_Python_str_AsChar(obj); - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsPtr_std_string (PyObject * obj, std::string **val) -{ - char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; - if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { - if (buf) { - if (val) *val = new std::string(buf, size - 1); - if (alloc == SWIG_NEWOBJ) delete[] buf; - return SWIG_NEWOBJ; - } else { - if (val) *val = 0; - return SWIG_OLDOBJ; - } - } else { - static int init = 0; - static swig_type_info* descriptor = 0; - if (!init) { - descriptor = SWIG_TypeQuery("std::string" " *"); - init = 1; - } - if (descriptor) { - std::string *vptr; - int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); - if (SWIG_IsOK(res) && val) *val = vptr; - return res; - } - } - return SWIG_ERROR; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - unsigned long long v = PyLong_AsUnsignedLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } else { - unsigned long v; - res = SWIG_AsVal_unsigned_SS_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { - if (val) *val = (unsigned long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} - - -SWIGINTERN int -SWIG_AsVal_bool (PyObject *obj, bool *val) -{ - int r = PyObject_IsTrue(obj); - if (r == -1) - return SWIG_ERROR; - if (val) *val = r ? true : false; - return SWIG_OK; -} - - -SWIGINTERNINLINE PyObject* -SWIG_From_long_SS_long (long long value) -{ - return ((value < LONG_MIN) || (value > LONG_MAX)) ? - PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value)); -} - - -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value)); -} - - -SWIGINTERN int -SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) -{ - int res = SWIG_TypeError; - if (PyLong_Check(obj)) { - long long v = PyLong_AsLongLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } else { - long v; - res = SWIG_AsVal_long (obj,&v); - if (SWIG_IsOK(res)) { - if (val) *val = v; - return res; - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - const double mant_max = 1LL << DBL_MANT_DIG; - const double mant_min = -mant_max; - double d; - res = SWIG_AsVal_double (obj,&d); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { - if (val) *val = (long long)(d); - return SWIG_AddCast(res); - } - res = SWIG_TypeError; - } -#endif - return res; -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); -#else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_std_string (const std::string& s) -{ - if (s.size()) { - return SWIG_FromCharPtrAndSize(s.data(), s.size()); - } else { - return SWIG_FromCharPtrAndSize(s.c_str(), 0); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -SWIGINTERNINLINE PyObject * -SWIG_From_size_t (size_t value) -{ - return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); -} - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - try { - result = (swig::SwigPyIterator *)(arg1)->incr(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (swig::SwigPyIterator *)(arg1)->incr(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_incr'.\n" - " Possible C/C++ prototypes are:\n" - " incr(swig::SwigPyIterator *,size_t)\n" - " incr(swig::SwigPyIterator *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - try { - result = (swig::SwigPyIterator *)(arg1)->decr(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (swig::SwigPyIterator *)(arg1)->decr(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_decr'.\n" - " Possible C/C++ prototypes are:\n" - " decr(swig::SwigPyIterator *,size_t)\n" - " decr(swig::SwigPyIterator *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - swig::SwigPyIterator *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - ptrdiff_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); - try { - result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); - } - catch(std::invalid_argument &_e) { - SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; - } - - resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - swig::SwigPyIterator *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); - try { - result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); - } - catch(std::invalid_argument &_e) { - SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; - } - - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (PyObject *)(arg1)->next(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (PyObject *)(arg1)->__next__(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - try { - result = (PyObject *)(arg1)->previous(); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = result; - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = static_cast< ptrdiff_t >(val2); - try { - result = (swig::SwigPyIterator *)(arg1)->advance(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - swig::SwigPyIterator *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); - result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - swig::SwigPyIterator *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); - result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = static_cast< ptrdiff_t >(val2); - try { - result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = static_cast< ptrdiff_t >(val2); - try { - result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = static_cast< ptrdiff_t >(val2); - try { - result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - ptrdiff_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - swig::SwigPyIterator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); - } - arg2 = static_cast< ptrdiff_t >(val2); - try { - result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); - } - catch(swig::stop_iteration &_e) { - { - (void)_e; - SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); - SWIG_fail; - } - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; - swig::SwigPyIterator *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - ptrdiff_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); - } - arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); - } - arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); - result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); - resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_0(self, args); - } - } - } - -fail: - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_int_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_iterator" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_int_Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___nonzero__" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (bool)std_vector_Sl_int_Sg____nonzero__((std::vector< int > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___bool__" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (bool)std_vector_Sl_int_Sg____bool__((std::vector< int > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___len__" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (std::vector< int >::size_type)std_vector_Sl_int_Sg____len__((std::vector< int > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_pop" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - try { - result = (std::vector< int >::value_type)std_vector_Sl_int_Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - std::vector< int >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< int,std::allocator< int > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___getslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___getslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int___getslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); - } - arg3 = static_cast< std::vector< int >::difference_type >(val3); - try { - result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - std::vector< int >::difference_type arg3 ; - std::vector< int,std::allocator< int > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_int___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___setslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___setslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int___setslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); - } - arg3 = static_cast< std::vector< int >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_int___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_int___setslice__" "', argument " "4"" of type '" "std::vector< int,std::allocator< int > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_int_Sg____setslice__(arg1,arg2,arg3,(std::vector< int,std::allocator< int > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - std::vector< int >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___delslice__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___delslice__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int___delslice__" "', argument " "3"" of type '" "std::vector< int >::difference_type""'"); - } - arg3 = static_cast< std::vector< int >::difference_type >(val3); - try { - std_vector_Sl_int_Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___delitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - try { - std_vector_Sl_int_Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< int,std::allocator< int > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___getitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< int,std::allocator< int > > *)std_vector_Sl_int_Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< int,std::allocator< int > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_int___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_int___setitem__" "', argument " "3"" of type '" "std::vector< int,std::allocator< int > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_int_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< int,std::allocator< int > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___delitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_int_Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_int___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< int > *,std::vector< int >::difference_type)\n" - " __delitem__(std::vector< int > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< int >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___getitem__" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___getitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - try { - result = (std::vector< int >::value_type *) &std_vector_Sl_int_Sg____getitem____SWIG_1((std::vector< int > const *)arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_From_int(static_cast< int >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_int___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< int > *,PySliceObject *)\n" - " __getitem__(std::vector< int > const *,std::vector< int >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::difference_type arg2 ; - std::vector< int >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - std::vector< int >::value_type temp3 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int___setitem__" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int___setitem__" "', argument " "2"" of type '" "std::vector< int >::difference_type""'"); - } - arg2 = static_cast< std::vector< int >::difference_type >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int___setitem__" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); - } - temp3 = static_cast< std::vector< int >::value_type >(val3); - arg3 = &temp3; - try { - std_vector_Sl_int_Sg____setitem____SWIG_1(arg1,arg2,(int const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_int___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< int > *,PySliceObject *,std::vector< int,std::allocator< int > > const &)\n" - " __setitem__(std::vector< int > *,std::vector< int >::difference_type,std::vector< int >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< int >::value_type temp2 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_append" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_append" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); - } - temp2 = static_cast< std::vector< int >::value_type >(val2); - arg2 = &temp2; - std_vector_Sl_int_Sg__append(arg1,(int const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_int__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_int")) SWIG_fail; - result = (std::vector< int > *)new std::vector< int >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_int__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< int > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_int",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_int" "', argument " "1"" of type '" "std::vector< int > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_int" "', argument " "1"" of type '" "std::vector< int > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< int > *)new std::vector< int >((std::vector< int > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_empty" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (bool)((std::vector< int > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_size" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (std::vector< int >::size_type)((std::vector< int > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_clear" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_swap" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_int_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_int_swap" "', argument " "2"" of type '" "std::vector< int > &""'"); - } - arg2 = reinterpret_cast< std::vector< int > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< int > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_get_allocator" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = ((std::vector< int > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< int >::allocator_type(static_cast< const std::vector< int >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_begin" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = ((std::vector< int > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_end" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = ((std::vector< int > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_rbegin" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = ((std::vector< int > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_rend" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = ((std::vector< int > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_int__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_int",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_int" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); - } - arg1 = static_cast< std::vector< int >::size_type >(val1); - result = (std::vector< int > *)new std::vector< int >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_pop_back" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); - } - arg2 = static_cast< std::vector< int >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< int >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::iterator arg2 ; - std::vector< int >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< int >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_erase" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_erase" "', argument " "3"" of type '" "std::vector< int >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_int_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_int_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< int > *,std::vector< int >::iterator)\n" - " erase(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_int__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int >::size_type arg1 ; - std::vector< int >::value_type *arg2 = 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - std::vector< int >::value_type temp2 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< int > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_int",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_int" "', argument " "1"" of type '" "std::vector< int >::size_type""'"); - } - arg1 = static_cast< std::vector< int >::size_type >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vector_int" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); - } - temp2 = static_cast< std::vector< int >::value_type >(val2); - arg2 = &temp2; - result = (std::vector< int > *)new std::vector< int >(arg1,(std::vector< int >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_int(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_int__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_int__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_int__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_int__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_int'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< int >()\n" - " std::vector< int >(std::vector< int > const &)\n" - " std::vector< int >(std::vector< int >::size_type)\n" - " std::vector< int >(std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< int >::value_type temp2 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_push_back" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_push_back" "', argument " "2"" of type '" "std::vector< int >::value_type""'"); - } - temp2 = static_cast< std::vector< int >::value_type >(val2); - arg2 = &temp2; - (arg1)->push_back((std::vector< int >::value_type const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_front" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->front(); - resultobj = SWIG_From_int(static_cast< int >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_back" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (std::vector< int >::value_type *) &((std::vector< int > const *)arg1)->back(); - resultobj = SWIG_From_int(static_cast< int >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::size_type arg2 ; - std::vector< int >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - std::vector< int >::value_type temp3 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_assign" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_assign" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); - } - arg2 = static_cast< std::vector< int >::size_type >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int_assign" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); - } - temp3 = static_cast< std::vector< int >::value_type >(val3); - arg3 = &temp3; - (arg1)->assign(arg2,(std::vector< int >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::size_type arg2 ; - std::vector< int >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - std::vector< int >::value_type temp3 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_resize" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_resize" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); - } - arg2 = static_cast< std::vector< int >::size_type >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int_resize" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); - } - temp3 = static_cast< std::vector< int >::value_type >(val3); - arg3 = &temp3; - (arg1)->resize(arg2,(std::vector< int >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< int > *,std::vector< int >::size_type)\n" - " resize(std::vector< int > *,std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::iterator arg2 ; - std::vector< int >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - std::vector< int >::value_type temp3 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< int >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_int_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int_insert" "', argument " "3"" of type '" "std::vector< int >::value_type""'"); - } - temp3 = static_cast< std::vector< int >::value_type >(val3); - arg3 = &temp3; - result = (arg1)->insert(arg2,(std::vector< int >::value_type const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< int >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::iterator arg2 ; - std::vector< int >::size_type arg3 ; - std::vector< int >::value_type *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - std::vector< int >::value_type temp4 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_int_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_insert" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_int_insert" "', argument " "2"" of type '" "std::vector< int >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_int_insert" "', argument " "3"" of type '" "std::vector< int >::size_type""'"); - } - arg3 = static_cast< std::vector< int >::size_type >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "vector_int_insert" "', argument " "4"" of type '" "std::vector< int >::value_type""'"); - } - temp4 = static_cast< std::vector< int >::value_type >(val4); - arg4 = &temp4; - (arg1)->insert(arg2,arg3,(std::vector< int >::value_type const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_int_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_int_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::value_type const &)\n" - " insert(std::vector< int > *,std::vector< int >::iterator,std::vector< int >::size_type,std::vector< int >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - std::vector< int >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_int_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_reserve" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_int_reserve" "', argument " "2"" of type '" "std::vector< int >::size_type""'"); - } - arg2 = static_cast< std::vector< int >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_int_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< int >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_int_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_int_capacity" "', argument " "1"" of type '" "std::vector< int > const *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - result = (std::vector< int >::size_type)((std::vector< int > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< int > *arg1 = (std::vector< int > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_int",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_int" "', argument " "1"" of type '" "std::vector< int > *""'"); - } - arg1 = reinterpret_cast< std::vector< int > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_int_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_float_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_iterator" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_float_Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___nonzero__" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (bool)std_vector_Sl_float_Sg____nonzero__((std::vector< float > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___bool__" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (bool)std_vector_Sl_float_Sg____bool__((std::vector< float > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___len__" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (std::vector< float >::size_type)std_vector_Sl_float_Sg____len__((std::vector< float > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_pop" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - try { - result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - std::vector< float >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< float,std::allocator< float > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___getslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___getslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float___getslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); - } - arg3 = static_cast< std::vector< float >::difference_type >(val3); - try { - result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - std::vector< float >::difference_type arg3 ; - std::vector< float,std::allocator< float > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_float___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); - } - arg3 = static_cast< std::vector< float >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_float___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_float___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_float_Sg____setslice__(arg1,arg2,arg3,(std::vector< float,std::allocator< float > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - std::vector< float >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___delslice__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___delslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float___delslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'"); - } - arg3 = static_cast< std::vector< float >::difference_type >(val3); - try { - std_vector_Sl_float_Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___delitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - try { - std_vector_Sl_float_Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< float,std::allocator< float > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___getitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< float,std::allocator< float > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_float___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_float___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_float_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< float,std::allocator< float > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_float_Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_float___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< float > *,std::vector< float >::difference_type)\n" - " __delitem__(std::vector< float > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< float >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___getitem__" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___getitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - try { - result = (std::vector< float >::value_type *) &std_vector_Sl_float_Sg____getitem____SWIG_1((std::vector< float > const *)arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_From_float(static_cast< float >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_float___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< float > *,PySliceObject *)\n" - " __getitem__(std::vector< float > const *,std::vector< float >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::difference_type arg2 ; - std::vector< float >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - std::vector< float >::value_type temp3 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float___setitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'"); - } - arg2 = static_cast< std::vector< float >::difference_type >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float___setitem__" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); - } - temp3 = static_cast< std::vector< float >::value_type >(val3); - arg3 = &temp3; - try { - std_vector_Sl_float_Sg____setitem____SWIG_1(arg1,arg2,(float const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_float___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< float > *,PySliceObject *,std::vector< float,std::allocator< float > > const &)\n" - " __setitem__(std::vector< float > *,std::vector< float >::difference_type,std::vector< float >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< float >::value_type temp2 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_append" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_append" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); - } - temp2 = static_cast< std::vector< float >::value_type >(val2); - arg2 = &temp2; - std_vector_Sl_float_Sg__append(arg1,(float const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_float__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_float")) SWIG_fail; - result = (std::vector< float > *)new std::vector< float >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_float__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< float > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_float",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_float" "', argument " "1"" of type '" "std::vector< float > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_float" "', argument " "1"" of type '" "std::vector< float > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< float > *)new std::vector< float >((std::vector< float > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_empty" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (bool)((std::vector< float > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_size" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (std::vector< float >::size_type)((std::vector< float > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_clear" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_swap" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_float_swap" "', argument " "2"" of type '" "std::vector< float > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_float_swap" "', argument " "2"" of type '" "std::vector< float > &""'"); - } - arg2 = reinterpret_cast< std::vector< float > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< float > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_get_allocator" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = ((std::vector< float > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< float >::allocator_type(static_cast< const std::vector< float >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_begin" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = ((std::vector< float > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_end" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = ((std::vector< float > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_rbegin" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = ((std::vector< float > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_rend" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = ((std::vector< float > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_float__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_float",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_float" "', argument " "1"" of type '" "std::vector< float >::size_type""'"); - } - arg1 = static_cast< std::vector< float >::size_type >(val1); - result = (std::vector< float > *)new std::vector< float >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_pop_back" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_resize" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); - } - arg2 = static_cast< std::vector< float >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< float >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_erase" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::iterator arg2 ; - std::vector< float >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< float >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_erase" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_float_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_float_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< float > *,std::vector< float >::iterator)\n" - " erase(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_float__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float >::size_type arg1 ; - std::vector< float >::value_type *arg2 = 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - std::vector< float >::value_type temp2 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< float > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_float",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_float" "', argument " "1"" of type '" "std::vector< float >::size_type""'"); - } - arg1 = static_cast< std::vector< float >::size_type >(val1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_vector_float" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); - } - temp2 = static_cast< std::vector< float >::value_type >(val2); - arg2 = &temp2; - result = (std::vector< float > *)new std::vector< float >(arg1,(std::vector< float >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_float(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_float__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_float__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_float__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_float__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_float'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< float >()\n" - " std::vector< float >(std::vector< float > const &)\n" - " std::vector< float >(std::vector< float >::size_type)\n" - " std::vector< float >(std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< float >::value_type temp2 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_push_back" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_push_back" "', argument " "2"" of type '" "std::vector< float >::value_type""'"); - } - temp2 = static_cast< std::vector< float >::value_type >(val2); - arg2 = &temp2; - (arg1)->push_back((std::vector< float >::value_type const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_front" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->front(); - resultobj = SWIG_From_float(static_cast< float >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_back" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->back(); - resultobj = SWIG_From_float(static_cast< float >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::size_type arg2 ; - std::vector< float >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - std::vector< float >::value_type temp3 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_assign" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_assign" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); - } - arg2 = static_cast< std::vector< float >::size_type >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float_assign" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); - } - temp3 = static_cast< std::vector< float >::value_type >(val3); - arg3 = &temp3; - (arg1)->assign(arg2,(std::vector< float >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::size_type arg2 ; - std::vector< float >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - std::vector< float >::value_type temp3 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_resize" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); - } - arg2 = static_cast< std::vector< float >::size_type >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float_resize" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); - } - temp3 = static_cast< std::vector< float >::value_type >(val3); - arg3 = &temp3; - (arg1)->resize(arg2,(std::vector< float >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< float > *,std::vector< float >::size_type)\n" - " resize(std::vector< float > *,std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::iterator arg2 ; - std::vector< float >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - std::vector< float >::value_type temp3 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< float >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_float_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_insert" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float_insert" "', argument " "3"" of type '" "std::vector< float >::value_type""'"); - } - temp3 = static_cast< std::vector< float >::value_type >(val3); - arg3 = &temp3; - result = (arg1)->insert(arg2,(std::vector< float >::value_type const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::iterator arg2 ; - std::vector< float >::size_type arg3 ; - std::vector< float >::value_type *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - std::vector< float >::value_type temp4 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_float_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_insert" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_float_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_float_insert" "', argument " "3"" of type '" "std::vector< float >::size_type""'"); - } - arg3 = static_cast< std::vector< float >::size_type >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "vector_float_insert" "', argument " "4"" of type '" "std::vector< float >::value_type""'"); - } - temp4 = static_cast< std::vector< float >::value_type >(val4); - arg4 = &temp4; - (arg1)->insert(arg2,arg3,(std::vector< float >::value_type const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_float_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_float_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::value_type const &)\n" - " insert(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::size_type,std::vector< float >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - std::vector< float >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_float_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_reserve" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_float_reserve" "', argument " "2"" of type '" "std::vector< float >::size_type""'"); - } - arg2 = static_cast< std::vector< float >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_float_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< float >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_float_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_float_capacity" "', argument " "1"" of type '" "std::vector< float > const *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - result = (std::vector< float >::size_type)((std::vector< float > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< float > *arg1 = (std::vector< float > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_float",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_float" "', argument " "1"" of type '" "std::vector< float > *""'"); - } - arg1 = reinterpret_cast< std::vector< float > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_float_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_BinaryData_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_iterator" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_BinaryData_Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___nonzero__" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (bool)std_vector_Sl_BinaryData_Sg____nonzero__((std::vector< BinaryData > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___bool__" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (bool)std_vector_Sl_BinaryData_Sg____bool__((std::vector< BinaryData > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___len__" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (std::vector< BinaryData >::size_type)std_vector_Sl_BinaryData_Sg____len__((std::vector< BinaryData > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_pop" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - try { - result = std_vector_Sl_BinaryData_Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj((new std::vector< BinaryData >::value_type(static_cast< const std::vector< BinaryData >::value_type& >(result))), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - std::vector< BinaryData >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BinaryData,std::allocator< BinaryData > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___getslice__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___getslice__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_BinaryData___getslice__" "', argument " "3"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg3 = static_cast< std::vector< BinaryData >::difference_type >(val3); - try { - result = (std::vector< BinaryData,std::allocator< BinaryData > > *)std_vector_Sl_BinaryData_Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - std::vector< BinaryData >::difference_type arg3 ; - std::vector< BinaryData,std::allocator< BinaryData > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_BinaryData___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___setslice__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___setslice__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_BinaryData___setslice__" "', argument " "3"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg3 = static_cast< std::vector< BinaryData >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_BinaryData___setslice__" "', argument " "4"" of type '" "std::vector< BinaryData,std::allocator< BinaryData > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData___setslice__" "', argument " "4"" of type '" "std::vector< BinaryData,std::allocator< BinaryData > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_BinaryData_Sg____setslice__(arg1,arg2,arg3,(std::vector< BinaryData,std::allocator< BinaryData > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - std::vector< BinaryData >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___delslice__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___delslice__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_BinaryData___delslice__" "', argument " "3"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg3 = static_cast< std::vector< BinaryData >::difference_type >(val3); - try { - std_vector_Sl_BinaryData_Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___delitem__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___delitem__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - try { - std_vector_Sl_BinaryData_Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BinaryData,std::allocator< BinaryData > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___getitem__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< BinaryData,std::allocator< BinaryData > > *)std_vector_Sl_BinaryData_Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< BinaryData,std::allocator< BinaryData > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___setitem__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_BinaryData___setitem__" "', argument " "3"" of type '" "std::vector< BinaryData,std::allocator< BinaryData > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData___setitem__" "', argument " "3"" of type '" "std::vector< BinaryData,std::allocator< BinaryData > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_BinaryData_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< BinaryData,std::allocator< BinaryData > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___delitem__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_BinaryData_Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_BinaryData___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_BinaryData___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< BinaryData > *,std::vector< BinaryData >::difference_type)\n" - " __delitem__(std::vector< BinaryData > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BinaryData >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___getitem__" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___getitem__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - try { - result = (std::vector< BinaryData >::value_type *) &std_vector_Sl_BinaryData_Sg____getitem____SWIG_1((std::vector< BinaryData > const *)arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_BinaryData___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_BinaryData___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< BinaryData > *,PySliceObject *)\n" - " __getitem__(std::vector< BinaryData > const *,std::vector< BinaryData >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::difference_type arg2 ; - std::vector< BinaryData >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData___setitem__" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData___setitem__" "', argument " "2"" of type '" "std::vector< BinaryData >::difference_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::difference_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_BinaryData___setitem__" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData___setitem__" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp3); - try { - std_vector_Sl_BinaryData_Sg____setitem____SWIG_1(arg1,arg2,(BinaryData const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_BinaryData___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_BinaryData___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< BinaryData > *,PySliceObject *,std::vector< BinaryData,std::allocator< BinaryData > > const &)\n" - " __setitem__(std::vector< BinaryData > *,std::vector< BinaryData >::difference_type,std::vector< BinaryData >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_append" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_BinaryData_append" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_append" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp2); - std_vector_Sl_BinaryData_Sg__append(arg1,(BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_BinaryData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_BinaryData")) SWIG_fail; - result = (std::vector< BinaryData > *)new std::vector< BinaryData >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_BinaryData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< BinaryData > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_BinaryData",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_BinaryData" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_BinaryData" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< BinaryData > *)new std::vector< BinaryData >((std::vector< BinaryData > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_empty" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (bool)((std::vector< BinaryData > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_size" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (std::vector< BinaryData >::size_type)((std::vector< BinaryData > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_clear" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_swap" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_BinaryData_swap" "', argument " "2"" of type '" "std::vector< BinaryData > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_swap" "', argument " "2"" of type '" "std::vector< BinaryData > &""'"); - } - arg2 = reinterpret_cast< std::vector< BinaryData > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< BinaryData > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_get_allocator" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = ((std::vector< BinaryData > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< BinaryData >::allocator_type(static_cast< const std::vector< BinaryData >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_begin" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = ((std::vector< BinaryData > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_end" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = ((std::vector< BinaryData > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_rbegin" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = ((std::vector< BinaryData > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_rend" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = ((std::vector< BinaryData > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_BinaryData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_BinaryData",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_BinaryData" "', argument " "1"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg1 = static_cast< std::vector< BinaryData >::size_type >(val1); - result = (std::vector< BinaryData > *)new std::vector< BinaryData >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_pop_back" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_resize" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData_resize" "', argument " "2"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BinaryData >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_erase" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::iterator arg2 ; - std::vector< BinaryData >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BinaryData >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_erase" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "3"" of type '" "std::vector< BinaryData >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_erase" "', argument " "3"" of type '" "std::vector< BinaryData >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_BinaryData_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_BinaryData_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< BinaryData > *,std::vector< BinaryData >::iterator)\n" - " erase(std::vector< BinaryData > *,std::vector< BinaryData >::iterator,std::vector< BinaryData >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_BinaryData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData >::size_type arg1 ; - std::vector< BinaryData >::value_type *arg2 = 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BinaryData > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_BinaryData",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_BinaryData" "', argument " "1"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg1 = static_cast< std::vector< BinaryData >::size_type >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vector_BinaryData" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_BinaryData" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp2); - result = (std::vector< BinaryData > *)new std::vector< BinaryData >(arg1,(std::vector< BinaryData >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_BinaryData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_BinaryData__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_BinaryData__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_BinaryData__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_BinaryData__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_BinaryData'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< BinaryData >()\n" - " std::vector< BinaryData >(std::vector< BinaryData > const &)\n" - " std::vector< BinaryData >(std::vector< BinaryData >::size_type)\n" - " std::vector< BinaryData >(std::vector< BinaryData >::size_type,std::vector< BinaryData >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_push_back" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_BinaryData_push_back" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_push_back" "', argument " "2"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp2); - (arg1)->push_back((std::vector< BinaryData >::value_type const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_front" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (std::vector< BinaryData >::value_type *) &((std::vector< BinaryData > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_back" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (std::vector< BinaryData >::value_type *) &((std::vector< BinaryData > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::size_type arg2 ; - std::vector< BinaryData >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_assign" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData_assign" "', argument " "2"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_BinaryData_assign" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_assign" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp3); - (arg1)->assign(arg2,(std::vector< BinaryData >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::size_type arg2 ; - std::vector< BinaryData >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_resize" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData_resize" "', argument " "2"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_BinaryData_resize" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_resize" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp3); - (arg1)->resize(arg2,(std::vector< BinaryData >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_BinaryData_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_BinaryData_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< BinaryData > *,std::vector< BinaryData >::size_type)\n" - " resize(std::vector< BinaryData > *,std::vector< BinaryData >::size_type,std::vector< BinaryData >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::iterator arg2 ; - std::vector< BinaryData >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BinaryData >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_BinaryData_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_insert" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_insert" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_insert" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_BinaryData_insert" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_insert" "', argument " "3"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp3); - result = (arg1)->insert(arg2,(std::vector< BinaryData >::value_type const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BinaryData >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::iterator arg2 ; - std::vector< BinaryData >::size_type arg3 ; - std::vector< BinaryData >::value_type *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_BinaryData_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_insert" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_insert" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_BinaryData_insert" "', argument " "2"" of type '" "std::vector< BinaryData >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_BinaryData_insert" "', argument " "3"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg3 = static_cast< std::vector< BinaryData >::size_type >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_BinaryData_insert" "', argument " "4"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_BinaryData_insert" "', argument " "4"" of type '" "std::vector< BinaryData >::value_type const &""'"); - } - arg4 = reinterpret_cast< std::vector< BinaryData >::value_type * >(argp4); - (arg1)->insert(arg2,arg3,(std::vector< BinaryData >::value_type const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_BinaryData_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_BinaryData_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_BinaryData_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< BinaryData > *,std::vector< BinaryData >::iterator,std::vector< BinaryData >::value_type const &)\n" - " insert(std::vector< BinaryData > *,std::vector< BinaryData >::iterator,std::vector< BinaryData >::size_type,std::vector< BinaryData >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - std::vector< BinaryData >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_BinaryData_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_reserve" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_BinaryData_reserve" "', argument " "2"" of type '" "std::vector< BinaryData >::size_type""'"); - } - arg2 = static_cast< std::vector< BinaryData >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_BinaryData_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BinaryData >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_BinaryData_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_BinaryData_capacity" "', argument " "1"" of type '" "std::vector< BinaryData > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - result = (std::vector< BinaryData >::size_type)((std::vector< BinaryData > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_BinaryData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = (std::vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_BinaryData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_BinaryData" "', argument " "1"" of type '" "std::vector< BinaryData > *""'"); - } - arg1 = reinterpret_cast< std::vector< BinaryData > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_BinaryData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_iterator" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_LedgerEntry_Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___nonzero__" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (bool)std_vector_Sl_LedgerEntry_Sg____nonzero__((std::vector< LedgerEntry > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___bool__" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (bool)std_vector_Sl_LedgerEntry_Sg____bool__((std::vector< LedgerEntry > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___len__" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (std::vector< LedgerEntry >::size_type)std_vector_Sl_LedgerEntry_Sg____len__((std::vector< LedgerEntry > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_pop" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - try { - result = std_vector_Sl_LedgerEntry_Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj((new std::vector< LedgerEntry >::value_type(static_cast< const std::vector< LedgerEntry >::value_type& >(result))), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - std::vector< LedgerEntry >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< LedgerEntry,std::allocator< LedgerEntry > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___getslice__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___getslice__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_LedgerEntry___getslice__" "', argument " "3"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg3 = static_cast< std::vector< LedgerEntry >::difference_type >(val3); - try { - result = (std::vector< LedgerEntry,std::allocator< LedgerEntry > > *)std_vector_Sl_LedgerEntry_Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - std::vector< LedgerEntry >::difference_type arg3 ; - std::vector< LedgerEntry,std::allocator< LedgerEntry > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_LedgerEntry___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___setslice__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___setslice__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_LedgerEntry___setslice__" "', argument " "3"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg3 = static_cast< std::vector< LedgerEntry >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_LedgerEntry___setslice__" "', argument " "4"" of type '" "std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry___setslice__" "', argument " "4"" of type '" "std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_LedgerEntry_Sg____setslice__(arg1,arg2,arg3,(std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - std::vector< LedgerEntry >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___delslice__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___delslice__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_LedgerEntry___delslice__" "', argument " "3"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg3 = static_cast< std::vector< LedgerEntry >::difference_type >(val3); - try { - std_vector_Sl_LedgerEntry_Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___delitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___delitem__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - try { - std_vector_Sl_LedgerEntry_Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry,std::allocator< LedgerEntry > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___getitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< LedgerEntry,std::allocator< LedgerEntry > > *)std_vector_Sl_LedgerEntry_Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< LedgerEntry,std::allocator< LedgerEntry > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___setitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_LedgerEntry___setitem__" "', argument " "3"" of type '" "std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry___setitem__" "', argument " "3"" of type '" "std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_LedgerEntry_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___delitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_LedgerEntry_Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_LedgerEntry___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_LedgerEntry___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::difference_type)\n" - " __delitem__(std::vector< LedgerEntry > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___getitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___getitem__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - try { - result = (std::vector< LedgerEntry >::value_type *) &std_vector_Sl_LedgerEntry_Sg____getitem____SWIG_1((std::vector< LedgerEntry > const *)arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_LedgerEntry___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_LedgerEntry___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< LedgerEntry > *,PySliceObject *)\n" - " __getitem__(std::vector< LedgerEntry > const *,std::vector< LedgerEntry >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::difference_type arg2 ; - std::vector< LedgerEntry >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry___setitem__" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry___setitem__" "', argument " "2"" of type '" "std::vector< LedgerEntry >::difference_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::difference_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_LedgerEntry___setitem__" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry___setitem__" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp3); - try { - std_vector_Sl_LedgerEntry_Sg____setitem____SWIG_1(arg1,arg2,(LedgerEntry const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_LedgerEntry___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_LedgerEntry___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< LedgerEntry > *,PySliceObject *,std::vector< LedgerEntry,std::allocator< LedgerEntry > > const &)\n" - " __setitem__(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::difference_type,std::vector< LedgerEntry >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_append" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_LedgerEntry_append" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_append" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp2); - std_vector_Sl_LedgerEntry_Sg__append(arg1,(LedgerEntry const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_LedgerEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_LedgerEntry")) SWIG_fail; - result = (std::vector< LedgerEntry > *)new std::vector< LedgerEntry >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_LedgerEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_LedgerEntry",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_LedgerEntry" "', argument " "1"" of type '" "std::vector< LedgerEntry > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_LedgerEntry" "', argument " "1"" of type '" "std::vector< LedgerEntry > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< LedgerEntry > *)new std::vector< LedgerEntry >((std::vector< LedgerEntry > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_empty" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (bool)((std::vector< LedgerEntry > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_size" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (std::vector< LedgerEntry >::size_type)((std::vector< LedgerEntry > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_clear" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_swap" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_LedgerEntry_swap" "', argument " "2"" of type '" "std::vector< LedgerEntry > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_swap" "', argument " "2"" of type '" "std::vector< LedgerEntry > &""'"); - } - arg2 = reinterpret_cast< std::vector< LedgerEntry > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< LedgerEntry > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_get_allocator" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = ((std::vector< LedgerEntry > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< LedgerEntry >::allocator_type(static_cast< const std::vector< LedgerEntry >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_begin" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = ((std::vector< LedgerEntry > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_end" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = ((std::vector< LedgerEntry > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_rbegin" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = ((std::vector< LedgerEntry > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_rend" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = ((std::vector< LedgerEntry > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_LedgerEntry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_LedgerEntry",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_LedgerEntry" "', argument " "1"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg1 = static_cast< std::vector< LedgerEntry >::size_type >(val1); - result = (std::vector< LedgerEntry > *)new std::vector< LedgerEntry >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_pop_back" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_resize" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry_resize" "', argument " "2"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_erase" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::iterator arg2 ; - std::vector< LedgerEntry >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< LedgerEntry >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_erase" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "3"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_erase" "', argument " "3"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_LedgerEntry_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_LedgerEntry_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::iterator)\n" - " erase(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::iterator,std::vector< LedgerEntry >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_LedgerEntry__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry >::size_type arg1 ; - std::vector< LedgerEntry >::value_type *arg2 = 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_LedgerEntry",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_LedgerEntry" "', argument " "1"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg1 = static_cast< std::vector< LedgerEntry >::size_type >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vector_LedgerEntry" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_LedgerEntry" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp2); - result = (std::vector< LedgerEntry > *)new std::vector< LedgerEntry >(arg1,(std::vector< LedgerEntry >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_LedgerEntry(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_LedgerEntry__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_LedgerEntry__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_LedgerEntry__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_LedgerEntry__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_LedgerEntry'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< LedgerEntry >()\n" - " std::vector< LedgerEntry >(std::vector< LedgerEntry > const &)\n" - " std::vector< LedgerEntry >(std::vector< LedgerEntry >::size_type)\n" - " std::vector< LedgerEntry >(std::vector< LedgerEntry >::size_type,std::vector< LedgerEntry >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_push_back" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_LedgerEntry_push_back" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_push_back" "', argument " "2"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp2); - (arg1)->push_back((std::vector< LedgerEntry >::value_type const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_front" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (std::vector< LedgerEntry >::value_type *) &((std::vector< LedgerEntry > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_back" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (std::vector< LedgerEntry >::value_type *) &((std::vector< LedgerEntry > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::size_type arg2 ; - std::vector< LedgerEntry >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_assign" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry_assign" "', argument " "2"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_LedgerEntry_assign" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_assign" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp3); - (arg1)->assign(arg2,(std::vector< LedgerEntry >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::size_type arg2 ; - std::vector< LedgerEntry >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_resize" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry_resize" "', argument " "2"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_LedgerEntry_resize" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_resize" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp3); - (arg1)->resize(arg2,(std::vector< LedgerEntry >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_LedgerEntry_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_LedgerEntry_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::size_type)\n" - " resize(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::size_type,std::vector< LedgerEntry >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::iterator arg2 ; - std::vector< LedgerEntry >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< LedgerEntry >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_LedgerEntry_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_insert" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_insert" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_insert" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_LedgerEntry_insert" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_insert" "', argument " "3"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp3); - result = (arg1)->insert(arg2,(std::vector< LedgerEntry >::value_type const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< LedgerEntry >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::iterator arg2 ; - std::vector< LedgerEntry >::size_type arg3 ; - std::vector< LedgerEntry >::value_type *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_LedgerEntry_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_insert" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_insert" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_LedgerEntry_insert" "', argument " "2"" of type '" "std::vector< LedgerEntry >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_LedgerEntry_insert" "', argument " "3"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg3 = static_cast< std::vector< LedgerEntry >::size_type >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_LedgerEntry_insert" "', argument " "4"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_LedgerEntry_insert" "', argument " "4"" of type '" "std::vector< LedgerEntry >::value_type const &""'"); - } - arg4 = reinterpret_cast< std::vector< LedgerEntry >::value_type * >(argp4); - (arg1)->insert(arg2,arg3,(std::vector< LedgerEntry >::value_type const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_LedgerEntry_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_LedgerEntry_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_LedgerEntry_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::iterator,std::vector< LedgerEntry >::value_type const &)\n" - " insert(std::vector< LedgerEntry > *,std::vector< LedgerEntry >::iterator,std::vector< LedgerEntry >::size_type,std::vector< LedgerEntry >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - std::vector< LedgerEntry >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_LedgerEntry_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_reserve" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_LedgerEntry_reserve" "', argument " "2"" of type '" "std::vector< LedgerEntry >::size_type""'"); - } - arg2 = static_cast< std::vector< LedgerEntry >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_LedgerEntry_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_LedgerEntry_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_LedgerEntry_capacity" "', argument " "1"" of type '" "std::vector< LedgerEntry > const *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - result = (std::vector< LedgerEntry >::size_type)((std::vector< LedgerEntry > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_LedgerEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< LedgerEntry > *arg1 = (std::vector< LedgerEntry > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_LedgerEntry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_LedgerEntry" "', argument " "1"" of type '" "std::vector< LedgerEntry > *""'"); - } - arg1 = reinterpret_cast< std::vector< LedgerEntry > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_LedgerEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_iterator" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_TxRef_Sm__Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___nonzero__" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (bool)std_vector_Sl_TxRef_Sm__Sg____nonzero__((std::vector< TxRef * > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___bool__" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (bool)std_vector_Sl_TxRef_Sm__Sg____bool__((std::vector< TxRef * > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___len__" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (std::vector< TxRef * >::size_type)std_vector_Sl_TxRef_Sm__Sg____len__((std::vector< TxRef * > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_pop" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - try { - result = (std::vector< TxRef * >::value_type)std_vector_Sl_TxRef_Sm__Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - std::vector< TxRef * >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< TxRef *,std::allocator< TxRef * > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___getslice__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___getslice__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_TxRefPtr___getslice__" "', argument " "3"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< TxRef * >::difference_type >(val3); - try { - result = (std::vector< TxRef *,std::allocator< TxRef * > > *)std_vector_Sl_TxRef_Sm__Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - std::vector< TxRef * >::difference_type arg3 ; - std::vector< TxRef *,std::allocator< TxRef * > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_TxRefPtr___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___setslice__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___setslice__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_TxRefPtr___setslice__" "', argument " "3"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< TxRef * >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_TxRefPtr___setslice__" "', argument " "4"" of type '" "std::vector< TxRef *,std::allocator< TxRef * > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_TxRefPtr___setslice__" "', argument " "4"" of type '" "std::vector< TxRef *,std::allocator< TxRef * > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_TxRef_Sm__Sg____setslice__(arg1,arg2,arg3,(std::vector< TxRef *,std::allocator< TxRef * > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - std::vector< TxRef * >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___delslice__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___delslice__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_TxRefPtr___delslice__" "', argument " "3"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< TxRef * >::difference_type >(val3); - try { - std_vector_Sl_TxRef_Sm__Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___delitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___delitem__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - try { - std_vector_Sl_TxRef_Sm__Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< TxRef *,std::allocator< TxRef * > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___getitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< TxRef *,std::allocator< TxRef * > > *)std_vector_Sl_TxRef_Sm__Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< TxRef *,std::allocator< TxRef * > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___setitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_TxRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< TxRef *,std::allocator< TxRef * > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_TxRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< TxRef *,std::allocator< TxRef * > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_TxRef_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< TxRef *,std::allocator< TxRef * > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___delitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_TxRef_Sm__Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_TxRefPtr___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_TxRefPtr___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< TxRef * > *,std::vector< TxRef * >::difference_type)\n" - " __delitem__(std::vector< TxRef * > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< TxRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___getitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___getitem__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - try { - result = (std::vector< TxRef * >::value_type)std_vector_Sl_TxRef_Sm__Sg____getitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_TxRefPtr___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_TxRefPtr___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< TxRef * > *,PySliceObject *)\n" - " __getitem__(std::vector< TxRef * > *,std::vector< TxRef * >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::difference_type arg2 ; - std::vector< TxRef * >::value_type arg3 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr___setitem__" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr___setitem__" "', argument " "2"" of type '" "std::vector< TxRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::difference_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_TxRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp3); - try { - std_vector_Sl_TxRef_Sm__Sg____setitem____SWIG_1(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_TxRefPtr___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_TxRefPtr___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< TxRef * > *,PySliceObject *,std::vector< TxRef *,std::allocator< TxRef * > > const &)\n" - " __setitem__(std::vector< TxRef * > *,std::vector< TxRef * >::difference_type,std::vector< TxRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::value_type arg2 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_append" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_TxRefPtr_append" "', argument " "2"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp2); - std_vector_Sl_TxRef_Sm__Sg__append(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_TxRefPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_TxRefPtr")) SWIG_fail; - result = (std::vector< TxRef * > *)new std::vector< TxRef * >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_TxRefPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< TxRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_TxRefPtr",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_TxRefPtr" "', argument " "1"" of type '" "std::vector< TxRef * > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_TxRefPtr" "', argument " "1"" of type '" "std::vector< TxRef * > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< TxRef * > *)new std::vector< TxRef * >((std::vector< TxRef * > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_empty" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (bool)((std::vector< TxRef * > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_size" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (std::vector< TxRef * >::size_type)((std::vector< TxRef * > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_clear" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_swap" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_TxRefPtr_swap" "', argument " "2"" of type '" "std::vector< TxRef * > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_TxRefPtr_swap" "', argument " "2"" of type '" "std::vector< TxRef * > &""'"); - } - arg2 = reinterpret_cast< std::vector< TxRef * > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< TxRef * > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_get_allocator" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = ((std::vector< TxRef * > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< TxRef * >::allocator_type(static_cast< const std::vector< TxRef * >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_begin" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = ((std::vector< TxRef * > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_end" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = ((std::vector< TxRef * > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_rbegin" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = ((std::vector< TxRef * > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_rend" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = ((std::vector< TxRef * > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_TxRefPtr__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_TxRefPtr",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_TxRefPtr" "', argument " "1"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg1 = static_cast< std::vector< TxRef * >::size_type >(val1); - result = (std::vector< TxRef * > *)new std::vector< TxRef * >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_pop_back" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_resize" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr_resize" "', argument " "2"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< TxRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_erase" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::iterator arg2 ; - std::vector< TxRef * >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< TxRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_erase" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "3"" of type '" "std::vector< TxRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_erase" "', argument " "3"" of type '" "std::vector< TxRef * >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_TxRefPtr_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_TxRefPtr_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< TxRef * > *,std::vector< TxRef * >::iterator)\n" - " erase(std::vector< TxRef * > *,std::vector< TxRef * >::iterator,std::vector< TxRef * >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_TxRefPtr__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * >::size_type arg1 ; - std::vector< TxRef * >::value_type arg2 = (std::vector< TxRef * >::value_type) 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< TxRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_TxRefPtr",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_TxRefPtr" "', argument " "1"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg1 = static_cast< std::vector< TxRef * >::size_type >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vector_TxRefPtr" "', argument " "2"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp2); - result = (std::vector< TxRef * > *)new std::vector< TxRef * >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_TxRefPtr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_TxRefPtr__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_TxRefPtr__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_TxRefPtr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_TxRefPtr__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_TxRefPtr'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< TxRef * >()\n" - " std::vector< TxRef * >(std::vector< TxRef * > const &)\n" - " std::vector< TxRef * >(std::vector< TxRef * >::size_type)\n" - " std::vector< TxRef * >(std::vector< TxRef * >::size_type,std::vector< TxRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::value_type arg2 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_push_back" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_TxRefPtr_push_back" "', argument " "2"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp2); - (arg1)->push_back(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_front" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (std::vector< TxRef * >::value_type)((std::vector< TxRef * > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_back" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (std::vector< TxRef * >::value_type)((std::vector< TxRef * > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::size_type arg2 ; - std::vector< TxRef * >::value_type arg3 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_assign" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr_assign" "', argument " "2"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_TxRefPtr_assign" "', argument " "3"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp3); - (arg1)->assign(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::size_type arg2 ; - std::vector< TxRef * >::value_type arg3 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_resize" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr_resize" "', argument " "2"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_TxRefPtr_resize" "', argument " "3"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp3); - (arg1)->resize(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_TxRefPtr_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_TxRefPtr_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< TxRef * > *,std::vector< TxRef * >::size_type)\n" - " resize(std::vector< TxRef * > *,std::vector< TxRef * >::size_type,std::vector< TxRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::iterator arg2 ; - std::vector< TxRef * >::value_type arg3 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< TxRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_TxRefPtr_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_insert" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_insert" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_insert" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_TxRefPtr_insert" "', argument " "3"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp3); - result = (arg1)->insert(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< TxRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::iterator arg2 ; - std::vector< TxRef * >::size_type arg3 ; - std::vector< TxRef * >::value_type arg4 = (std::vector< TxRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_TxRefPtr_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_insert" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_insert" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_TxRefPtr_insert" "', argument " "2"" of type '" "std::vector< TxRef * >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_TxRefPtr_insert" "', argument " "3"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg3 = static_cast< std::vector< TxRef * >::size_type >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_TxRefPtr_insert" "', argument " "4"" of type '" "std::vector< TxRef * >::value_type""'"); - } - arg4 = reinterpret_cast< std::vector< TxRef * >::value_type >(argp4); - (arg1)->insert(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_TxRefPtr_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_TxRefPtr_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_TxRefPtr_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< TxRef * > *,std::vector< TxRef * >::iterator,std::vector< TxRef * >::value_type)\n" - " insert(std::vector< TxRef * > *,std::vector< TxRef * >::iterator,std::vector< TxRef * >::size_type,std::vector< TxRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - std::vector< TxRef * >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_TxRefPtr_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_reserve" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_TxRefPtr_reserve" "', argument " "2"" of type '" "std::vector< TxRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< TxRef * >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_TxRefPtr_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_TxRefPtr_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_TxRefPtr_capacity" "', argument " "1"" of type '" "std::vector< TxRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - result = (std::vector< TxRef * >::size_type)((std::vector< TxRef * > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_TxRefPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< TxRef * > *arg1 = (std::vector< TxRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_TxRefPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_TxRefPtr" "', argument " "1"" of type '" "std::vector< TxRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< TxRef * > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_TxRefPtr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_iterator" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_BlockHeaderRef_Sm__Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___nonzero__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (bool)std_vector_Sl_BlockHeaderRef_Sm__Sg____nonzero__((std::vector< BlockHeaderRef * > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___bool__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (bool)std_vector_Sl_BlockHeaderRef_Sm__Sg____bool__((std::vector< BlockHeaderRef * > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___len__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (std::vector< BlockHeaderRef * >::size_type)std_vector_Sl_BlockHeaderRef_Sm__Sg____len__((std::vector< BlockHeaderRef * > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_pop" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - try { - result = (std::vector< BlockHeaderRef * >::value_type)std_vector_Sl_BlockHeaderRef_Sm__Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - std::vector< BlockHeaderRef * >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___getslice__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___getslice__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_HeaderRefPtr___getslice__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val3); - try { - result = (std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *)std_vector_Sl_BlockHeaderRef_Sm__Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - std::vector< BlockHeaderRef * >::difference_type arg3 ; - std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_HeaderRefPtr___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___setslice__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___setslice__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_HeaderRefPtr___setslice__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_HeaderRefPtr___setslice__" "', argument " "4"" of type '" "std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_HeaderRefPtr___setslice__" "', argument " "4"" of type '" "std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____setslice__(arg1,arg2,arg3,(std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - std::vector< BlockHeaderRef * >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___delslice__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___delslice__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_HeaderRefPtr___delslice__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg3 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val3); - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___delitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___delitem__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___getitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *)std_vector_Sl_BlockHeaderRef_Sm__Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___delitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_HeaderRefPtr___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_HeaderRefPtr___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::difference_type)\n" - " __delitem__(std::vector< BlockHeaderRef * > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BlockHeaderRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___getitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___getitem__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - try { - result = (std::vector< BlockHeaderRef * >::value_type)std_vector_Sl_BlockHeaderRef_Sm__Sg____getitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_HeaderRefPtr___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_HeaderRefPtr___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< BlockHeaderRef * > *,PySliceObject *)\n" - " __getitem__(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::difference_type arg2 ; - std::vector< BlockHeaderRef * >::value_type arg3 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::difference_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::difference_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_HeaderRefPtr___setitem__" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp3); - try { - std_vector_Sl_BlockHeaderRef_Sm__Sg____setitem____SWIG_1(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_HeaderRefPtr___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_HeaderRefPtr___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< BlockHeaderRef * > *,PySliceObject *,std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > const &)\n" - " __setitem__(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::difference_type,std::vector< BlockHeaderRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::value_type arg2 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_append" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_HeaderRefPtr_append" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp2); - std_vector_Sl_BlockHeaderRef_Sm__Sg__append(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_HeaderRefPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_HeaderRefPtr")) SWIG_fail; - result = (std::vector< BlockHeaderRef * > *)new std::vector< BlockHeaderRef * >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_HeaderRefPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_HeaderRefPtr",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_HeaderRefPtr" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_HeaderRefPtr" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< BlockHeaderRef * > *)new std::vector< BlockHeaderRef * >((std::vector< BlockHeaderRef * > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_empty" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (bool)((std::vector< BlockHeaderRef * > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_size" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (std::vector< BlockHeaderRef * >::size_type)((std::vector< BlockHeaderRef * > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_clear" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_swap" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_HeaderRefPtr_swap" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_HeaderRefPtr_swap" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * > &""'"); - } - arg2 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< BlockHeaderRef * > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_get_allocator" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = ((std::vector< BlockHeaderRef * > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< BlockHeaderRef * >::allocator_type(static_cast< const std::vector< BlockHeaderRef * >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_begin" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = ((std::vector< BlockHeaderRef * > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_end" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = ((std::vector< BlockHeaderRef * > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_rbegin" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = ((std::vector< BlockHeaderRef * > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_rend" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = ((std::vector< BlockHeaderRef * > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_HeaderRefPtr__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_HeaderRefPtr",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_HeaderRefPtr" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg1 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val1); - result = (std::vector< BlockHeaderRef * > *)new std::vector< BlockHeaderRef * >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_pop_back" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_resize" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr_resize" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BlockHeaderRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_erase" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::iterator arg2 ; - std::vector< BlockHeaderRef * >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BlockHeaderRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_erase" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_erase" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_HeaderRefPtr_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_HeaderRefPtr_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::iterator)\n" - " erase(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::iterator,std::vector< BlockHeaderRef * >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_HeaderRefPtr__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * >::size_type arg1 ; - std::vector< BlockHeaderRef * >::value_type arg2 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BlockHeaderRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_HeaderRefPtr",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_HeaderRefPtr" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg1 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vector_HeaderRefPtr" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp2); - result = (std::vector< BlockHeaderRef * > *)new std::vector< BlockHeaderRef * >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_HeaderRefPtr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_HeaderRefPtr__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_HeaderRefPtr__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_HeaderRefPtr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_HeaderRefPtr__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_HeaderRefPtr'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< BlockHeaderRef * >()\n" - " std::vector< BlockHeaderRef * >(std::vector< BlockHeaderRef * > const &)\n" - " std::vector< BlockHeaderRef * >(std::vector< BlockHeaderRef * >::size_type)\n" - " std::vector< BlockHeaderRef * >(std::vector< BlockHeaderRef * >::size_type,std::vector< BlockHeaderRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::value_type arg2 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_push_back" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_HeaderRefPtr_push_back" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg2 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp2); - (arg1)->push_back(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_front" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (std::vector< BlockHeaderRef * >::value_type)((std::vector< BlockHeaderRef * > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_back" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (std::vector< BlockHeaderRef * >::value_type)((std::vector< BlockHeaderRef * > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::size_type arg2 ; - std::vector< BlockHeaderRef * >::value_type arg3 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_assign" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr_assign" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_HeaderRefPtr_assign" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp3); - (arg1)->assign(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::size_type arg2 ; - std::vector< BlockHeaderRef * >::value_type arg3 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_resize" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr_resize" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_HeaderRefPtr_resize" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp3); - (arg1)->resize(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_HeaderRefPtr_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_HeaderRefPtr_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::size_type)\n" - " resize(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::size_type,std::vector< BlockHeaderRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::iterator arg2 ; - std::vector< BlockHeaderRef * >::value_type arg3 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< BlockHeaderRef * >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_HeaderRefPtr_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_insert" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_insert" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_insert" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_HeaderRefPtr_insert" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg3 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp3); - result = (arg1)->insert(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< BlockHeaderRef * >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::iterator arg2 ; - std::vector< BlockHeaderRef * >::size_type arg3 ; - std::vector< BlockHeaderRef * >::value_type arg4 = (std::vector< BlockHeaderRef * >::value_type) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_HeaderRefPtr_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_insert" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_insert" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_HeaderRefPtr_insert" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_HeaderRefPtr_insert" "', argument " "3"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg3 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_HeaderRefPtr_insert" "', argument " "4"" of type '" "std::vector< BlockHeaderRef * >::value_type""'"); - } - arg4 = reinterpret_cast< std::vector< BlockHeaderRef * >::value_type >(argp4); - (arg1)->insert(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_HeaderRefPtr_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_HeaderRefPtr_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_HeaderRefPtr_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::iterator,std::vector< BlockHeaderRef * >::value_type)\n" - " insert(std::vector< BlockHeaderRef * > *,std::vector< BlockHeaderRef * >::iterator,std::vector< BlockHeaderRef * >::size_type,std::vector< BlockHeaderRef * >::value_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - std::vector< BlockHeaderRef * >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_HeaderRefPtr_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_reserve" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_HeaderRefPtr_reserve" "', argument " "2"" of type '" "std::vector< BlockHeaderRef * >::size_type""'"); - } - arg2 = static_cast< std::vector< BlockHeaderRef * >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_HeaderRefPtr_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_HeaderRefPtr_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_HeaderRefPtr_capacity" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > const *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - result = (std::vector< BlockHeaderRef * >::size_type)((std::vector< BlockHeaderRef * > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_HeaderRefPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BlockHeaderRef * > *arg1 = (std::vector< BlockHeaderRef * > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_HeaderRefPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_HeaderRefPtr" "', argument " "1"" of type '" "std::vector< BlockHeaderRef * > *""'"); - } - arg1 = reinterpret_cast< std::vector< BlockHeaderRef * > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_HeaderRefPtr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - PyObject **arg2 = (PyObject **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - swig::SwigPyIterator *result = 0 ; - - arg2 = &obj0; - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_iterator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_iterator" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_UnspentTxOut_Sg__iterator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut___nonzero__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___nonzero__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (bool)std_vector_Sl_UnspentTxOut_Sg____nonzero__((std::vector< UnspentTxOut > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut___bool__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___bool__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (bool)std_vector_Sl_UnspentTxOut_Sg____bool__((std::vector< UnspentTxOut > const *)arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut___len__",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___len__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (std::vector< UnspentTxOut >::size_type)std_vector_Sl_UnspentTxOut_Sg____len__((std::vector< UnspentTxOut > const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::value_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_pop",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_pop" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - try { - result = std_vector_Sl_UnspentTxOut_Sg__pop(arg1); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj((new std::vector< UnspentTxOut >::value_type(static_cast< const std::vector< UnspentTxOut >::value_type& >(result))), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - std::vector< UnspentTxOut >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___getslice__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___getslice__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_UnspentTxOut___getslice__" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg3 = static_cast< std::vector< UnspentTxOut >::difference_type >(val3); - try { - result = (std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *)std_vector_Sl_UnspentTxOut_Sg____getslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - std::vector< UnspentTxOut >::difference_type arg3 ; - std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - int res4 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_UnspentTxOut___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___setslice__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___setslice__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_UnspentTxOut___setslice__" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg3 = static_cast< std::vector< UnspentTxOut >::difference_type >(val3); - { - std::vector > *ptr = (std::vector > *)0; - res4 = swig::asptr(obj3, &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_UnspentTxOut___setslice__" "', argument " "4"" of type '" "std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut___setslice__" "', argument " "4"" of type '" "std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &""'"); - } - arg4 = ptr; - } - try { - std_vector_Sl_UnspentTxOut_Sg____setslice__(arg1,arg2,arg3,(std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &)*arg4); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; -fail: - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - std::vector< UnspentTxOut >::difference_type arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - ptrdiff_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___delslice__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___delslice__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_UnspentTxOut___delslice__" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg3 = static_cast< std::vector< UnspentTxOut >::difference_type >(val3); - try { - std_vector_Sl_UnspentTxOut_Sg____delslice__(arg1,arg2,arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___delitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___delitem__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - try { - std_vector_Sl_UnspentTxOut_Sg____delitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___getitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - result = (std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *)std_vector_Sl_UnspentTxOut_Sg____getitem____SWIG_0(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___setitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - { - std::vector > *ptr = (std::vector > *)0; - res3 = swig::asptr(obj2, &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_UnspentTxOut___setitem__" "', argument " "3"" of type '" "std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut___setitem__" "', argument " "3"" of type '" "std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &""'"); - } - arg3 = ptr; - } - try { - std_vector_Sl_UnspentTxOut_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - catch(std::invalid_argument &_e) { - SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res3)) delete arg3; - return resultobj; -fail: - if (SWIG_IsNewObj(res3)) delete arg3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - PySliceObject *arg2 = (PySliceObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut___delitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___delitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - { - arg2 = (PySliceObject *) obj1; - } - try { - std_vector_Sl_UnspentTxOut_Sg____delitem____SWIG_1(arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___delitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_UnspentTxOut___delitem____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_UnspentTxOut___delitem____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut___delitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __delitem__(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::difference_type)\n" - " __delitem__(std::vector< UnspentTxOut > *,PySliceObject *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut___getitem__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___getitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___getitem__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - try { - result = (std::vector< UnspentTxOut >::value_type *) &std_vector_Sl_UnspentTxOut_Sg____getitem____SWIG_1((std::vector< UnspentTxOut > const *)arg1,arg2); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___getitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_vector_UnspentTxOut___getitem____SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_UnspentTxOut___getitem____SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut___getitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __getitem__(std::vector< UnspentTxOut > *,PySliceObject *)\n" - " __getitem__(std::vector< UnspentTxOut > const *,std::vector< UnspentTxOut >::difference_type)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::difference_type arg2 ; - std::vector< UnspentTxOut >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - ptrdiff_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut___setitem__" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut___setitem__" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::difference_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::difference_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_UnspentTxOut___setitem__" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut___setitem__" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp3); - try { - std_vector_Sl_UnspentTxOut_Sg____setitem____SWIG_1(arg1,arg2,(UnspentTxOut const &)*arg3); - } - catch(std::out_of_range &_e) { - SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); - } - - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut___setitem__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - int res = swig::asptr(argv[2], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_UnspentTxOut___setitem____SWIG_0(self, args); - } - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_UnspentTxOut___setitem____SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut___setitem__'.\n" - " Possible C/C++ prototypes are:\n" - " __setitem__(std::vector< UnspentTxOut > *,PySliceObject *,std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > const &)\n" - " __setitem__(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::difference_type,std::vector< UnspentTxOut >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_append" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_UnspentTxOut_append" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_append" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp2); - std_vector_Sl_UnspentTxOut_Sg__append(arg1,(UnspentTxOut const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_UnspentTxOut__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_vector_UnspentTxOut")) SWIG_fail; - result = (std::vector< UnspentTxOut > *)new std::vector< UnspentTxOut >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_UnspentTxOut__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_UnspentTxOut",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_vector_UnspentTxOut" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_UnspentTxOut" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const &""'"); - } - arg1 = ptr; - } - result = (std::vector< UnspentTxOut > *)new std::vector< UnspentTxOut >((std::vector< UnspentTxOut > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_empty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_empty" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (bool)((std::vector< UnspentTxOut > const *)arg1)->empty(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_size" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (std::vector< UnspentTxOut >::size_type)((std::vector< UnspentTxOut > const *)arg1)->size(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_clear" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_swap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_swap" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_UnspentTxOut_swap" "', argument " "2"" of type '" "std::vector< UnspentTxOut > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_swap" "', argument " "2"" of type '" "std::vector< UnspentTxOut > &""'"); - } - arg2 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp2); - (arg1)->swap(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::allocator< UnspentTxOut > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_get_allocator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_get_allocator" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = ((std::vector< UnspentTxOut > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< UnspentTxOut >::allocator_type(static_cast< const std::vector< UnspentTxOut >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_begin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_begin" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = ((std::vector< UnspentTxOut > const *)arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::const_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_end",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_end" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = ((std::vector< UnspentTxOut > const *)arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::const_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_rbegin",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_rbegin" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = ((std::vector< UnspentTxOut > const *)arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::const_reverse_iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_rend",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_rend" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = ((std::vector< UnspentTxOut > const *)arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::const_reverse_iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_UnspentTxOut__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut >::size_type arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_vector_UnspentTxOut",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_UnspentTxOut" "', argument " "1"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg1 = static_cast< std::vector< UnspentTxOut >::size_type >(val1); - result = (std::vector< UnspentTxOut > *)new std::vector< UnspentTxOut >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_pop_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_pop_back" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - (arg1)->pop_back(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_resize" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut_resize" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::size_type >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_erase",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_erase" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } - } - result = (arg1)->erase(arg2); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::iterator arg2 ; - std::vector< UnspentTxOut >::iterator arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - swig::SwigPyIterator *iter3 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< UnspentTxOut >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut_erase",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_erase" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); - if (iter_t) { - arg3 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_erase" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } - } - result = (arg1)->erase(arg2,arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_erase(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_UnspentTxOut_erase__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_vector_UnspentTxOut_erase__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut_erase'.\n" - " Possible C/C++ prototypes are:\n" - " erase(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::iterator)\n" - " erase(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::iterator,std::vector< UnspentTxOut >::iterator)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_UnspentTxOut__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut >::size_type arg1 ; - std::vector< UnspentTxOut >::value_type *arg2 = 0 ; - unsigned int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_vector_UnspentTxOut",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_vector_UnspentTxOut" "', argument " "1"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg1 = static_cast< std::vector< UnspentTxOut >::size_type >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_vector_UnspentTxOut" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_vector_UnspentTxOut" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp2); - result = (std::vector< UnspentTxOut > *)new std::vector< UnspentTxOut >(arg1,(std::vector< UnspentTxOut >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_vector_UnspentTxOut(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_vector_UnspentTxOut__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_vector_UnspentTxOut__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_UnspentTxOut__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_vector_UnspentTxOut__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_vector_UnspentTxOut'.\n" - " Possible C/C++ prototypes are:\n" - " std::vector< UnspentTxOut >()\n" - " std::vector< UnspentTxOut >(std::vector< UnspentTxOut > const &)\n" - " std::vector< UnspentTxOut >(std::vector< UnspentTxOut >::size_type)\n" - " std::vector< UnspentTxOut >(std::vector< UnspentTxOut >::size_type,std::vector< UnspentTxOut >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::value_type *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_push_back",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_push_back" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vector_UnspentTxOut_push_back" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_push_back" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg2 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp2); - (arg1)->push_back((std::vector< UnspentTxOut >::value_type const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_front",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_front" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (std::vector< UnspentTxOut >::value_type *) &((std::vector< UnspentTxOut > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::value_type *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_back",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_back" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (std::vector< UnspentTxOut >::value_type *) &((std::vector< UnspentTxOut > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::size_type arg2 ; - std::vector< UnspentTxOut >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut_assign",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_assign" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut_assign" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_UnspentTxOut_assign" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_assign" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp3); - (arg1)->assign(arg2,(std::vector< UnspentTxOut >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::size_type arg2 ; - std::vector< UnspentTxOut >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut_resize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_resize" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut_resize" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::size_type >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_UnspentTxOut_resize" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_resize" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp3); - (arg1)->resize(arg2,(std::vector< UnspentTxOut >::value_type const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_resize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_vector_UnspentTxOut_resize__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_UnspentTxOut_resize__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut_resize'.\n" - " Possible C/C++ prototypes are:\n" - " resize(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::size_type)\n" - " resize(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::size_type,std::vector< UnspentTxOut >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::iterator arg2 ; - std::vector< UnspentTxOut >::value_type *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - std::vector< UnspentTxOut >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:vector_UnspentTxOut_insert",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_insert" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_insert" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_insert" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } - } - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "vector_UnspentTxOut_insert" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_insert" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg3 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp3); - result = (arg1)->insert(arg2,(std::vector< UnspentTxOut >::value_type const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< UnspentTxOut >::iterator & >(result)), - swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::iterator arg2 ; - std::vector< UnspentTxOut >::size_type arg3 ; - std::vector< UnspentTxOut >::value_type *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - swig::SwigPyIterator *iter2 = 0 ; - int res2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:vector_UnspentTxOut_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_insert" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); - if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_insert" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); - if (iter_t) { - arg2 = iter_t->get_current(); - } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "vector_UnspentTxOut_insert" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::iterator""'"); - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vector_UnspentTxOut_insert" "', argument " "3"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg3 = static_cast< std::vector< UnspentTxOut >::size_type >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "vector_UnspentTxOut_insert" "', argument " "4"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "vector_UnspentTxOut_insert" "', argument " "4"" of type '" "std::vector< UnspentTxOut >::value_type const &""'"); - } - arg4 = reinterpret_cast< std::vector< UnspentTxOut >::value_type * >(argp4); - (arg1)->insert(arg2,arg3,(std::vector< UnspentTxOut >::value_type const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_insert(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_UnspentTxOut_insert__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = swig::asptr(argv[0], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_vector_UnspentTxOut_insert__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'vector_UnspentTxOut_insert'.\n" - " Possible C/C++ prototypes are:\n" - " insert(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::iterator,std::vector< UnspentTxOut >::value_type const &)\n" - " insert(std::vector< UnspentTxOut > *,std::vector< UnspentTxOut >::iterator,std::vector< UnspentTxOut >::size_type,std::vector< UnspentTxOut >::value_type const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - std::vector< UnspentTxOut >::size_type arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:vector_UnspentTxOut_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_reserve" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vector_UnspentTxOut_reserve" "', argument " "2"" of type '" "std::vector< UnspentTxOut >::size_type""'"); - } - arg2 = static_cast< std::vector< UnspentTxOut >::size_type >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_vector_UnspentTxOut_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut >::size_type result; - - if (!PyArg_ParseTuple(args,(char *)"O:vector_UnspentTxOut_capacity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vector_UnspentTxOut_capacity" "', argument " "1"" of type '" "std::vector< UnspentTxOut > const *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - result = (std::vector< UnspentTxOut >::size_type)((std::vector< UnspentTxOut > const *)arg1)->capacity(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_vector_UnspentTxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< UnspentTxOut > *arg1 = (std::vector< UnspentTxOut > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_vector_UnspentTxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_vector_UnspentTxOut" "', argument " "1"" of type '" "std::vector< UnspentTxOut > *""'"); - } - arg1 = reinterpret_cast< std::vector< UnspentTxOut > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *vector_UnspentTxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_BlockHeader_getVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getVersion" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)((BlockHeader const *)arg1)->getVersion(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getPrevHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getPrevHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getPrevHash" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (BinaryData *) &((BlockHeader const *)arg1)->getPrevHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getMerkleRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getMerkleRoot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getMerkleRoot" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (BinaryData *) &((BlockHeader const *)arg1)->getMerkleRoot(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getTimestamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getTimestamp" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)((BlockHeader const *)arg1)->getTimestamp(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getDiffBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getDiffBits",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getDiffBits" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (BinaryData *) &((BlockHeader const *)arg1)->getDiffBits(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getNonce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getNonce",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getNonce" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)((BlockHeader const *)arg1)->getNonce(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getThisHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getThisHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getThisHash" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (BinaryData *) &((BlockHeader const *)arg1)->getThisHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getNextHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getNextHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getNextHash" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (BinaryData *) &((BlockHeader const *)arg1)->getNextHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getNumTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getNumTx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getNumTx" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)((BlockHeader const *)arg1)->getNumTx(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getBlockHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getBlockHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getBlockHeight" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)((BlockHeader const *)arg1)->getBlockHeight(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getDifficulty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getDifficulty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getDifficulty" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (double)((BlockHeader const *)arg1)->getDifficulty(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_getDifficultySum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_getDifficultySum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_getDifficultySum" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (double)((BlockHeader const *)arg1)->getDifficultySum(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_isMainBranch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_isMainBranch",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_isMainBranch" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (bool)((BlockHeader const *)arg1)->isMainBranch(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_isOrphan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_isOrphan",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_isOrphan" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (bool)((BlockHeader const *)arg1)->isOrphan(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setVersion",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setVersion" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlockHeader_setVersion" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setVersion(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setPrevHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setPrevHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setPrevHash" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->setPrevHash(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setMerkleRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setMerkleRoot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setMerkleRoot" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->setMerkleRoot(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setTimestamp",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setTimestamp" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlockHeader_setTimestamp" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setTimestamp(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setDiffBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setDiffBits",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setDiffBits" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->setDiffBits(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setNonce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setNonce",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setNonce" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlockHeader_setNonce" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setNonce(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_setNextHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_setNextHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_setNextHash" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->setNextHash(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_serialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_serialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_serialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryWriter *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_serialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_serialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryWriter, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - arg2 = reinterpret_cast< BinaryWriter * >(argp2); - (arg1)->serialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_serialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_serialize__SWIG_0(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryWriter, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_serialize__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeader_serialize'.\n" - " Possible C/C++ prototypes are:\n" - " serialize(BlockHeader *)\n" - " serialize(BlockHeader *,BinaryWriter &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize_1_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize_1_",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize_1_" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize_1_((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - BinaryData *arg3 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockHeader_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockHeader_unserialize" "', argument " "3"" of type '" "BinaryData const *""'"); - } - arg3 = reinterpret_cast< BinaryData * >(argp3); - (arg1)->unserialize((uint8_t const *)arg2,(BinaryData const *)arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - arg2 = reinterpret_cast< BinaryReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "string const &""'"); - } - arg2 = ptr; - } - (arg1)->unserialize((string const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; -fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_unserialize" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_4(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_5(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_unserialize__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeader_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(BlockHeader *,uint8_t const *,BinaryData const *)\n" - " unserialize(BlockHeader *,uint8_t const *)\n" - " unserialize(BlockHeader *,BinaryReader &)\n" - " unserialize(BlockHeader *,string const &)\n" - " unserialize(BlockHeader *,BinaryData const &)\n" - " unserialize(BlockHeader *,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_BlockHeader",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeader" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlockHeader" "', argument " "2"" of type '" "BinaryData *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - result = (BlockHeader *)new BlockHeader((uint8_t const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeader" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (BlockHeader *)new BlockHeader((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeader",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = (BlockHeader *)new BlockHeader((BinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = (BinaryData *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - uint64_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned long long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_BlockHeader",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeader" "', argument " "1"" of type '" "BinaryData const *""'"); - } - arg1 = reinterpret_cast< BinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlockHeader" "', argument " "2"" of type '" "BinaryData const *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlockHeader" "', argument " "3"" of type '" "uint64_t""'"); - } - arg3 = static_cast< uint64_t >(val3); - result = (BlockHeader *)new BlockHeader((BinaryData const *)arg1,(BinaryData const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = (BinaryData *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_BlockHeader",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeader" "', argument " "1"" of type '" "BinaryData const *""'"); - } - arg1 = reinterpret_cast< BinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BlockHeader" "', argument " "2"" of type '" "BinaryData const *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - result = (BlockHeader *)new BlockHeader((BinaryData const *)arg1,(BinaryData const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeader" "', argument " "1"" of type '" "BinaryData const *""'"); - } - arg1 = reinterpret_cast< BinaryData * >(argp1); - result = (BlockHeader *)new BlockHeader((BinaryData const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BlockHeader")) SWIG_fail; - result = (BlockHeader *)new BlockHeader(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeader(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_BlockHeader__SWIG_6(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeader__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeader__SWIG_5(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeader__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeader__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeader__SWIG_4(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_BlockHeader__SWIG_3(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_BlockHeader'.\n" - " Possible C/C++ prototypes are:\n" - " BlockHeader(uint8_t const *,BinaryData *)\n" - " BlockHeader(uint8_t const *)\n" - " BlockHeader(BinaryData const &)\n" - " BlockHeader(BinaryData const *,BinaryData const *,uint64_t)\n" - " BlockHeader(BinaryData const *,BinaryData const *)\n" - " BlockHeader(BinaryData const *)\n" - " BlockHeader()\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_pprint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockHeader_pprint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_pprint" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockHeader_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlockHeader_pprint" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - ((BlockHeader const *)arg1)->pprint(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_pprint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockHeader_pprint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_pprint" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockHeader_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ((BlockHeader const *)arg1)->pprint(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_pprint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeader_pprint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_pprint" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeader_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ((BlockHeader const *)arg1)->pprint(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_pprint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_pprint" "', argument " "1"" of type '" "BlockHeader const *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - ((BlockHeader const *)arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_pprint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_pprint__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeader_pprint__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockHeader_pprint__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeader, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockHeader_pprint__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeader_pprint'.\n" - " Possible C/C++ prototypes are:\n" - " pprint(BlockHeader const *,ostream &,int,bool)\n" - " pprint(BlockHeader const *,ostream &,int)\n" - " pprint(BlockHeader const *,ostream &)\n" - " pprint(BlockHeader const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeader_findNonce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeader_findNonce",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeader_findNonce" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - result = (uint32_t)(arg1)->findNonce(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeader *arg1 = (BlockHeader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeader, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlockHeader" "', argument " "1"" of type '" "BlockHeader *""'"); - } - arg1 = reinterpret_cast< BlockHeader * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BlockHeader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BlockHeader, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_OutPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_OutPoint")) SWIG_fail; - result = (OutPoint *)new OutPoint(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OutPoint, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_OutPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPoint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_OutPoint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OutPoint" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (OutPoint *)new OutPoint((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OutPoint, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_OutPoint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - uint32_t arg2 ; - BinaryData bdObj1 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - OutPoint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_OutPoint",&obj0,&obj1)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_OutPoint" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (OutPoint *)new OutPoint((BinaryData const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OutPoint, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_OutPoint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_OutPoint__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_OutPoint__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_OutPoint__SWIG_2(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_OutPoint'.\n" - " Possible C/C++ prototypes are:\n" - " OutPoint()\n" - " OutPoint(uint8_t const *)\n" - " OutPoint(BinaryData const &,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_getTxHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPoint_getTxHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_getTxHash" "', argument " "1"" of type '" "OutPoint const *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - result = (BinaryData *) &((OutPoint const *)arg1)->getTxHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_getTxHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPoint_getTxHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_getTxHashRef" "', argument " "1"" of type '" "OutPoint const *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - result = ((OutPoint const *)arg1)->getTxHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_getTxOutIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPoint_getTxOutIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_getTxOutIndex" "', argument " "1"" of type '" "OutPoint const *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - result = (uint32_t)((OutPoint const *)arg1)->getTxOutIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_setTxHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_setTxHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_setTxHash" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->setTxHash((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_setTxOutIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_setTxOutIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_setTxOutIndex" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OutPoint_setTxOutIndex" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setTxOutIndex(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - OutPoint *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint___lt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint___lt__" "', argument " "1"" of type '" "OutPoint const *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_OutPoint, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint___lt__" "', argument " "2"" of type '" "OutPoint const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint___lt__" "', argument " "2"" of type '" "OutPoint const &""'"); - } - arg2 = reinterpret_cast< OutPoint * >(argp2); - result = (bool)((OutPoint const *)arg1)->operator <((OutPoint const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - OutPoint *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint___eq__" "', argument " "1"" of type '" "OutPoint const *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_OutPoint, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint___eq__" "', argument " "2"" of type '" "OutPoint const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint___eq__" "', argument " "2"" of type '" "OutPoint const &""'"); - } - arg2 = reinterpret_cast< OutPoint * >(argp2); - result = (bool)((OutPoint const *)arg1)->operator ==((OutPoint const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_serialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryWriter *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_serialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_serialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryWriter, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - arg2 = reinterpret_cast< BinaryWriter * >(argp2); - (arg1)->serialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_serialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPoint_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_serialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_serialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_serialize__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryWriter, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_serialize__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'OutPoint_serialize'.\n" - " Possible C/C++ prototypes are:\n" - " serialize(OutPoint *,BinaryWriter &)\n" - " serialize(OutPoint *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_unserialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_unserialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - arg2 = reinterpret_cast< BinaryReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_unserialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_unserialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPoint_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPoint_unserialize" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPoint_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPoint_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPoint_unserialize__SWIG_4(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'OutPoint_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(OutPoint *,uint8_t const *)\n" - " unserialize(OutPoint *,BinaryReader &)\n" - " unserialize(OutPoint *,BinaryRefReader &)\n" - " unserialize(OutPoint *,BinaryData const &)\n" - " unserialize(OutPoint *,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_OutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = (OutPoint *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_OutPoint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPoint, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OutPoint" "', argument " "1"" of type '" "OutPoint *""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *OutPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_OutPoint, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxIn__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxIn")) SWIG_fail; - result = (TxIn *)new TxIn(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIn, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIn__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPoint *arg1 = 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - TxIn *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_TxIn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_OutPoint, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxIn" "', argument " "1"" of type '" "OutPoint const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TxIn" "', argument " "1"" of type '" "OutPoint const &""'"); - } - arg1 = reinterpret_cast< OutPoint * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TxIn" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TxIn" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - result = (TxIn *)new TxIn((OutPoint const &)*arg1,(BinaryData const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIn, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIn(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxIn__SWIG_0(self, args); - } - if (argc == 4) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_OutPoint, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxIn__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxIn'.\n" - " Possible C/C++ prototypes are:\n" - " TxIn()\n" - " TxIn(OutPoint const &,BinaryData const &,uint32_t,bool)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_getOutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPoint *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_getOutPoint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_getOutPoint" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (OutPoint *) &(arg1)->getOutPoint(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OutPoint, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_getBinScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_getBinScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_getBinScript" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (BinaryData *) &(arg1)->getBinScript(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_getSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_getSequence",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_getSequence" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (uint32_t)(arg1)->getSequence(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_getScriptSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_getScriptSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_getScriptSize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (uint32_t)(arg1)->getScriptSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_getSize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (uint32_t)(arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_setOutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - OutPoint *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_setOutPoint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_setOutPoint" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_OutPoint, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_setOutPoint" "', argument " "2"" of type '" "OutPoint const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxIn_setOutPoint" "', argument " "2"" of type '" "OutPoint const &""'"); - } - arg2 = reinterpret_cast< OutPoint * >(argp2); - (arg1)->setOutPoint((OutPoint const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_setBinScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_setBinScript",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_setBinScript" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->setBinScript((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_setSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_setSequence",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_setSequence" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxIn_setSequence" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setSequence(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_setIsMine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_setIsMine",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_setIsMine" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxIn_setIsMine" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - (arg1)->setIsMine(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_serialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryWriter *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_serialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_serialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryWriter, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxIn_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - arg2 = reinterpret_cast< BinaryWriter * >(argp2); - (arg1)->serialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_serialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIn_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_serialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_serialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_serialize__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryWriter, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_serialize__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIn_serialize'.\n" - " Possible C/C++ prototypes are:\n" - " serialize(TxIn *,BinaryWriter &)\n" - " serialize(TxIn *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_unserialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_unserialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - arg2 = reinterpret_cast< BinaryReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_unserialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_unserialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIn_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIn_unserialize" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxIn_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIn_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIn, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIn_unserialize__SWIG_4(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIn_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(TxIn *,uint8_t const *)\n" - " unserialize(TxIn *,BinaryReader &)\n" - " unserialize(TxIn *,BinaryRefReader &)\n" - " unserialize(TxIn *,BinaryData const &)\n" - " unserialize(TxIn *,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIn *arg1 = (TxIn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxIn",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIn, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxIn" "', argument " "1"" of type '" "TxIn *""'"); - } - arg1 = reinterpret_cast< TxIn * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxIn_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxIn, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxOut__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxOut")) SWIG_fail; - result = (TxOut *)new TxOut(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOut__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint64_t arg1 ; - BinaryData *arg2 = 0 ; - unsigned long long val1 ; - int ecode1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_TxOut",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TxOut" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (TxOut *)new TxOut(arg1,(BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOut(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxOut__SWIG_0(self, args); - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxOut__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxOut'.\n" - " Possible C/C++ prototypes are:\n" - " TxOut()\n" - " TxOut(uint64_t,BinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_getValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_getValue" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (uint64_t)(arg1)->getValue(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_getPkScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_getPkScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_getPkScript" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (BinaryData *) &(arg1)->getPkScript(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_getScriptSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_getScriptSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_getScriptSize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (uint32_t)(arg1)->getScriptSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_isStandard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_isStandard",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_isStandard" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (bool)(arg1)->isStandard(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_getRecipientAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_getRecipientAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_getRecipientAddr" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (BinaryData *) &(arg1)->getRecipientAddr(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_setValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_setValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_setValue" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxOut_setValue" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - (arg1)->setValue(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_setPkScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_setPkScript",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_setPkScript" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->setPkScript((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_serialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryWriter *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_serialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_serialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryWriter, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOut_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOut_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - arg2 = reinterpret_cast< BinaryWriter * >(argp2); - (arg1)->serialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_serialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOut_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_serialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_serialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_serialize__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryWriter, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_serialize__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxOut_serialize'.\n" - " Possible C/C++ prototypes are:\n" - " serialize(TxOut *,BinaryWriter &)\n" - " serialize(TxOut *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_unserialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_unserialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - arg2 = reinterpret_cast< BinaryReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_unserialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_unserialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOut_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOut_unserialize" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOut_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOut_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOut_unserialize__SWIG_4(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxOut_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(TxOut *,uint8_t const *)\n" - " unserialize(TxOut *,BinaryReader &)\n" - " unserialize(TxOut *,BinaryRefReader &)\n" - " unserialize(TxOut *,BinaryData const &)\n" - " unserialize(TxOut *,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOut *arg1 = (TxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxOut" "', argument " "1"" of type '" "TxOut *""'"); - } - arg1 = reinterpret_cast< TxOut * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxOut, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_Tx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_Tx")) SWIG_fail; - result = (Tx *)new Tx(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Tx, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getVersion_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getVersion_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getVersion_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (uint32_t)(arg1)->getVersion_(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getNumTxIn_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getNumTxIn_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getNumTxIn_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (uint32_t)(arg1)->getNumTxIn_(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getNumTxOut_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getNumTxOut_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getNumTxOut_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (uint32_t)(arg1)->getNumTxOut_(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getTxInList_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< vector< TxIn > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getTxInList_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getTxInList_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (arg1)->getTxInList_(); - resultobj = SWIG_NewPointerObj((new vector< TxIn >(static_cast< const vector< TxIn >& >(result))), SWIGTYPE_p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getTxOutList_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< vector< TxOut > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getTxOutList_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getTxOutList_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (arg1)->getTxOutList_(); - resultobj = SWIG_NewPointerObj((new vector< TxOut >(static_cast< const vector< TxOut >& >(result))), SWIGTYPE_p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getLockTime_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getLockTime_",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getLockTime_" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (uint32_t)(arg1)->getLockTime_(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getNumBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getNumBytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getNumBytes" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (uint32_t)(arg1)->getNumBytes(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getHeaderPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getHeaderPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getHeaderPtr" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (BlockHeader *)(arg1)->getHeaderPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeader, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_getHeaderRefPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_getHeaderRefPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_getHeaderRefPtr" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (BlockHeaderRef *)(arg1)->getHeaderRefPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_createOutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - OutPoint result; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_createOutPoint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_createOutPoint" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tx_createOutPoint" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (arg1)->createOutPoint(arg2); - resultobj = SWIG_NewPointerObj((new OutPoint(static_cast< const OutPoint& >(result))), SWIGTYPE_p_OutPoint, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_serialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - BinaryWriter *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_serialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_serialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryWriter, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tx_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Tx_serialize" "', argument " "2"" of type '" "BinaryWriter &""'"); - } - arg2 = reinterpret_cast< BinaryWriter * >(argp2); - (arg1)->serialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_serialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:Tx_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_serialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_serialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_serialize__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryWriter, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_serialize__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Tx_serialize'.\n" - " Possible C/C++ prototypes are:\n" - " serialize(Tx *,BinaryWriter &)\n" - " serialize(Tx *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_unserialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tx_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - BinaryReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_unserialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryReader &""'"); - } - arg2 = reinterpret_cast< BinaryReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_unserialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_unserialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:Tx_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tx_unserialize" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Tx_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Tx_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Tx, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_Tx_unserialize__SWIG_4(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Tx_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(Tx *,uint8_t const *)\n" - " unserialize(Tx *,BinaryReader &)\n" - " unserialize(Tx *,BinaryRefReader &)\n" - " unserialize(Tx *,BinaryData const &)\n" - " unserialize(Tx *,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_Tx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - Tx *arg1 = (Tx *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_Tx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Tx, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Tx" "', argument " "1"" of type '" "Tx *""'"); - } - arg1 = reinterpret_cast< Tx * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *Tx_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_Tx, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_UnspentTxOut__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_UnspentTxOut")) SWIG_fail; - result = (UnspentTxOut *)new UnspentTxOut(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UnspentTxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_UnspentTxOut__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - UnspentTxOut *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_UnspentTxOut",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_TxOutRef, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_UnspentTxOut" "', argument " "1"" of type '" "TxOutRef &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_UnspentTxOut" "', argument " "1"" of type '" "TxOutRef &""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_UnspentTxOut" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (UnspentTxOut *)new UnspentTxOut(*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UnspentTxOut, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_UnspentTxOut(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_UnspentTxOut__SWIG_0(self, args); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UnspentTxOut__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_UnspentTxOut'.\n" - " Possible C/C++ prototypes are:\n" - " UnspentTxOut()\n" - " UnspentTxOut(TxOutRef &,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - TxOutRef *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:UnspentTxOut_init",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_init" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxOutRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_init" "', argument " "2"" of type '" "TxOutRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_init" "', argument " "2"" of type '" "TxOutRef &""'"); - } - arg2 = reinterpret_cast< TxOutRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "UnspentTxOut_init" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->init(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getTxHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getTxHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getTxHash" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = ((UnspentTxOut const *)arg1)->getTxHash(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getTxOutIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getTxOutIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getTxOutIndex" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint32_t)((UnspentTxOut const *)arg1)->getTxOutIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getValue" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint64_t)((UnspentTxOut const *)arg1)->getValue(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getTxHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getTxHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getTxHeight" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint64_t)((UnspentTxOut const *)arg1)->getTxHeight(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getNumConfirm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getNumConfirm",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getNumConfirm" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint32_t)((UnspentTxOut const *)arg1)->getNumConfirm(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getScript" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (BinaryData *) &((UnspentTxOut const *)arg1)->getScript(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_getRecipientAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_getRecipientAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_getRecipientAddr" "', argument " "1"" of type '" "UnspentTxOut const *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = ((UnspentTxOut const *)arg1)->getRecipientAddr(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_updateNumConfirm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_updateNumConfirm",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_updateNumConfirm" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_updateNumConfirm" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (uint32_t)(arg1)->updateNumConfirm(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_CompareNaive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = 0 ; - UnspentTxOut *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_CompareNaive",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_CompareNaive" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareNaive" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_CompareNaive" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareNaive" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - arg2 = reinterpret_cast< UnspentTxOut * >(argp2); - result = (bool)UnspentTxOut::CompareNaive((UnspentTxOut const &)*arg1,(UnspentTxOut const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_CompareTech1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = 0 ; - UnspentTxOut *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_CompareTech1",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_CompareTech1" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech1" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_CompareTech1" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech1" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - arg2 = reinterpret_cast< UnspentTxOut * >(argp2); - result = (bool)UnspentTxOut::CompareTech1((UnspentTxOut const &)*arg1,(UnspentTxOut const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_CompareTech2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = 0 ; - UnspentTxOut *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_CompareTech2",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_CompareTech2" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech2" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_CompareTech2" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech2" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - arg2 = reinterpret_cast< UnspentTxOut * >(argp2); - result = (bool)UnspentTxOut::CompareTech2((UnspentTxOut const &)*arg1,(UnspentTxOut const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_CompareTech3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = 0 ; - UnspentTxOut *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_CompareTech3",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_CompareTech3" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech3" "', argument " "1"" of type '" "UnspentTxOut const &""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_UnspentTxOut, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_CompareTech3" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_CompareTech3" "', argument " "2"" of type '" "UnspentTxOut const &""'"); - } - arg2 = reinterpret_cast< UnspentTxOut * >(argp2); - result = (bool)UnspentTxOut::CompareTech3((UnspentTxOut const &)*arg1,(UnspentTxOut const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_sortTxOutVect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - vector< UnspentTxOut > *arg1 = 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_sortTxOutVect",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_sortTxOutVect" "', argument " "1"" of type '" "vector< UnspentTxOut > &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_sortTxOutVect" "', argument " "1"" of type '" "vector< UnspentTxOut > &""'"); - } - arg1 = reinterpret_cast< vector< UnspentTxOut > * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_sortTxOutVect" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - UnspentTxOut::sortTxOutVect(*arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_sortTxOutVect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - vector< UnspentTxOut > *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_sortTxOutVect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_sortTxOutVect" "', argument " "1"" of type '" "vector< UnspentTxOut > &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "UnspentTxOut_sortTxOutVect" "', argument " "1"" of type '" "vector< UnspentTxOut > &""'"); - } - arg1 = reinterpret_cast< vector< UnspentTxOut > * >(argp1); - UnspentTxOut::sortTxOutVect(*arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_sortTxOutVect(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UnspentTxOut_sortTxOutVect__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UnspentTxOut_sortTxOutVect__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'UnspentTxOut_sortTxOutVect'.\n" - " Possible C/C++ prototypes are:\n" - " sortTxOutVect(vector< UnspentTxOut > &,int)\n" - " UnspentTxOut::sortTxOutVect(vector< UnspentTxOut > &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_pprintOneLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_pprintOneLine",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_pprintOneLine" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_pprintOneLine" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->pprintOneLine(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_pprintOneLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_pprintOneLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_pprintOneLine" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - (arg1)->pprintOneLine(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_pprintOneLine(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UnspentTxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UnspentTxOut_pprintOneLine__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UnspentTxOut, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UnspentTxOut_pprintOneLine__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'UnspentTxOut_pprintOneLine'.\n" - " Possible C/C++ prototypes are:\n" - " pprintOneLine(UnspentTxOut *,uint32_t)\n" - " pprintOneLine(UnspentTxOut *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txHash__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_txHash__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txHash__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_txHash__set" "', argument " "2"" of type '" "BinaryData *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - if (arg1) (arg1)->txHash_ = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txHash__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_txHash__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txHash__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (BinaryData *)& ((arg1)->txHash_); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinaryData, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txOutIndex__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_txOutIndex__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txOutIndex__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_txOutIndex__set" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - if (arg1) (arg1)->txOutIndex_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txOutIndex__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_txOutIndex__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txOutIndex__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint32_t) ((arg1)->txOutIndex_); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txHeight__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_txHeight__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txHeight__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_txHeight__set" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - if (arg1) (arg1)->txHeight_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_txHeight__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_txHeight__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_txHeight__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint32_t) ((arg1)->txHeight_); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_value__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_value__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_value__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_value__set" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->value_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_value__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_value__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_value__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint64_t) ((arg1)->value_); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_script__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_script__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_script__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "UnspentTxOut_script__set" "', argument " "2"" of type '" "BinaryData *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - if (arg1) (arg1)->script_ = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_script__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_script__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_script__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (BinaryData *)& ((arg1)->script_); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BinaryData, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_numConfirm__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_numConfirm__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_numConfirm__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_numConfirm__set" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - if (arg1) (arg1)->numConfirm_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_numConfirm__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_numConfirm__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_numConfirm__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint32_t) ((arg1)->numConfirm_); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_targetTxAmount__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:UnspentTxOut_targetTxAmount__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_targetTxAmount__set" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UnspentTxOut_targetTxAmount__set" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->targetTxAmount_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_UnspentTxOut_targetTxAmount__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:UnspentTxOut_targetTxAmount__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UnspentTxOut_targetTxAmount__get" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - result = (uint64_t) ((arg1)->targetTxAmount_); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_UnspentTxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - UnspentTxOut *arg1 = (UnspentTxOut *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_UnspentTxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_UnspentTxOut, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UnspentTxOut" "', argument " "1"" of type '" "UnspentTxOut *""'"); - } - arg1 = reinterpret_cast< UnspentTxOut * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *UnspentTxOut_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_UnspentTxOut, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BlockHeaderRef")) SWIG_fail; - result = (BlockHeaderRef *)new BlockHeaderRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeaderRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeaderRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (BlockHeaderRef *)new BlockHeaderRef((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryRefReader *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeaderRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeaderRef" "', argument " "1"" of type '" "BinaryRefReader &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlockHeaderRef" "', argument " "1"" of type '" "BinaryRefReader &""'"); - } - arg1 = reinterpret_cast< BinaryRefReader * >(argp1); - result = (BlockHeaderRef *)new BlockHeaderRef(*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeaderRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BlockHeaderRef" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BlockHeaderRef" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = (BlockHeaderRef *)new BlockHeaderRef((BinaryDataRef const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BlockHeaderRef",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = (BlockHeaderRef *)new BlockHeaderRef((BinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BlockHeaderRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_BlockHeaderRef__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeaderRef__SWIG_1(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeaderRef__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeaderRef__SWIG_3(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BlockHeaderRef__SWIG_4(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_BlockHeaderRef'.\n" - " Possible C/C++ prototypes are:\n" - " BlockHeaderRef()\n" - " BlockHeaderRef(uint8_t const *)\n" - " BlockHeaderRef(BinaryRefReader &)\n" - " BlockHeaderRef(BinaryDataRef const &)\n" - " BlockHeaderRef(BinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize_1_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_unserialize_1_",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_unserialize_1_" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (BlockHeaderRef *) &(arg1)->unserialize_1_((BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getVersion" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getVersion(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getThisHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getThisHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getThisHash" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (BinaryData *) &((BlockHeaderRef const *)arg1)->getThisHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getPrevHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getPrevHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getPrevHash" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getPrevHash(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getNextHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getNextHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getNextHash" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (BinaryData *) &((BlockHeaderRef const *)arg1)->getNextHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getMerkleRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getMerkleRoot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getMerkleRoot" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getMerkleRoot(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getDiffBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getDiffBits",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getDiffBits" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getDiffBits(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getTimestamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getTimestamp" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getTimestamp(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getNonce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getNonce",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getNonce" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getNonce(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getBlockHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getBlockHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getBlockHeight" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getBlockHeight(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_isMainBranch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_isMainBranch",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_isMainBranch" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (bool)((BlockHeaderRef const *)arg1)->isMainBranch(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_isOrphan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_isOrphan",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_isOrphan" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (bool)((BlockHeaderRef const *)arg1)->isOrphan(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getDifficulty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getDifficulty",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getDifficulty" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (double)((BlockHeaderRef const *)arg1)->getDifficulty(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getDifficultySum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getDifficultySum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getDifficultySum" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (double)((BlockHeaderRef const *)arg1)->getDifficultySum(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getThisHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getThisHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getThisHashRef" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getThisHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getPrevHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getPrevHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getPrevHashRef" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getPrevHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getNextHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getNextHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getNextHashRef" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getNextHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getMerkleRootRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getMerkleRootRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getMerkleRootRef" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getMerkleRootRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getDiffBitsRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getDiffBitsRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getDiffBitsRef" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getDiffBitsRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getBlkStartByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getBlkStartByte",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getBlkStartByte" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint64_t)((BlockHeaderRef const *)arg1)->getBlkStartByte(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getNumTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getNumTx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getNumTx" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getNumTx(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getPtr" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint8_t *)((BlockHeaderRef const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getSize" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_isInitialized" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->isInitialized(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getBlockSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getBlockSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getBlockSize" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (uint32_t)((BlockHeaderRef const *)arg1)->getBlockSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getTxRefPtrList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - vector< TxRef * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getTxRefPtrList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getTxRefPtrList" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (vector< TxRef * > *) &(arg1)->getTxRefPtrList(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getTxHashList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - vector< BinaryData > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getTxHashList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getTxHashList" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (arg1)->getTxHashList(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_calcMerkleRoot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - vector< BinaryData > *arg2 = (vector< BinaryData > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_calcMerkleRoot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_calcMerkleRoot" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_calcMerkleRoot" "', argument " "2"" of type '" "vector< BinaryData > *""'"); - } - arg2 = reinterpret_cast< vector< BinaryData > * >(argp2); - result = (arg1)->calcMerkleRoot(arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_calcMerkleRoot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_calcMerkleRoot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_calcMerkleRoot" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (arg1)->calcMerkleRoot(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_calcMerkleRoot(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_calcMerkleRoot__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = swig::asptr(argv[1], (std::vector >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_calcMerkleRoot__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeaderRef_calcMerkleRoot'.\n" - " Possible C/C++ prototypes are:\n" - " calcMerkleRoot(BlockHeaderRef *,vector< BinaryData > *)\n" - " calcMerkleRoot(BlockHeaderRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_verifyMerkleRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_verifyMerkleRoot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_verifyMerkleRoot" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (bool)(arg1)->verifyMerkleRoot(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_verifyIntegrity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_verifyIntegrity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_verifyIntegrity" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (bool)(arg1)->verifyIntegrity(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_getCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeader result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_getCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_getCopy" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = ((BlockHeaderRef const *)arg1)->getCopy(); - resultobj = SWIG_NewPointerObj((new BlockHeader(static_cast< const BlockHeader& >(result))), SWIGTYPE_p_BlockHeader, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockHeaderRef_pprint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprint" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockHeaderRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlockHeaderRef_pprint" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - ((BlockHeaderRef const *)arg1)->pprint(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockHeaderRef_pprint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprint" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockHeaderRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ((BlockHeaderRef const *)arg1)->pprint(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_pprint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprint" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ((BlockHeaderRef const *)arg1)->pprint(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprint" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - ((BlockHeaderRef const *)arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_pprint__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_pprint__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockHeaderRef_pprint__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockHeaderRef_pprint__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeaderRef_pprint'.\n" - " Possible C/C++ prototypes are:\n" - " pprint(BlockHeaderRef const *,ostream &,int,bool)\n" - " pprint(BlockHeaderRef const *,ostream &,int)\n" - " pprint(BlockHeaderRef const *,ostream &)\n" - " pprint(BlockHeaderRef const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprintAlot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_pprintAlot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprintAlot" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_pprintAlot" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_pprintAlot" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - (arg1)->pprintAlot(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprintAlot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_pprintAlot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_pprintAlot" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - (arg1)->pprintAlot(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_pprintAlot(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_pprintAlot__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_pprintAlot__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeaderRef_pprintAlot'.\n" - " Possible C/C++ prototypes are:\n" - " pprintAlot(BlockHeaderRef *,ostream &)\n" - " pprintAlot(BlockHeaderRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_serialize" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_serializeRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockHeaderRef_serializeRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_serializeRef" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - result = (arg1)->serializeRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_serializeWholeBlock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryData *arg2 = 0 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockHeaderRef_serializeWholeBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_serializeWholeBlock" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockHeaderRef_serializeWholeBlock" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = ((BlockHeaderRef const *)arg1)->serializeWholeBlock((BinaryData const &)*arg2,arg3); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_serializeWholeBlock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_serializeWholeBlock",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_serializeWholeBlock" "', argument " "1"" of type '" "BlockHeaderRef const *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = ((BlockHeaderRef const *)arg1)->serializeWholeBlock((BinaryData const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_serializeWholeBlock(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_serializeWholeBlock__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockHeaderRef_serializeWholeBlock__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeaderRef_serializeWholeBlock'.\n" - " Possible C/C++ prototypes are:\n" - " serializeWholeBlock(BlockHeaderRef const *,BinaryData const &,bool)\n" - " serializeWholeBlock(BlockHeaderRef const *,BinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_unserialize" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_unserialize" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_unserialize" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockHeaderRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockHeaderRef_unserialize" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockHeaderRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockHeaderRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockHeaderRef_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockHeaderRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockHeaderRef_unserialize__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockHeaderRef_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(BlockHeaderRef *,uint8_t const *)\n" - " unserialize(BlockHeaderRef *,BinaryData const &)\n" - " unserialize(BlockHeaderRef *,BinaryDataRef const &)\n" - " unserialize(BlockHeaderRef *,BinaryRefReader &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BlockHeaderRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockHeaderRef *arg1 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BlockHeaderRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockHeaderRef, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlockHeaderRef" "', argument " "1"" of type '" "BlockHeaderRef *""'"); - } - arg1 = reinterpret_cast< BlockHeaderRef * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BlockHeaderRef_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BlockHeaderRef, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_OutPointRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPointRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_OutPointRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OutPointRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (OutPointRef *)new OutPointRef((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OutPointRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getPtr" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = (uint8_t *)((OutPointRef const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getSize" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = (uint32_t)((OutPointRef const *)arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPoint result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getCopy" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = ((OutPointRef const *)arg1)->getCopy(); - resultobj = SWIG_NewPointerObj((new OutPoint(static_cast< const OutPoint& >(result))), SWIGTYPE_p_OutPoint, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getTxHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getTxHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getTxHash" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = ((OutPointRef const *)arg1)->getTxHash(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getTxHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getTxHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getTxHashRef" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = ((OutPointRef const *)arg1)->getTxHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_getTxOutIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_getTxOutIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_getTxOutIndex" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = (uint32_t)((OutPointRef const *)arg1)->getTxOutIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_serialize" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = ((OutPointRef const *)arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_serializeRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:OutPointRef_serializeRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_serializeRef" "', argument " "1"" of type '" "OutPointRef const *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - result = ((OutPointRef const *)arg1)->serializeRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPointRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_unserialize" "', argument " "1"" of type '" "OutPointRef *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPointRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPointRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_unserialize" "', argument " "1"" of type '" "OutPointRef *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPointRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_unserialize" "', argument " "1"" of type '" "OutPointRef *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPointRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPointRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:OutPointRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutPointRef_unserialize" "', argument " "1"" of type '" "OutPointRef *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutPointRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "OutPointRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_OutPointRef_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPointRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPointRef_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPointRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPointRef_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPointRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPointRef_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OutPointRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_OutPointRef_unserialize__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'OutPointRef_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(OutPointRef *,uint8_t const *)\n" - " unserialize(OutPointRef *,BinaryData const &)\n" - " unserialize(OutPointRef *,BinaryDataRef const &)\n" - " unserialize(OutPointRef *,BinaryRefReader &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_OutPointRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OutPointRef *arg1 = (OutPointRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_OutPointRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OutPointRef, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OutPointRef" "', argument " "1"" of type '" "OutPointRef *""'"); - } - arg1 = reinterpret_cast< OutPointRef * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *OutPointRef_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_OutPointRef, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxInRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxInRef")) SWIG_fail; - result = (TxInRef *)new TxInRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxInRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxInRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - TxRef *arg3 = (TxRef *) 0 ; - int32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - TxInRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_TxInRef",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxInRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxInRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TxInRef" "', argument " "3"" of type '" "TxRef *""'"); - } - arg3 = reinterpret_cast< TxRef * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TxInRef" "', argument " "4"" of type '" "int32_t""'"); - } - arg4 = static_cast< int32_t >(val4); - result = (TxInRef *)new TxInRef((uint8_t const *)arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxInRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxInRef__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - TxRef *arg3 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - TxInRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_TxInRef",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxInRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxInRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TxInRef" "', argument " "3"" of type '" "TxRef *""'"); - } - arg3 = reinterpret_cast< TxRef * >(argp3); - result = (TxInRef *)new TxInRef((uint8_t const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxInRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxInRef__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxInRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_TxInRef",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxInRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxInRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (TxInRef *)new TxInRef((uint8_t const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxInRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxInRef__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxInRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxInRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxInRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (TxInRef *)new TxInRef((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxInRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxInRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxInRef__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxInRef__SWIG_4(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxInRef__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxInRef__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxInRef__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxInRef'.\n" - " Possible C/C++ prototypes are:\n" - " TxInRef()\n" - " TxInRef(uint8_t const *,uint32_t,TxRef *,int32_t)\n" - " TxInRef(uint8_t const *,uint32_t,TxRef *)\n" - " TxInRef(uint8_t const *,uint32_t)\n" - " TxInRef(uint8_t const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getPtr" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint8_t *)((TxInRef const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getSize" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint32_t)((TxInRef const *)arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isStandard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isStandard",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isStandard" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)((TxInRef const *)arg1)->isStandard(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isCoinbase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isCoinbase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isCoinbase" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)((TxInRef const *)arg1)->isCoinbase(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isInitialized" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)((TxInRef const *)arg1)->isInitialized(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getScriptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TXIN_SCRIPT_TYPE result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getScriptType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getScriptType" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (TXIN_SCRIPT_TYPE)((TxInRef const *)arg1)->getScriptType(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getScriptOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getScriptOffset",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getScriptOffset" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint32_t)((TxInRef const *)arg1)->getScriptOffset(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxIn result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getCopy" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getCopy(); - resultobj = SWIG_NewPointerObj((new TxIn(static_cast< const TxIn& >(result))), SWIGTYPE_p_TxIn, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getParentTxPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getParentTxPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getParentTxPtr" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (TxRef *)(arg1)->getParentTxPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getIndex" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint32_t)(arg1)->getIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_setParentTx__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - int32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_setParentTx",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_setParentTx" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_setParentTx" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_setParentTx" "', argument " "3"" of type '" "int32_t""'"); - } - arg3 = static_cast< int32_t >(val3); - (arg1)->setParentTx(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_setParentTx__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_setParentTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_setParentTx" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_setParentTx" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - (arg1)->setParentTx(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_setParentTx(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_setParentTx__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_setParentTx__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxInRef_setParentTx'.\n" - " Possible C/C++ prototypes are:\n" - " setParentTx(TxInRef *,TxRef *,int32_t)\n" - " setParentTx(TxInRef *,TxRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getSequence(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getSequence",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getSequence" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint32_t)(arg1)->getSequence(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getScriptSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getScriptSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getScriptSize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (uint32_t)(arg1)->getScriptSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getOutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPoint result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getOutPoint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getOutPoint" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getOutPoint(); - resultobj = SWIG_NewPointerObj((new OutPoint(static_cast< const OutPoint& >(result))), SWIGTYPE_p_OutPoint, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getOutPointRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< OutPointRef > result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getOutPointRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getOutPointRef" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getOutPointRef(); - resultobj = SWIG_NewPointerObj((new OutPointRef(static_cast< const OutPointRef& >(result))), SWIGTYPE_p_OutPointRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getScript" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getScript(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getScriptRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getScriptRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getScriptRef" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getScriptRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isScriptStandard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isScriptStandard",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isScriptStandard" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)(arg1)->isScriptStandard(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isScriptCoinbase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isScriptCoinbase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isScriptCoinbase" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)(arg1)->isScriptCoinbase(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isScriptSpendCB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isScriptSpendCB",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isScriptSpendCB" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)(arg1)->isScriptSpendCB(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_isScriptUnknown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_isScriptUnknown",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_isScriptUnknown" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (bool)(arg1)->isScriptUnknown(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_serialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_serializeRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_serializeRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_serializeRef" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = (arg1)->serializeRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxInRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((uint8_t const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((uint8_t const *)arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((uint8_t const *)arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxInRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((BinaryData const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((BinaryData const &)*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((BinaryData const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxInRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxInRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize(*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxInRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxInRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_unserialize" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_7(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_11(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_15(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_10(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_6(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_14(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_5(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_13(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_9(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_12(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_4(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_0(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_unserialize__SWIG_8(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxInRef_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(TxInRef *,uint8_t const *,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxInRef *,uint8_t const *,uint32_t,TxRef *)\n" - " unserialize(TxInRef *,uint8_t const *,uint32_t)\n" - " unserialize(TxInRef *,uint8_t const *)\n" - " unserialize(TxInRef *,BinaryData const &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxInRef *,BinaryData const &,uint32_t,TxRef *)\n" - " unserialize(TxInRef *,BinaryData const &,uint32_t)\n" - " unserialize(TxInRef *,BinaryData const &)\n" - " unserialize(TxInRef *,BinaryDataRef const &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxInRef *,BinaryDataRef const &,uint32_t,TxRef *)\n" - " unserialize(TxInRef *,BinaryDataRef const &,uint32_t)\n" - " unserialize(TxInRef *,BinaryDataRef const &)\n" - " unserialize(TxInRef *,BinaryRefReader &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxInRef *,BinaryRefReader &,uint32_t,TxRef *)\n" - " unserialize(TxInRef *,BinaryRefReader &,uint32_t)\n" - " unserialize(TxInRef *,BinaryRefReader &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getSenderAddrIfAvailable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_getSenderAddrIfAvailable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getSenderAddrIfAvailable" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_getSenderAddrIfAvailable" "', argument " "2"" of type '" "BinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_getSenderAddrIfAvailable" "', argument " "2"" of type '" "BinaryData &""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - result = (bool)((TxInRef const *)arg1)->getSenderAddrIfAvailable(*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getSenderAddrIfAvailable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_getSenderAddrIfAvailable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_getSenderAddrIfAvailable" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - result = ((TxInRef const *)arg1)->getSenderAddrIfAvailable(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_getSenderAddrIfAvailable(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_getSenderAddrIfAvailable__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_getSenderAddrIfAvailable__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxInRef_getSenderAddrIfAvailable'.\n" - " Possible C/C++ prototypes are:\n" - " getSenderAddrIfAvailable(TxInRef const *,BinaryData &)\n" - " getSenderAddrIfAvailable(TxInRef const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_pprint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxInRef_pprint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_pprint" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TxInRef_pprint" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - ((TxInRef const *)arg1)->pprint(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_pprint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxInRef_pprint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_pprint" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxInRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ((TxInRef const *)arg1)->pprint(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_pprint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxInRef_pprint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_pprint" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxInRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ((TxInRef const *)arg1)->pprint(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_pprint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxInRef_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxInRef_pprint" "', argument " "1"" of type '" "TxInRef const *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - ((TxInRef const *)arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxInRef_pprint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_pprint__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxInRef_pprint__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_pprint__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxInRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxInRef_pprint__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxInRef_pprint'.\n" - " Possible C/C++ prototypes are:\n" - " pprint(TxInRef const *,ostream &,int,bool)\n" - " pprint(TxInRef const *,ostream &,int)\n" - " pprint(TxInRef const *,ostream &)\n" - " pprint(TxInRef const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxInRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxInRef *arg1 = (TxInRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxInRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxInRef, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxInRef" "', argument " "1"" of type '" "TxInRef *""'"); - } - arg1 = reinterpret_cast< TxInRef * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxInRef_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxInRef, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxOutRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxOutRef")) SWIG_fail; - result = (TxOutRef *)new TxOutRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOutRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOutRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - TxRef *arg3 = (TxRef *) 0 ; - int32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - TxOutRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_TxOutRef",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxOutRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxOutRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TxOutRef" "', argument " "3"" of type '" "TxRef *""'"); - } - arg3 = reinterpret_cast< TxRef * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TxOutRef" "', argument " "4"" of type '" "int32_t""'"); - } - arg4 = static_cast< int32_t >(val4); - result = (TxOutRef *)new TxOutRef((uint8_t const *)arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOutRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOutRef__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - TxRef *arg3 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - TxOutRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_TxOutRef",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxOutRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxOutRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TxOutRef" "', argument " "3"" of type '" "TxRef *""'"); - } - arg3 = reinterpret_cast< TxRef * >(argp3); - result = (TxOutRef *)new TxOutRef((uint8_t const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOutRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOutRef__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxOutRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_TxOutRef",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxOutRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxOutRef" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (TxOutRef *)new TxOutRef((uint8_t const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOutRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOutRef__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxOutRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxOutRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxOutRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (TxOutRef *)new TxOutRef((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxOutRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxOutRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxOutRef__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxOutRef__SWIG_4(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxOutRef__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxOutRef__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxOutRef__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxOutRef'.\n" - " Possible C/C++ prototypes are:\n" - " TxOutRef()\n" - " TxOutRef(uint8_t const *,uint32_t,TxRef *,int32_t)\n" - " TxOutRef(uint8_t const *,uint32_t,TxRef *)\n" - " TxOutRef(uint8_t const *,uint32_t)\n" - " TxOutRef(uint8_t const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getPtr" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (uint8_t *)((TxOutRef const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getSize" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (uint32_t)((TxOutRef const *)arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getValue" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (uint64_t)((TxOutRef const *)arg1)->getValue(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_isStandard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_isStandard",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_isStandard" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (bool)((TxOutRef const *)arg1)->isStandard(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_isInitialized" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (bool)((TxOutRef const *)arg1)->isInitialized(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getParentTxPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getParentTxPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getParentTxPtr" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (TxRef *)(arg1)->getParentTxPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getIndex" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (uint32_t)(arg1)->getIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_setParentTx__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - int32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_setParentTx",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_setParentTx" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_setParentTx" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_setParentTx" "', argument " "3"" of type '" "int32_t""'"); - } - arg3 = static_cast< int32_t >(val3); - (arg1)->setParentTx(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_setParentTx__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_setParentTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_setParentTx" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_setParentTx" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - (arg1)->setParentTx(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_setParentTx(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_setParentTx__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_setParentTx__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxOutRef_setParentTx'.\n" - " Possible C/C++ prototypes are:\n" - " setParentTx(TxOutRef *,TxRef *,int32_t)\n" - " setParentTx(TxOutRef *,TxRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getScriptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TXOUT_SCRIPT_TYPE result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getScriptType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getScriptType" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (TXOUT_SCRIPT_TYPE)((TxOutRef const *)arg1)->getScriptType(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getScriptSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getScriptSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getScriptSize" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (uint32_t)((TxOutRef const *)arg1)->getScriptSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getRecipientAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getRecipientAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getRecipientAddr" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (BinaryData *) &((TxOutRef const *)arg1)->getRecipientAddr(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getRecipientAddrRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getRecipientAddrRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getRecipientAddrRef" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = ((TxOutRef const *)arg1)->getRecipientAddrRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getScript" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (arg1)->getScript(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getScriptRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getScriptRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getScriptRef" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (arg1)->getScriptRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_isScriptStandard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_isScriptStandard",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_isScriptStandard" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (bool)(arg1)->isScriptStandard(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_isScriptCoinbase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_isScriptCoinbase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_isScriptCoinbase" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (bool)(arg1)->isScriptCoinbase(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_isScriptUnknown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_isScriptUnknown",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_isScriptUnknown" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (bool)(arg1)->isScriptUnknown(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_serialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_serializeRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_serializeRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_serializeRef" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = (arg1)->serializeRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxOutRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((uint8_t const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((uint8_t const *)arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((uint8_t const *)arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxOutRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((BinaryData const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((BinaryData const &)*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((BinaryData const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxOutRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize((BinaryDataRef const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - int32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TxOutRef_unserialize" "', argument " "5"" of type '" "int32_t""'"); - } - arg5 = static_cast< int32_t >(val5); - (arg1)->unserialize(*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - TxRef *arg4 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxOutRef_unserialize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TxOutRef_unserialize" "', argument " "4"" of type '" "TxRef *""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - (arg1)->unserialize(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_unserialize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_unserialize" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->unserialize(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_unserialize" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_7(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_11(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_15(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_10(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_6(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_14(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_5(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_13(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_9(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_12(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_4(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_0(self, args); - } - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_unserialize__SWIG_8(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxOutRef_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(TxOutRef *,uint8_t const *,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxOutRef *,uint8_t const *,uint32_t,TxRef *)\n" - " unserialize(TxOutRef *,uint8_t const *,uint32_t)\n" - " unserialize(TxOutRef *,uint8_t const *)\n" - " unserialize(TxOutRef *,BinaryData const &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxOutRef *,BinaryData const &,uint32_t,TxRef *)\n" - " unserialize(TxOutRef *,BinaryData const &,uint32_t)\n" - " unserialize(TxOutRef *,BinaryData const &)\n" - " unserialize(TxOutRef *,BinaryDataRef const &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxOutRef *,BinaryDataRef const &,uint32_t,TxRef *)\n" - " unserialize(TxOutRef *,BinaryDataRef const &,uint32_t)\n" - " unserialize(TxOutRef *,BinaryDataRef const &)\n" - " unserialize(TxOutRef *,BinaryRefReader &,uint32_t,TxRef *,int32_t)\n" - " unserialize(TxOutRef *,BinaryRefReader &,uint32_t,TxRef *)\n" - " unserialize(TxOutRef *,BinaryRefReader &,uint32_t)\n" - " unserialize(TxOutRef *,BinaryRefReader &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_getCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxOut result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_getCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_getCopy" "', argument " "1"" of type '" "TxOutRef const *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - result = ((TxOutRef const *)arg1)->getCopy(); - resultobj = SWIG_NewPointerObj((new TxOut(static_cast< const TxOut& >(result))), SWIGTYPE_p_TxOut, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_pprint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxOutRef_pprint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_pprint" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TxOutRef_pprint" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - (arg1)->pprint(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_pprint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxOutRef_pprint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_pprint" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxOutRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - (arg1)->pprint(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_pprint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxOutRef_pprint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_pprint" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxOutRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - (arg1)->pprint(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_pprint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxOutRef_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxOutRef_pprint" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - (arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxOutRef_pprint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_pprint__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxOutRef_pprint__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_pprint__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxOutRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxOutRef_pprint__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxOutRef_pprint'.\n" - " Possible C/C++ prototypes are:\n" - " pprint(TxOutRef *,ostream &,int,bool)\n" - " pprint(TxOutRef *,ostream &,int)\n" - " pprint(TxOutRef *,ostream &)\n" - " pprint(TxOutRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxOutRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxOutRef *arg1 = (TxOutRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxOutRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxOutRef, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxOutRef" "', argument " "1"" of type '" "TxOutRef *""'"); - } - arg1 = reinterpret_cast< TxOutRef * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxOutRef_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxOutRef, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxRef")) SWIG_fail; - result = (TxRef *)new TxRef(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxRef" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (TxRef *)new TxRef((uint8_t const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxRef__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryRefReader *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxRef" "', argument " "1"" of type '" "BinaryRefReader &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TxRef" "', argument " "1"" of type '" "BinaryRefReader &""'"); - } - arg1 = reinterpret_cast< BinaryRefReader * >(argp1); - result = (TxRef *)new TxRef(*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxRef__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxRef",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = (TxRef *)new TxRef((BinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxRef__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxRef" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TxRef" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = (TxRef *)new TxRef((BinaryDataRef const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxRef__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxRef__SWIG_1(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxRef__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxRef__SWIG_3(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_TxRef__SWIG_4(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxRef'.\n" - " Possible C/C++ prototypes are:\n" - " TxRef()\n" - " TxRef(uint8_t const *)\n" - " TxRef(BinaryRefReader &)\n" - " TxRef(BinaryData const &)\n" - " TxRef(BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getPtr" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint8_t *)((TxRef const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getSize" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)((TxRef const *)arg1)->getSize(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getVersion" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)((TxRef const *)arg1)->getVersion(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getNumTxIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getNumTxIn",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getNumTxIn" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)((TxRef const *)arg1)->getNumTxIn(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getNumTxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getNumTxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getNumTxOut" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)((TxRef const *)arg1)->getNumTxOut(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getThisHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getThisHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getThisHash" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (BinaryData *) &((TxRef const *)arg1)->getThisHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getThisHashRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getThisHashRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getThisHashRef" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = ((TxRef const *)arg1)->getThisHashRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_setMainBranch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_setMainBranch",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_setMainBranch" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_setMainBranch" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - (arg1)->setMainBranch(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_setMainBranch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_setMainBranch",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_setMainBranch" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - (arg1)->setMainBranch(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_setMainBranch(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_setMainBranch__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxRef_setMainBranch__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxRef_setMainBranch'.\n" - " Possible C/C++ prototypes are:\n" - " setMainBranch(TxRef *,bool)\n" - " setMainBranch(TxRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_isMainBranch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_isMainBranch",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_isMainBranch" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (bool)((TxRef const *)arg1)->isMainBranch(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getTxStartByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getTxStartByte",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getTxStartByte" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint64_t)(arg1)->getTxStartByte(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_setTxStartByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_setTxStartByte",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_setTxStartByte" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_setTxStartByte" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - (arg1)->setTxStartByte(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getTxInOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_getTxInOffset",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getTxInOffset" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_getTxInOffset" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (uint32_t)((TxRef const *)arg1)->getTxInOffset(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getTxOutOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_getTxOutOffset",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getTxOutOffset" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_getTxOutOffset" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (uint32_t)((TxRef const *)arg1)->getTxOutOffset(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_createFromStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxRef result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_createFromStr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_createFromStr" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->createFromStr((BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj((new TxRef(static_cast< const TxRef& >(result))), SWIGTYPE_p_TxRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - Tx result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getCopy" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = ((TxRef const *)arg1)->getCopy(); - resultobj = SWIG_NewPointerObj((new Tx(static_cast< const Tx& >(result))), SWIGTYPE_p_Tx, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getHeaderPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getHeaderPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getHeaderPtr" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (BlockHeaderRef *)((TxRef const *)arg1)->getHeaderPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_setHeaderPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - BlockHeaderRef *arg2 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_setHeaderPtr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_setHeaderPtr" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_setHeaderPtr" "', argument " "2"" of type '" "BlockHeaderRef *""'"); - } - arg2 = reinterpret_cast< BlockHeaderRef * >(argp2); - (arg1)->setHeaderPtr(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_serialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_serialize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_serialize" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = ((TxRef const *)arg1)->serialize(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_serializeRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_serializeRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_serializeRef" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = ((TxRef const *)arg1)->serializeRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_unserialize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_unserialize" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_unserialize" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - (arg1)->unserialize((uint8_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_unserialize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_unserialize" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->unserialize((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_unserialize__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_unserialize" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_unserialize" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - (arg1)->unserialize((BinaryDataRef const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_unserialize__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - BinaryRefReader *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_unserialize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_unserialize" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_unserialize" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - (arg1)->unserialize(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_unserialize(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_unserialize__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_unserialize__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_unserialize__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryRefReader, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_unserialize__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxRef_unserialize'.\n" - " Possible C/C++ prototypes are:\n" - " unserialize(TxRef *,uint8_t const *)\n" - " unserialize(TxRef *,BinaryData const &)\n" - " unserialize(TxRef *,BinaryDataRef const &)\n" - " unserialize(TxRef *,BinaryRefReader &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getLockTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getLockTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getLockTime" "', argument " "1"" of type '" "TxRef const *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)((TxRef const *)arg1)->getLockTime(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getSumOfOutputs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getSumOfOutputs",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getSumOfOutputs" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint64_t)(arg1)->getSumOfOutputs(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getTxInRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxInRef result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_getTxInRef",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getTxInRef" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_getTxInRef" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (arg1)->getTxInRef(arg2); - resultobj = SWIG_NewPointerObj((new TxInRef(static_cast< const TxInRef& >(result))), SWIGTYPE_p_TxInRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getTxOutRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxOutRef result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_getTxOutRef",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getTxOutRef" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxRef_getTxOutRef" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (arg1)->getTxOutRef(arg2); - resultobj = SWIG_NewPointerObj((new TxOutRef(static_cast< const TxOutRef& >(result))), SWIGTYPE_p_TxOutRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getBlockTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getBlockTimestamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getBlockTimestamp" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)(arg1)->getBlockTimestamp(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getBlockHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getBlockHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getBlockHeight" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)(arg1)->getBlockHeight(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_getBlockTxIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_getBlockTxIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_getBlockTxIndex" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - result = (uint32_t)(arg1)->getBlockTxIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxRef_pprint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprint" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TxRef_pprint" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - (arg1)->pprint(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - ostream *arg2 = 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxRef_pprint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprint" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxRef_pprint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - (arg1)->pprint(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprint__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_pprint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprint" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_pprint" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - (arg1)->pprint(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprint__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprint" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - (arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprint(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_pprint__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_pprint__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxRef_pprint__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxRef_pprint__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxRef_pprint'.\n" - " Possible C/C++ prototypes are:\n" - " pprint(TxRef *,ostream &,int,bool)\n" - " pprint(TxRef *,ostream &,int)\n" - " pprint(TxRef *,ostream &)\n" - " pprint(TxRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprintAlot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - ostream *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxRef_pprintAlot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprintAlot" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_ostream, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxRef_pprintAlot" "', argument " "2"" of type '" "ostream &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TxRef_pprintAlot" "', argument " "2"" of type '" "ostream &""'"); - } - arg2 = reinterpret_cast< ostream * >(argp2); - (arg1)->pprintAlot(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprintAlot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxRef_pprintAlot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxRef_pprintAlot" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - (arg1)->pprintAlot(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxRef_pprintAlot(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_pprintAlot__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ostream, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxRef_pprintAlot__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxRef_pprintAlot'.\n" - " Possible C/C++ prototypes are:\n" - " pprintAlot(TxRef *,ostream &)\n" - " pprintAlot(TxRef *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxRef" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxRef_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxRef, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_TxIOPair__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_TxIOPair")) SWIG_fail; - result = (TxIOPair *)new TxIOPair(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIOPair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIOPair__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned long long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - TxIOPair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_TxIOPair",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TxIOPair" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - result = (TxIOPair *)new TxIOPair(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIOPair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIOPair__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxIOPair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_TxIOPair",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxIOPair" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxIOPair" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (TxIOPair *)new TxIOPair(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIOPair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIOPair__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxRef *arg1 = (TxRef *) 0 ; - uint32_t arg2 ; - TxRef *arg3 = (TxRef *) 0 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - TxIOPair *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_TxIOPair",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TxIOPair" "', argument " "1"" of type '" "TxRef *""'"); - } - arg1 = reinterpret_cast< TxRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TxIOPair" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TxIOPair" "', argument " "3"" of type '" "TxRef *""'"); - } - arg3 = reinterpret_cast< TxRef * >(argp3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TxIOPair" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - result = (TxIOPair *)new TxIOPair(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxIOPair, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_TxIOPair(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_TxIOPair__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxIOPair__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxIOPair__SWIG_2(self, args); - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_TxIOPair__SWIG_3(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_TxIOPair'.\n" - " Possible C/C++ prototypes are:\n" - " TxIOPair()\n" - " TxIOPair(uint64_t)\n" - " TxIOPair(TxRef *,uint32_t)\n" - " TxIOPair(TxRef *,uint32_t,TxRef *,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxOut",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxOut" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxOut(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxIn",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxIn" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxIn(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxOutInMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxOutInMain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxOutInMain" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxOutInMain(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxInInMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxInInMain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxInInMain" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxInInMain(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxOutZC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxOutZC",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxOutZC" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxOutZC(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasTxInZC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasTxInZC",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasTxInZC" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasTxInZC(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_hasValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_hasValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_hasValue" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)((TxIOPair const *)arg1)->hasValue(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getValue" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (uint64_t)((TxIOPair const *)arg1)->getValue(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxOutRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxOutRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxOutRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxOutRef" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = ((TxIOPair const *)arg1)->getTxOutRef(); - resultobj = SWIG_NewPointerObj((new TxOutRef(static_cast< const TxOutRef& >(result))), SWIGTYPE_p_TxOutRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxInRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxInRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxInRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxInRef" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = ((TxIOPair const *)arg1)->getTxInRef(); - resultobj = SWIG_NewPointerObj((new TxInRef(static_cast< const TxInRef& >(result))), SWIGTYPE_p_TxInRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxOutRefZC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxOutRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxOutRefZC",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxOutRefZC" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = ((TxIOPair const *)arg1)->getTxOutRefZC(); - resultobj = SWIG_NewPointerObj((new TxOutRef(static_cast< const TxOutRef& >(result))), SWIGTYPE_p_TxOutRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxInRefZC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxInRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxInRefZC",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxInRefZC" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = ((TxIOPair const *)arg1)->getTxInRefZC(); - resultobj = SWIG_NewPointerObj((new TxInRef(static_cast< const TxInRef& >(result))), SWIGTYPE_p_TxInRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxRefOfOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxRefOfOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxRefOfOutput" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (TxRef *) &((TxIOPair const *)arg1)->getTxRefOfOutput(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxRefOfInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxRefOfInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxRefOfInput" "', argument " "1"" of type '" "TxIOPair const *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (TxRef *) &((TxIOPair const *)arg1)->getTxRefOfInput(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getOutPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - OutPoint result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getOutPoint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getOutPoint" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (arg1)->getOutPoint(); - resultobj = SWIG_NewPointerObj((new OutPoint(static_cast< const OutPoint& >(result))), SWIGTYPE_p_OutPoint, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_reassessValidity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pair< bool,bool > result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_reassessValidity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_reassessValidity" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (arg1)->reassessValidity(); - resultobj = SWIG_NewPointerObj((new pair< bool,bool >(static_cast< const pair< bool,bool >& >(result))), SWIGTYPE_p_pairT_bool_bool_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isTxOutFromSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isTxOutFromSelf",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isTxOutFromSelf" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isTxOutFromSelf(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutFromSelf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIOPair_setTxOutFromSelf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxOutFromSelf" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxIOPair_setTxOutFromSelf" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - (arg1)->setTxOutFromSelf(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutFromSelf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_setTxOutFromSelf",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxOutFromSelf" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - (arg1)->setTxOutFromSelf(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutFromSelf(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_TxIOPair_setTxOutFromSelf__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_setTxOutFromSelf__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIOPair_setTxOutFromSelf'.\n" - " Possible C/C++ prototypes are:\n" - " setTxOutFromSelf(TxIOPair *,bool)\n" - " setTxOutFromSelf(TxIOPair *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxHashOfInput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxHashOfInput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxHashOfInput" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (arg1)->getTxHashOfInput(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_getTxHashOfOutput(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_getTxHashOfOutput",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_getTxHashOfOutput" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (arg1)->getTxHashOfOutput(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxInRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - uint32_t arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxIOPair_setTxInRef",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxInRef" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIOPair_setTxInRef" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxIOPair_setTxInRef" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TxIOPair_setTxInRef" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - result = (bool)(arg1)->setTxInRef(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxInRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxIOPair_setTxInRef",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxInRef" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIOPair_setTxInRef" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxIOPair_setTxInRef" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - result = (bool)(arg1)->setTxInRef(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxInRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_setTxInRef__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_setTxInRef__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIOPair_setTxInRef'.\n" - " Possible C/C++ prototypes are:\n" - " setTxInRef(TxIOPair *,TxRef *,uint32_t,bool)\n" - " setTxInRef(TxIOPair *,TxRef *,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - uint32_t arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:TxIOPair_setTxOutRef",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxOutRef" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIOPair_setTxOutRef" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxIOPair_setTxOutRef" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TxIOPair_setTxOutRef" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - result = (bool)(arg1)->setTxOutRef(arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxIOPair_setTxOutRef",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_setTxOutRef" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TxIOPair_setTxOutRef" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxIOPair_setTxOutRef" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - result = (bool)(arg1)->setTxOutRef(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_setTxOutRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_setTxOutRef__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_setTxOutRef__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIOPair_setTxOutRef'.\n" - " Possible C/C++ prototypes are:\n" - " setTxOutRef(TxIOPair *,TxRef *,uint32_t,bool)\n" - " setTxOutRef(TxIOPair *,TxRef *,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isSourceUnknown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isSourceUnknown",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isSourceUnknown" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isSourceUnknown(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isStandardTxOutScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isStandardTxOutScript",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isStandardTxOutScript" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isStandardTxOutScript(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isSpent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isSpent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isSpent" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isSpent(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isUnspent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isUnspent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isUnspent" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isUnspent(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isSpendable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_isSpendable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isSpendable" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - result = (bool)(arg1)->isSpendable(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isMineButUnconfirmed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:TxIOPair_isMineButUnconfirmed",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isMineButUnconfirmed" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxIOPair_isMineButUnconfirmed" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TxIOPair_isMineButUnconfirmed" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - result = (bool)(arg1)->isMineButUnconfirmed(arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isMineButUnconfirmed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:TxIOPair_isMineButUnconfirmed",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_isMineButUnconfirmed" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TxIOPair_isMineButUnconfirmed" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (bool)(arg1)->isMineButUnconfirmed(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_isMineButUnconfirmed(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_isMineButUnconfirmed__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_TxIOPair_isMineButUnconfirmed__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'TxIOPair_isMineButUnconfirmed'.\n" - " Possible C/C++ prototypes are:\n" - " isMineButUnconfirmed(TxIOPair *,uint32_t,uint32_t)\n" - " isMineButUnconfirmed(TxIOPair *,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_clearZCFields(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_clearZCFields",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_clearZCFields" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - (arg1)->clearZCFields(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_TxIOPair_pprintOneLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:TxIOPair_pprintOneLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TxIOPair_pprintOneLine" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - (arg1)->pprintOneLine(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_TxIOPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - TxIOPair *arg1 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_TxIOPair",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TxIOPair, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TxIOPair" "', argument " "1"" of type '" "TxIOPair *""'"); - } - arg1 = reinterpret_cast< TxIOPair * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *TxIOPair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_TxIOPair, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_LedgerEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_LedgerEntry")) SWIG_fail; - result = (LedgerEntry *)new LedgerEntry(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LedgerEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_LedgerEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - int64_t arg2 ; - uint32_t arg3 ; - BinaryData *arg4 = 0 ; - uint32_t arg5 ; - uint64_t arg6 ; - bool arg7 ; - bool arg8 ; - BinaryData bdObj1 ; - long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - BinaryData bdObj4 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned long long val6 ; - int ecode6 = 0 ; - bool val7 ; - int ecode7 = 0 ; - bool val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - LedgerEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:new_LedgerEntry",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LedgerEntry" "', argument " "2"" of type '" "int64_t""'"); - } - arg2 = static_cast< int64_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LedgerEntry" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LedgerEntry" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_long_SS_long(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LedgerEntry" "', argument " "6"" of type '" "uint64_t""'"); - } - arg6 = static_cast< uint64_t >(val6); - ecode7 = SWIG_AsVal_bool(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LedgerEntry" "', argument " "7"" of type '" "bool""'"); - } - arg7 = static_cast< bool >(val7); - ecode8 = SWIG_AsVal_bool(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_LedgerEntry" "', argument " "8"" of type '" "bool""'"); - } - arg8 = static_cast< bool >(val8); - result = (LedgerEntry *)new LedgerEntry((BinaryData const &)*arg1,arg2,arg3,(BinaryData const &)*arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LedgerEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_LedgerEntry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - int64_t arg2 ; - uint32_t arg3 ; - BinaryData *arg4 = 0 ; - uint32_t arg5 ; - uint64_t arg6 ; - bool arg7 ; - BinaryData bdObj1 ; - long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - BinaryData bdObj4 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned long long val6 ; - int ecode6 = 0 ; - bool val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - LedgerEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_LedgerEntry",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LedgerEntry" "', argument " "2"" of type '" "int64_t""'"); - } - arg2 = static_cast< int64_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LedgerEntry" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LedgerEntry" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_long_SS_long(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LedgerEntry" "', argument " "6"" of type '" "uint64_t""'"); - } - arg6 = static_cast< uint64_t >(val6); - ecode7 = SWIG_AsVal_bool(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_LedgerEntry" "', argument " "7"" of type '" "bool""'"); - } - arg7 = static_cast< bool >(val7); - result = (LedgerEntry *)new LedgerEntry((BinaryData const &)*arg1,arg2,arg3,(BinaryData const &)*arg4,arg5,arg6,arg7); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LedgerEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_LedgerEntry__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - int64_t arg2 ; - uint32_t arg3 ; - BinaryData *arg4 = 0 ; - uint32_t arg5 ; - uint64_t arg6 ; - BinaryData bdObj1 ; - long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - BinaryData bdObj4 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned long long val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - LedgerEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_LedgerEntry",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LedgerEntry" "', argument " "2"" of type '" "int64_t""'"); - } - arg2 = static_cast< int64_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LedgerEntry" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LedgerEntry" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_long_SS_long(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_LedgerEntry" "', argument " "6"" of type '" "uint64_t""'"); - } - arg6 = static_cast< uint64_t >(val6); - result = (LedgerEntry *)new LedgerEntry((BinaryData const &)*arg1,arg2,arg3,(BinaryData const &)*arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LedgerEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_LedgerEntry__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - int64_t arg2 ; - uint32_t arg3 ; - BinaryData *arg4 = 0 ; - uint32_t arg5 ; - BinaryData bdObj1 ; - long long val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - BinaryData bdObj4 ; - unsigned int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - LedgerEntry *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_LedgerEntry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_LedgerEntry" "', argument " "2"" of type '" "int64_t""'"); - } - arg2 = static_cast< int64_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_LedgerEntry" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_LedgerEntry" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - result = (LedgerEntry *)new LedgerEntry((BinaryData const &)*arg1,arg2,arg3,(BinaryData const &)*arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LedgerEntry, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_LedgerEntry(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[9]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 8); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_LedgerEntry__SWIG_0(self, args); - } - if (argc == 5) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_LedgerEntry__SWIG_4(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_LedgerEntry__SWIG_3(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_LedgerEntry__SWIG_2(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_LedgerEntry__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_LedgerEntry'.\n" - " Possible C/C++ prototypes are:\n" - " LedgerEntry()\n" - " LedgerEntry(BinaryData const &,int64_t,uint32_t,BinaryData const &,uint32_t,uint64_t,bool,bool)\n" - " LedgerEntry(BinaryData const &,int64_t,uint32_t,BinaryData const &,uint32_t,uint64_t,bool)\n" - " LedgerEntry(BinaryData const &,int64_t,uint32_t,BinaryData const &,uint32_t,uint64_t)\n" - " LedgerEntry(BinaryData const &,int64_t,uint32_t,BinaryData const &,uint32_t)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getAddrStr20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getAddrStr20",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getAddrStr20" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (BinaryData *) &((LedgerEntry const *)arg1)->getAddrStr20(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getValue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getValue" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (int64_t)((LedgerEntry const *)arg1)->getValue(); - resultobj = SWIG_From_long_SS_long(static_cast< long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getBlockNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getBlockNum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getBlockNum" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (uint32_t)((LedgerEntry const *)arg1)->getBlockNum(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getTxHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getTxHash",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getTxHash" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (BinaryData *) &((LedgerEntry const *)arg1)->getTxHash(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getIndex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getIndex" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (uint32_t)((LedgerEntry const *)arg1)->getIndex(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_getTxTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_getTxTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_getTxTime" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (uint32_t)((LedgerEntry const *)arg1)->getTxTime(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_isValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_isValid" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (bool)((LedgerEntry const *)arg1)->isValid(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_isSentToSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_isSentToSelf",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_isSentToSelf" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (bool)((LedgerEntry const *)arg1)->isSentToSelf(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_isChangeBack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_isChangeBack",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_isChangeBack" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - result = (bool)((LedgerEntry const *)arg1)->isChangeBack(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_setAddr20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:LedgerEntry_setAddr20",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_setAddr20" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - (arg1)->setAddr20((BinaryData const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_setValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:LedgerEntry_setValid",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_setValid" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LedgerEntry_setValid" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - (arg1)->setValid(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_setValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_setValid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_setValid" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - (arg1)->setValid(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_setValid(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_LedgerEntry, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_LedgerEntry_setValid__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_LedgerEntry, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_LedgerEntry_setValid__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'LedgerEntry_setValid'.\n" - " Possible C/C++ prototypes are:\n" - " setValid(LedgerEntry *,bool)\n" - " setValid(LedgerEntry *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_changeBlkNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:LedgerEntry_changeBlkNum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_changeBlkNum" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LedgerEntry_changeBlkNum" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->changeBlkNum(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - LedgerEntry *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:LedgerEntry___lt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry___lt__" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LedgerEntry, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LedgerEntry___lt__" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LedgerEntry___lt__" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - arg2 = reinterpret_cast< LedgerEntry * >(argp2); - result = (bool)((LedgerEntry const *)arg1)->operator <((LedgerEntry const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - LedgerEntry *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:LedgerEntry___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry___eq__" "', argument " "1"" of type '" "LedgerEntry const *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LedgerEntry, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LedgerEntry___eq__" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "LedgerEntry___eq__" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - arg2 = reinterpret_cast< LedgerEntry * >(argp2); - result = (bool)((LedgerEntry const *)arg1)->operator ==((LedgerEntry const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_pprint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_pprint",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_pprint" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - (arg1)->pprint(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_LedgerEntry_pprintOneLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:LedgerEntry_pprintOneLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LedgerEntry_pprintOneLine" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - (arg1)->pprintOneLine(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_LedgerEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - LedgerEntry *arg1 = (LedgerEntry *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_LedgerEntry",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_LedgerEntry, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LedgerEntry" "', argument " "1"" of type '" "LedgerEntry *""'"); - } - arg1 = reinterpret_cast< LedgerEntry * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *LedgerEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_LedgerEntry, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BtcAddress")) SWIG_fail; - result = (BtcAddress *)new BtcAddress(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_BtcAddress",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BtcAddress" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BtcAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BtcAddress" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_BtcAddress" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - result = (BtcAddress *)new BtcAddress(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - uint32_t arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_BtcAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BtcAddress" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BtcAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BtcAddress" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - result = (BtcAddress *)new BtcAddress(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - uint32_t arg2 ; - uint32_t arg3 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_BtcAddress",&obj0,&obj1,&obj2)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BtcAddress" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BtcAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - result = (BtcAddress *)new BtcAddress(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - uint32_t arg2 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_BtcAddress",&obj0,&obj1)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BtcAddress" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (BtcAddress *)new BtcAddress(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - PyObject * obj0 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_BtcAddress",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - result = (BtcAddress *)new BtcAddress(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_BtcAddress(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_BtcAddress__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_BtcAddress__SWIG_5(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_BtcAddress__SWIG_4(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_BtcAddress__SWIG_3(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_BtcAddress__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_BtcAddress__SWIG_1(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_BtcAddress'.\n" - " Possible C/C++ prototypes are:\n" - " BtcAddress()\n" - " BtcAddress(BinaryData,uint32_t,uint32_t,uint32_t,uint32_t)\n" - " BtcAddress(BinaryData,uint32_t,uint32_t,uint32_t)\n" - " BtcAddress(BinaryData,uint32_t,uint32_t)\n" - " BtcAddress(BinaryData,uint32_t)\n" - " BtcAddress(BinaryData)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getAddrStr20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getAddrStr20",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getAddrStr20" "', argument " "1"" of type '" "BtcAddress const *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (BinaryData *) &((BtcAddress const *)arg1)->getAddrStr20(); - { - resultobj = PyString_FromStringAndSize((char*)(result->getPtr()), result->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFirstBlockNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getFirstBlockNum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getFirstBlockNum" "', argument " "1"" of type '" "BtcAddress const *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint32_t)((BtcAddress const *)arg1)->getFirstBlockNum(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFirstTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getFirstTimestamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getFirstTimestamp" "', argument " "1"" of type '" "BtcAddress const *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint32_t)((BtcAddress const *)arg1)->getFirstTimestamp(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getLastBlockNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getLastBlockNum",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getLastBlockNum" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint32_t)(arg1)->getLastBlockNum(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getLastTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getLastTimestamp",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getLastTimestamp" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint32_t)(arg1)->getLastTimestamp(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setFirstBlockNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_setFirstBlockNum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setFirstBlockNum" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_setFirstBlockNum" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setFirstBlockNum(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setFirstTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_setFirstTimestamp",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setFirstTimestamp" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_setFirstTimestamp" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setFirstTimestamp(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setLastBlockNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_setLastBlockNum",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setLastBlockNum" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_setLastBlockNum" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setLastBlockNum(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setLastTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_setLastTimestamp",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setLastTimestamp" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_setLastTimestamp" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->setLastTimestamp(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_isUnused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_isUnused",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_isUnused" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (bool)(arg1)->isUnused(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setUnused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_setUnused",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setUnused" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - (arg1)->setUnused(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_setAddrStr20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_setAddrStr20",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_setAddrStr20" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->setAddrStr20(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_sortLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_sortLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_sortLedger" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - (arg1)->sortLedger(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_removeInvalidEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_removeInvalidEntries",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_removeInvalidEntries" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint32_t)(arg1)->removeInvalidEntries(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFullBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getFullBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getFullBalance" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint64_t)(arg1)->getFullBalance(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getSpendableBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getSpendableBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getSpendableBalance" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (uint64_t)(arg1)->getSpendableBalance(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getUnconfirmedBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_getUnconfirmedBalance",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getUnconfirmedBalance" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_getUnconfirmedBalance" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (uint64_t)(arg1)->getUnconfirmedBalance(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFullTxOutList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_getFullTxOutList",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getFullTxOutList" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_getFullTxOutList" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (arg1)->getFullTxOutList(arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFullTxOutList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getFullTxOutList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getFullTxOutList" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (arg1)->getFullTxOutList(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getFullTxOutList(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcAddress_getFullTxOutList__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcAddress_getFullTxOutList__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcAddress_getFullTxOutList'.\n" - " Possible C/C++ prototypes are:\n" - " getFullTxOutList(BtcAddress *,uint32_t)\n" - " getFullTxOutList(BtcAddress *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getSpendableTxOutList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_getSpendableTxOutList",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getSpendableTxOutList" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcAddress_getSpendableTxOutList" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (arg1)->getSpendableTxOutList(arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getSpendableTxOutList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getSpendableTxOutList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getSpendableTxOutList" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (arg1)->getSpendableTxOutList(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getSpendableTxOutList(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcAddress_getSpendableTxOutList__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcAddress_getSpendableTxOutList__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcAddress_getSpendableTxOutList'.\n" - " Possible C/C++ prototypes are:\n" - " getSpendableTxOutList(BtcAddress *,uint32_t)\n" - " getSpendableTxOutList(BtcAddress *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_clearZeroConfPool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_clearZeroConfPool",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_clearZeroConfPool" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - (arg1)->clearZeroConfPool(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getTxLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getTxLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getTxLedger" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (std::vector< LedgerEntry > *) &(arg1)->getTxLedger(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getZeroConfLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getZeroConfLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getZeroConfLedger" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (std::vector< LedgerEntry > *) &(arg1)->getZeroConfLedger(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_getTxIOList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxIOPair * > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_getTxIOList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_getTxIOList" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - result = (std::vector< TxIOPair * > *) &(arg1)->getTxIOList(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addTxIO__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - TxIOPair *arg2 = (TxIOPair *) 0 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcAddress_addTxIO",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addTxIO" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair *""'"); - } - arg2 = reinterpret_cast< TxIOPair * >(argp2); - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcAddress_addTxIO" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - (arg1)->addTxIO(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addTxIO__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - TxIOPair *arg2 = (TxIOPair *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_addTxIO",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addTxIO" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxIOPair, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair *""'"); - } - arg2 = reinterpret_cast< TxIOPair * >(argp2); - (arg1)->addTxIO(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addTxIO__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - TxIOPair *arg2 = 0 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcAddress_addTxIO",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addTxIO" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxIOPair, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair &""'"); - } - arg2 = reinterpret_cast< TxIOPair * >(argp2); - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcAddress_addTxIO" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - (arg1)->addTxIO(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addTxIO__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - TxIOPair *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_addTxIO",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addTxIO" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxIOPair, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcAddress_addTxIO" "', argument " "2"" of type '" "TxIOPair &""'"); - } - arg2 = reinterpret_cast< TxIOPair * >(argp2); - (arg1)->addTxIO(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addTxIO(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcAddress_addTxIO__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcAddress_addTxIO__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcAddress_addTxIO__SWIG_2(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxIOPair, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcAddress_addTxIO__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcAddress_addTxIO'.\n" - " Possible C/C++ prototypes are:\n" - " addTxIO(BtcAddress *,TxIOPair *,bool)\n" - " addTxIO(BtcAddress *,TxIOPair *)\n" - " addTxIO(BtcAddress *,TxIOPair &,bool)\n" - " addTxIO(BtcAddress *,TxIOPair &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addLedgerEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - LedgerEntry *arg2 = 0 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcAddress_addLedgerEntry",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addLedgerEntry" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LedgerEntry, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addLedgerEntry" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcAddress_addLedgerEntry" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - arg2 = reinterpret_cast< LedgerEntry * >(argp2); - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcAddress_addLedgerEntry" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - (arg1)->addLedgerEntry((LedgerEntry const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addLedgerEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - LedgerEntry *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcAddress_addLedgerEntry",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_addLedgerEntry" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_LedgerEntry, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcAddress_addLedgerEntry" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcAddress_addLedgerEntry" "', argument " "2"" of type '" "LedgerEntry const &""'"); - } - arg2 = reinterpret_cast< LedgerEntry * >(argp2); - (arg1)->addLedgerEntry((LedgerEntry const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_addLedgerEntry(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_LedgerEntry, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcAddress_addLedgerEntry__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_LedgerEntry, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcAddress_addLedgerEntry__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcAddress_addLedgerEntry'.\n" - " Possible C/C++ prototypes are:\n" - " addLedgerEntry(BtcAddress *,LedgerEntry const &,bool)\n" - " addLedgerEntry(BtcAddress *,LedgerEntry const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcAddress_pprintLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcAddress_pprintLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcAddress_pprintLedger" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - (arg1)->pprintLedger(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BtcAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcAddress *arg1 = (BtcAddress *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BtcAddress",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcAddress, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BtcAddress" "', argument " "1"" of type '" "BtcAddress *""'"); - } - arg1 = reinterpret_cast< BtcAddress * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BtcAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BtcAddress, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_BtcWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BtcWallet")) SWIG_fail; - result = (BtcWallet *)new BtcWallet(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcWallet, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BtcAddress *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_addAddress",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcAddress, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_addAddress" "', argument " "2"" of type '" "BtcAddress const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_addAddress" "', argument " "2"" of type '" "BtcAddress const &""'"); - } - arg2 = reinterpret_cast< BtcAddress * >(argp2); - (arg1)->addAddress((BtcAddress const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - uint32_t arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:BtcWallet_addAddress",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_addAddress" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BtcWallet_addAddress" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BtcWallet_addAddress" "', argument " "6"" of type '" "uint32_t""'"); - } - arg6 = static_cast< uint32_t >(val6); - (arg1)->addAddress(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:BtcWallet_addAddress",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_addAddress" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BtcWallet_addAddress" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - (arg1)->addAddress(arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BtcWallet_addAddress",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_addAddress" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - (arg1)->addAddress(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcWallet_addAddress",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->addAddress(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_addAddress",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->addAddress(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 6); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BtcAddress, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_0(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_5(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_4(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_3(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_2(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_addAddress__SWIG_1(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_addAddress'.\n" - " Possible C/C++ prototypes are:\n" - " addAddress(BtcWallet *,BtcAddress const &)\n" - " addAddress(BtcWallet *,BinaryData,uint32_t,uint32_t,uint32_t,uint32_t)\n" - " addAddress(BtcWallet *,BinaryData,uint32_t,uint32_t,uint32_t)\n" - " addAddress(BtcWallet *,BinaryData,uint32_t,uint32_t)\n" - " addAddress(BtcWallet *,BinaryData,uint32_t)\n" - " addAddress(BtcWallet *,BinaryData)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress_BtcAddress_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BtcAddress *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_addAddress_BtcAddress_",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress_BtcAddress_" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcAddress, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_addAddress_BtcAddress_" "', argument " "2"" of type '" "BtcAddress const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_addAddress_BtcAddress_" "', argument " "2"" of type '" "BtcAddress const &""'"); - } - arg2 = reinterpret_cast< BtcAddress * >(argp2); - (arg1)->addAddress_BtcAddress_((BtcAddress const &)*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress_1_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_addAddress_1_",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress_1_" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - (arg1)->addAddress_1_(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress_3_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BtcWallet_addAddress_3_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress_3_" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress_3_" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_addAddress_3_" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - (arg1)->addAddress_3_(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_addAddress_5_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - uint32_t arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:BtcWallet_addAddress_5_",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_addAddress_5_" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_addAddress_5_" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_addAddress_5_" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BtcWallet_addAddress_5_" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BtcWallet_addAddress_5_" "', argument " "6"" of type '" "uint32_t""'"); - } - arg6 = static_cast< uint32_t >(val6); - (arg1)->addAddress_5_(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_hasAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_hasAddr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_hasAddr" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (bool)(arg1)->hasAddr((BinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_isMineBulkFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - TxRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - pair< bool,bool > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_isMineBulkFilter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_isMineBulkFilter" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_isMineBulkFilter" "', argument " "2"" of type '" "TxRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_isMineBulkFilter" "', argument " "2"" of type '" "TxRef &""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - result = (arg1)->isMineBulkFilter(*arg2); - resultobj = SWIG_NewPointerObj((new pair< bool,bool >(static_cast< const pair< bool,bool >& >(result))), SWIGTYPE_p_pairT_bool_bool_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanTx__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - TxRef *arg2 = 0 ; - uint32_t arg3 ; - uint32_t arg4 ; - uint32_t arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:BtcWallet_scanTx",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_scanTx" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_scanTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_scanTx" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BtcWallet_scanTx" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - (arg1)->scanTx(*arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanTx__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - TxRef *arg2 = 0 ; - uint32_t arg3 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BtcWallet_scanTx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_scanTx" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_scanTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BtcWallet_scanTx" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - (arg1)->scanTx(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanTx__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - TxRef *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcWallet_scanTx",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_scanTx" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_scanTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->scanTx(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanTx__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - TxRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_scanTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_scanTx" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanTx" "', argument " "2"" of type '" "TxRef &""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - (arg1)->scanTx(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanTx(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 5); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_scanTx__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_scanTx__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_scanTx__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_TxRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_scanTx__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_scanTx'.\n" - " Possible C/C++ prototypes are:\n" - " scanTx(BtcWallet *,TxRef &,uint32_t,uint32_t,uint32_t)\n" - " scanTx(BtcWallet *,TxRef &,uint32_t,uint32_t)\n" - " scanTx(BtcWallet *,TxRef &,uint32_t)\n" - " scanTx(BtcWallet *,TxRef &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_scanNonStdTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - TxRef *arg4 = 0 ; - uint32_t arg5 ; - BtcAddress *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:BtcWallet_scanNonStdTx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_scanNonStdTx" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_scanNonStdTx" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_scanNonStdTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_TxRef, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BtcWallet_scanNonStdTx" "', argument " "4"" of type '" "TxRef &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanNonStdTx" "', argument " "4"" of type '" "TxRef &""'"); - } - arg4 = reinterpret_cast< TxRef * >(argp4); - ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BtcWallet_scanNonStdTx" "', argument " "5"" of type '" "uint32_t""'"); - } - arg5 = static_cast< uint32_t >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_BtcAddress, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "BtcWallet_scanNonStdTx" "', argument " "6"" of type '" "BtcAddress &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcWallet_scanNonStdTx" "', argument " "6"" of type '" "BtcAddress &""'"); - } - arg6 = reinterpret_cast< BtcAddress * >(argp6); - (arg1)->scanNonStdTx(arg2,arg3,*arg4,arg5,*arg6); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getFullBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getFullBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getFullBalance" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (uint64_t)(arg1)->getFullBalance(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getSpendableBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getSpendableBalance",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getSpendableBalance" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (uint64_t)(arg1)->getSpendableBalance(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getUnconfirmedBalance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getUnconfirmedBalance",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getUnconfirmedBalance" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_getUnconfirmedBalance" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (uint64_t)(arg1)->getUnconfirmedBalance(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getFullTxOutList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getFullTxOutList",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getFullTxOutList" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_getFullTxOutList" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (arg1)->getFullTxOutList(arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getFullTxOutList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getFullTxOutList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getFullTxOutList" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (arg1)->getFullTxOutList(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getFullTxOutList(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getFullTxOutList__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_getFullTxOutList__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_getFullTxOutList'.\n" - " Possible C/C++ prototypes are:\n" - " getFullTxOutList(BtcWallet *,uint32_t)\n" - " getFullTxOutList(BtcWallet *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getSpendableTxOutList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getSpendableTxOutList",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getSpendableTxOutList" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_getSpendableTxOutList" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (arg1)->getSpendableTxOutList(arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getSpendableTxOutList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< UnspentTxOut > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getSpendableTxOutList",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getSpendableTxOutList" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (arg1)->getSpendableTxOutList(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getSpendableTxOutList(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getSpendableTxOutList__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_getSpendableTxOutList__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_getSpendableTxOutList'.\n" - " Possible C/C++ prototypes are:\n" - " getSpendableTxOutList(BtcWallet *,uint32_t)\n" - " getSpendableTxOutList(BtcWallet *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_clearZeroConfPool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_clearZeroConfPool",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_clearZeroConfPool" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - (arg1)->clearZeroConfPool(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getNumAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getNumAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getNumAddr" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (uint32_t)(arg1)->getNumAddr(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getAddrByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getAddrByIndex",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getAddrByIndex" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_getAddrByIndex" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (BtcAddress *) &(arg1)->getAddrByIndex(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getAddrByHash160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BtcAddress *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getAddrByHash160",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getAddrByHash160" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (BtcAddress *) &(arg1)->getAddrByHash160((BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcAddress, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_sortLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_sortLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_sortLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - (arg1)->sortLedger(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_removeInvalidEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_removeInvalidEntries",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_removeInvalidEntries" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (uint32_t)(arg1)->removeInvalidEntries(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getZeroConfLedger__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getZeroConfLedger",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getZeroConfLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_getZeroConfLedger" "', argument " "2"" of type '" "BinaryData const *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - result = (arg1)->getZeroConfLedger((BinaryData const *)arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getZeroConfLedger__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getZeroConfLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getZeroConfLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (arg1)->getZeroConfLedger(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getZeroConfLedger(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getZeroConfLedger__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getZeroConfLedger__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_getZeroConfLedger'.\n" - " Possible C/C++ prototypes are:\n" - " getZeroConfLedger(BtcWallet *,BinaryData const *)\n" - " getZeroConfLedger(BtcWallet *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getTxLedger__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData *arg2 = (BinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< LedgerEntry > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_getTxLedger",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getTxLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BinaryData, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcWallet_getTxLedger" "', argument " "2"" of type '" "BinaryData const *""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - result = (arg1)->getTxLedger((BinaryData const *)arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getTxLedger__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< LedgerEntry > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getTxLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getTxLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (arg1)->getTxLedger(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getTxLedger(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getTxLedger__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_getTxLedger__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_getTxLedger'.\n" - " Possible C/C++ prototypes are:\n" - " getTxLedger(BtcWallet *,BinaryData const *)\n" - " getTxLedger(BtcWallet *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getTxIOMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - map< OutPoint,TxIOPair > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getTxIOMap",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getTxIOMap" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (map< OutPoint,TxIOPair > *) &(arg1)->getTxIOMap(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapT_OutPoint_TxIOPair_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_getNonStdTxIO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - map< OutPoint,TxIOPair > *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_getNonStdTxIO",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_getNonStdTxIO" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - result = (map< OutPoint,TxIOPair > *) &(arg1)->getNonStdTxIO(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_mapT_OutPoint_TxIOPair_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_isOutPointMine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - BinaryData *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcWallet_isOutPointMine",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_isOutPointMine" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_isOutPointMine" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - result = (bool)(arg1)->isOutPointMine((BinaryData const &)*arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_pprintLedger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_pprintLedger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_pprintLedger" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - (arg1)->pprintLedger(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_pprintAlot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcWallet_pprintAlot",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_pprintAlot" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_pprintAlot" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcWallet_pprintAlot" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - (arg1)->pprintAlot(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_pprintAlot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcWallet_pprintAlot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_pprintAlot" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcWallet_pprintAlot" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - (arg1)->pprintAlot(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_pprintAlot__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcWallet_pprintAlot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcWallet_pprintAlot" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - (arg1)->pprintAlot(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcWallet_pprintAlot(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcWallet_pprintAlot__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_pprintAlot__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcWallet_pprintAlot__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcWallet_pprintAlot'.\n" - " Possible C/C++ prototypes are:\n" - " pprintAlot(BtcWallet *,uint32_t,bool)\n" - " pprintAlot(BtcWallet *,uint32_t)\n" - " pprintAlot(BtcWallet *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BtcWallet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcWallet *arg1 = (BtcWallet *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BtcWallet",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcWallet, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BtcWallet" "', argument " "1"" of type '" "BtcWallet *""'"); - } - arg1 = reinterpret_cast< BtcWallet * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BtcWallet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BtcWallet, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_ZeroConfData_txref__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - TxRef *arg2 = (TxRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:ZeroConfData_txref__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_txref__set" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_TxRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroConfData_txref__set" "', argument " "2"" of type '" "TxRef *""'"); - } - arg2 = reinterpret_cast< TxRef * >(argp2); - if (arg1) (arg1)->txref_ = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ZeroConfData_txref__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:ZeroConfData_txref__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_txref__get" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - result = (TxRef *)& ((arg1)->txref_); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ZeroConfData_txtime__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:ZeroConfData_txtime__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_txtime__set" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ZeroConfData_txtime__set" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->txtime_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ZeroConfData_txtime__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:ZeroConfData_txtime__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_txtime__get" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - result = (uint64_t) ((arg1)->txtime_); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ZeroConfData_iter__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - list< BinaryData >::iterator arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:ZeroConfData_iter__set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_iter__set" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_listT_BinaryData_t__iterator, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZeroConfData_iter__set" "', argument " "2"" of type '" "list< BinaryData >::iterator""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZeroConfData_iter__set" "', argument " "2"" of type '" "list< BinaryData >::iterator""'"); - } else { - list< BinaryData >::iterator * temp = reinterpret_cast< list< BinaryData >::iterator * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->iter_ = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ZeroConfData_iter__get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - list< BinaryData >::iterator result; - - if (!PyArg_ParseTuple(args,(char *)"O:ZeroConfData_iter__get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZeroConfData_iter__get" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - result = ((arg1)->iter_); - resultobj = SWIG_NewPointerObj((new list< BinaryData >::iterator(static_cast< const list< BinaryData >::iterator& >(result))), SWIGTYPE_p_listT_BinaryData_t__iterator, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_ZeroConfData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_ZeroConfData")) SWIG_fail; - result = (ZeroConfData *)new ZeroConfData(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ZeroConfData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_ZeroConfData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - ZeroConfData *arg1 = (ZeroConfData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_ZeroConfData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ZeroConfData, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZeroConfData" "', argument " "1"" of type '" "ZeroConfData *""'"); - } - arg1 = reinterpret_cast< ZeroConfData * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *ZeroConfData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_ZeroConfData, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_GetInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":BlockDataManager_FullRAM_GetInstance")) SWIG_fail; - result = (BlockDataManager_FullRAM *) &BlockDataManager_FullRAM::GetInstance(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_isInitialized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_isInitialized",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_isInitialized" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (bool)(arg1)->isInitialized(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_SetBtcNetworkParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - BinaryData *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - BinaryData bdObj4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockDataManager_FullRAM_SetBtcNetworkParams",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_SetBtcNetworkParams" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - (arg1)->SetBtcNetworkParams((BinaryData const &)*arg2,(BinaryData const &)*arg3,(BinaryData const &)*arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_SelectNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_SelectNetwork",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_SelectNetwork" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_SelectNetwork" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - (arg1)->SelectNetwork(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_Reset",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_Reset" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - (arg1)->Reset(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getNumConfirmations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getNumConfirmations",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getNumConfirmations" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - result = (int32_t)(arg1)->getNumConfirmations(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getTopBlockHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getTopBlockHeader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getTopBlockHeader" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (BlockHeaderRef *) &(arg1)->getTopBlockHeader(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getGenesisBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getGenesisBlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getGenesisBlock" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (BlockHeaderRef *) &(arg1)->getGenesisBlock(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getHeaderByHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getHeaderByHeight",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getHeaderByHeight" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlockDataManager_FullRAM_getHeaderByHeight" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (BlockHeaderRef *)(arg1)->getHeaderByHeight(arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getHeaderByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BlockHeaderRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getHeaderByHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getHeaderByHash" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (BlockHeaderRef *)(arg1)->getHeaderByHash((BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getTxByHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxRef *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getTxByHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getTxByHash" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (TxRef *)(arg1)->getTxByHash((BinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TxRef, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getBlockfilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getBlockfilePath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getBlockfilePath" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (arg1)->getBlockfilePath(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_parseNewBlockData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryRefReader *arg2 = 0 ; - uint64_t *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_parseNewBlockData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_parseNewBlockData" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryRefReader, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_parseNewBlockData" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_parseNewBlockData" "', argument " "2"" of type '" "BinaryRefReader &""'"); - } - arg2 = reinterpret_cast< BinaryRefReader * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockDataManager_FullRAM_parseNewBlockData" "', argument " "3"" of type '" "uint64_t &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_parseNewBlockData" "', argument " "3"" of type '" "uint64_t &""'"); - } - arg3 = reinterpret_cast< uint64_t * >(argp3); - result = (bool)(arg1)->parseNewBlockData(*arg2,*arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData arg2 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SwigValueWrapper< std::vector< bool > > result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_addNewBlockData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_addNewBlockData" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_addNewBlockData" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = (arg1)->addNewBlockData(arg2,arg3); - resultobj = SWIG_NewPointerObj((new std::vector< bool >(static_cast< const std::vector< bool >& >(result))), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SwigValueWrapper< std::vector< bool > > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_addNewBlockData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_addNewBlockData" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg2 = BinaryData((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - } - result = (arg1)->addNewBlockData(arg2); - resultobj = SWIG_NewPointerObj((new std::vector< bool >(static_cast< const std::vector< bool >& >(result))), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_addNewBlockData__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_addNewBlockData__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_addNewBlockData'.\n" - " Possible C/C++ prototypes are:\n" - " addNewBlockData(BlockDataManager_FullRAM *,BinaryData,bool)\n" - " addNewBlockData(BlockDataManager_FullRAM *,BinaryData)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockDataRef__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryDataRef arg2 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SwigValueWrapper< std::vector< bool > > result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_addNewBlockDataRef",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "2"" of type '" "BinaryDataRef""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "2"" of type '" "BinaryDataRef""'"); - } else { - BinaryDataRef * temp = reinterpret_cast< BinaryDataRef * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = (arg1)->addNewBlockDataRef(arg2,arg3); - resultobj = SWIG_NewPointerObj((new std::vector< bool >(static_cast< const std::vector< bool >& >(result))), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockDataRef__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryDataRef arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SwigValueWrapper< std::vector< bool > > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_addNewBlockDataRef",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "2"" of type '" "BinaryDataRef""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_addNewBlockDataRef" "', argument " "2"" of type '" "BinaryDataRef""'"); - } else { - BinaryDataRef * temp = reinterpret_cast< BinaryDataRef * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - result = (arg1)->addNewBlockDataRef(arg2); - resultobj = SWIG_NewPointerObj((new std::vector< bool >(static_cast< const std::vector< bool >& >(result))), SWIGTYPE_p_std__vectorT_bool_std__allocatorT_bool_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewBlockDataRef(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_addNewBlockDataRef__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_addNewBlockDataRef__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_addNewBlockDataRef'.\n" - " Possible C/C++ prototypes are:\n" - " addNewBlockDataRef(BlockDataManager_FullRAM *,BinaryDataRef,bool)\n" - " addNewBlockDataRef(BlockDataManager_FullRAM *,BinaryDataRef)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_reassessAfterReorg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BlockHeaderRef *arg2 = (BlockHeaderRef *) 0 ; - BlockHeaderRef *arg3 = (BlockHeaderRef *) 0 ; - BlockHeaderRef *arg4 = (BlockHeaderRef *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockDataManager_FullRAM_reassessAfterReorg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_reassessAfterReorg" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_reassessAfterReorg" "', argument " "2"" of type '" "BlockHeaderRef *""'"); - } - arg2 = reinterpret_cast< BlockHeaderRef * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlockDataManager_FullRAM_reassessAfterReorg" "', argument " "3"" of type '" "BlockHeaderRef *""'"); - } - arg3 = reinterpret_cast< BlockHeaderRef * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_BlockHeaderRef, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BlockDataManager_FullRAM_reassessAfterReorg" "', argument " "4"" of type '" "BlockHeaderRef *""'"); - } - arg4 = reinterpret_cast< BlockHeaderRef * >(argp4); - (arg1)->reassessAfterReorg(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_hasTxWithHash__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_hasTxWithHash",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_hasTxWithHash" "', argument " "1"" of type '" "BlockDataManager_FullRAM const *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_hasTxWithHash" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = (bool)((BlockDataManager_FullRAM const *)arg1)->hasTxWithHash((BinaryData const &)*arg2,arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_hasTxWithHash__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_hasTxWithHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_hasTxWithHash" "', argument " "1"" of type '" "BlockDataManager_FullRAM const *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (bool)((BlockDataManager_FullRAM const *)arg1)->hasTxWithHash((BinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_hasTxWithHash(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_hasTxWithHash__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_hasTxWithHash__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_hasTxWithHash'.\n" - " Possible C/C++ prototypes are:\n" - " hasTxWithHash(BlockDataManager_FullRAM const *,BinaryData const &,bool)\n" - " hasTxWithHash(BlockDataManager_FullRAM const *,BinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_hasHeaderWithHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_hasHeaderWithHash",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_hasHeaderWithHash" "', argument " "1"" of type '" "BlockDataManager_FullRAM const *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (bool)((BlockDataManager_FullRAM const *)arg1)->hasHeaderWithHash((BinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getNumBlocks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getNumBlocks",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getNumBlocks" "', argument " "1"" of type '" "BlockDataManager_FullRAM const *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (uint32_t)((BlockDataManager_FullRAM const *)arg1)->getNumBlocks(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getNumTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getNumTx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getNumTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM const *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (uint32_t)((BlockDataManager_FullRAM const *)arg1)->getNumTx(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getHeadersNotOnMainChain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< BlockHeaderRef * > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getHeadersNotOnMainChain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getHeadersNotOnMainChain" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (arg1)->getHeadersNotOnMainChain(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_prefixSearchHeaders(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BlockHeaderRef * > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_prefixSearchHeaders",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_prefixSearchHeaders" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->prefixSearchHeaders((BinaryData const &)*arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_prefixSearchTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< TxRef * > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_prefixSearchTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_prefixSearchTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->prefixSearchTx((BinaryData const &)*arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_prefixSearchAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - std::vector< BinaryData > result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_prefixSearchAddress",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_prefixSearchAddress" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->prefixSearchAddress((BinaryData const &)*arg2); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BtcWallet *arg2 = 0 ; - uint32_t arg3 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcWallet, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - arg2 = reinterpret_cast< BtcWallet * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - (arg1)->scanBlockchainForTx(*arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BtcWallet *arg2 = 0 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcWallet, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - arg2 = reinterpret_cast< BtcWallet * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->scanBlockchainForTx(*arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BtcWallet *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcWallet, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "BtcWallet &""'"); - } - arg2 = reinterpret_cast< BtcWallet * >(argp2); - (arg1)->scanBlockchainForTx(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - SwigValueWrapper< std::vector< BtcWallet * > > arg2 ; - uint32_t arg3 ; - uint32_t arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } else { - std::vector< BtcWallet * > * temp = reinterpret_cast< std::vector< BtcWallet * > * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "4"" of type '" "uint32_t""'"); - } - arg4 = static_cast< uint32_t >(val4); - (arg1)->scanBlockchainForTx(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - SwigValueWrapper< std::vector< BtcWallet * > > arg2 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } else { - std::vector< BtcWallet * > * temp = reinterpret_cast< std::vector< BtcWallet * > * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->scanBlockchainForTx(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - SwigValueWrapper< std::vector< BtcWallet * > > arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_scanBlockchainForTx",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } else { - std::vector< BtcWallet * > * temp = reinterpret_cast< std::vector< BtcWallet * > * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - (arg1)->scanBlockchainForTx(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_5(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_4(self, args); - } - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BtcWallet, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_0(self, args); - } - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_scanBlockchainForTx__SWIG_3(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_scanBlockchainForTx'.\n" - " Possible C/C++ prototypes are:\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,BtcWallet &,uint32_t,uint32_t)\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,BtcWallet &,uint32_t)\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,BtcWallet &)\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,std::vector< BtcWallet * >,uint32_t,uint32_t)\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,std::vector< BtcWallet * >,uint32_t)\n" - " scanBlockchainForTx(BlockDataManager_FullRAM *,std::vector< BtcWallet * >)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - bool arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BlockDataManager_FullRAM_readBlkFile_FromScratch",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_readBlkFile_FromScratch" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_readBlkFile_FromScratch" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - ecode3 = SWIG_AsVal_bool(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_readBlkFile_FromScratch" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = (uint32_t)(arg1)->readBlkFile_FromScratch(arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_readBlkFile_FromScratch",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_readBlkFile_FromScratch" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_readBlkFile_FromScratch" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (uint32_t)(arg1)->readBlkFile_FromScratch(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_readBlkFile_FromScratch'.\n" - " Possible C/C++ prototypes are:\n" - " readBlkFile_FromScratch(BlockDataManager_FullRAM *,string,bool)\n" - " readBlkFile_FromScratch(BlockDataManager_FullRAM *,string)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFileUpdate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_readBlkFileUpdate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_readBlkFileUpdate" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_readBlkFileUpdate" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (uint32_t)(arg1)->readBlkFileUpdate(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFileUpdate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_readBlkFileUpdate",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_readBlkFileUpdate" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (uint32_t)(arg1)->readBlkFileUpdate(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readBlkFileUpdate(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_readBlkFileUpdate__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_readBlkFileUpdate__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_readBlkFileUpdate'.\n" - " Possible C/C++ prototypes are:\n" - " readBlkFileUpdate(BlockDataManager_FullRAM *,string)\n" - " readBlkFileUpdate(BlockDataManager_FullRAM *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_verifyBlkFileIntegrity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_verifyBlkFileIntegrity",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_verifyBlkFileIntegrity" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (bool)(arg1)->verifyBlkFileIntegrity(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - (arg1)->scanBlockchainForTx_FromScratch_AllAddr(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_findAllNonStdTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - std::vector< TxRef * > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_findAllNonStdTx",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_findAllNonStdTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (arg1)->findAllNonStdTx(); - resultobj = swig::from(static_cast< std::vector > >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_enableZeroConf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_enableZeroConf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_enableZeroConf" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_enableZeroConf" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - (arg1)->enableZeroConf(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_disableZeroConf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_disableZeroConf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_disableZeroConf" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_disableZeroConf" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - (arg1)->disableZeroConf(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_readZeroConfFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - string arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_readZeroConfFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_readZeroConfFile" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(obj1, &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "BlockDataManager_FullRAM_readZeroConfFile" "', argument " "2"" of type '" "string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - (arg1)->readZeroConfFile(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_addNewZeroConfTx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BinaryData *arg2 = 0 ; - uint64_t arg3 ; - bool arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - unsigned long long val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:BlockDataManager_FullRAM_addNewZeroConfTx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_addNewZeroConfTx" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlockDataManager_FullRAM_addNewZeroConfTx" "', argument " "3"" of type '" "uint64_t""'"); - } - arg3 = static_cast< uint64_t >(val3); - ecode4 = SWIG_AsVal_bool(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BlockDataManager_FullRAM_addNewZeroConfTx" "', argument " "4"" of type '" "bool""'"); - } - arg4 = static_cast< bool >(val4); - result = (bool)(arg1)->addNewZeroConfTx((BinaryData const &)*arg2,arg3,arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_purgeZeroConfPool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_purgeZeroConfPool",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_purgeZeroConfPool" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - (arg1)->purgeZeroConfPool(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_pprintZeroConfPool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_pprintZeroConfPool",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_pprintZeroConfPool" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - (arg1)->pprintZeroConfPool(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_rewriteZeroConfFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_rewriteZeroConfFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_rewriteZeroConfFile" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - (arg1)->rewriteZeroConfFile(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_rescanWalletZeroConf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BtcWallet *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_rescanWalletZeroConf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_rescanWalletZeroConf" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcWallet, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_rescanWalletZeroConf" "', argument " "2"" of type '" "BtcWallet &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_rescanWalletZeroConf" "', argument " "2"" of type '" "BtcWallet &""'"); - } - arg2 = reinterpret_cast< BtcWallet * >(argp2); - (arg1)->rescanWalletZeroConf(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_organizeChain__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_organizeChain",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_organizeChain" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlockDataManager_FullRAM_organizeChain" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - result = (bool)(arg1)->organizeChain(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_organizeChain__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_organizeChain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_organizeChain" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (bool)(arg1)->organizeChain(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_organizeChain(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BlockDataManager_FullRAM_organizeChain__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_BlockDataManager_FullRAM, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BlockDataManager_FullRAM_organizeChain__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BlockDataManager_FullRAM_organizeChain'.\n" - " Possible C/C++ prototypes are:\n" - " organizeChain(BlockDataManager_FullRAM *,bool)\n" - " organizeChain(BlockDataManager_FullRAM *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_isLastBlockReorg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_isLastBlockReorg",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_isLastBlockReorg" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (bool)(arg1)->isLastBlockReorg(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getTxJustInvalidated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - set< HashString > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getTxJustInvalidated",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getTxJustInvalidated" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (arg1)->getTxJustInvalidated(); - resultobj = SWIG_NewPointerObj((new set< HashString >(static_cast< const set< HashString >& >(result))), SWIGTYPE_p_setT_HashString_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getTxJustAffected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - set< HashString > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_FullRAM_getTxJustAffected",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getTxJustAffected" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - result = (arg1)->getTxJustAffected(); - resultobj = SWIG_NewPointerObj((new set< HashString >(static_cast< const set< HashString >& >(result))), SWIGTYPE_p_setT_HashString_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_updateWalletAfterReorg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - BtcWallet *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_updateWalletAfterReorg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_updateWalletAfterReorg" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BtcWallet, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_updateWalletAfterReorg" "', argument " "2"" of type '" "BtcWallet &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_updateWalletAfterReorg" "', argument " "2"" of type '" "BtcWallet &""'"); - } - arg2 = reinterpret_cast< BtcWallet * >(argp2); - (arg1)->updateWalletAfterReorg(*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_updateWalletsAfterReorg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - SwigValueWrapper< std::vector< BtcWallet * > > arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_updateWalletsAfterReorg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_updateWalletsAfterReorg" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_updateWalletsAfterReorg" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_updateWalletsAfterReorg" "', argument " "2"" of type '" "std::vector< BtcWallet * >""'"); - } else { - std::vector< BtcWallet * > * temp = reinterpret_cast< std::vector< BtcWallet * > * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - (arg1)->updateWalletsAfterReorg(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getPrevTxOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - TxInRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TxOutRef result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getPrevTxOut",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getPrevTxOut" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxInRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_getPrevTxOut" "', argument " "2"" of type '" "TxInRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_getPrevTxOut" "', argument " "2"" of type '" "TxInRef &""'"); - } - arg2 = reinterpret_cast< TxInRef * >(argp2); - result = (arg1)->getPrevTxOut(*arg2); - resultobj = SWIG_NewPointerObj((new TxOutRef(static_cast< const TxOutRef& >(result))), SWIGTYPE_p_TxOutRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getSenderAddr20(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - TxInRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getSenderAddr20",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getSenderAddr20" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxInRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_getSenderAddr20" "', argument " "2"" of type '" "TxInRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_getSenderAddr20" "', argument " "2"" of type '" "TxInRef &""'"); - } - arg2 = reinterpret_cast< TxInRef * >(argp2); - result = (arg1)->getSenderAddr20(*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_FullRAM_getSentValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - TxInRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int64_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BlockDataManager_FullRAM_getSentValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_FullRAM_getSentValue" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_TxInRef, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlockDataManager_FullRAM_getSentValue" "', argument " "2"" of type '" "TxInRef &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlockDataManager_FullRAM_getSentValue" "', argument " "2"" of type '" "TxInRef &""'"); - } - arg2 = reinterpret_cast< TxInRef * >(argp2); - result = (int64_t)(arg1)->getSentValue(*arg2); - resultobj = SWIG_From_long_SS_long(static_cast< long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BlockDataManager_FullRAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager_FullRAM *arg1 = (BlockDataManager_FullRAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BlockDataManager_FullRAM",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager_FullRAM, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlockDataManager_FullRAM" "', argument " "1"" of type '" "BlockDataManager_FullRAM *""'"); - } - arg1 = reinterpret_cast< BlockDataManager_FullRAM * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BlockDataManager_FullRAM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BlockDataManager_FullRAM, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_BlockDataManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BlockDataManager")) SWIG_fail; - result = (BlockDataManager *)new BlockDataManager(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockDataManager, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BlockDataManager_getBDM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager *arg1 = (BlockDataManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BlockDataManager_FullRAM *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BlockDataManager_getBDM",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlockDataManager_getBDM" "', argument " "1"" of type '" "BlockDataManager *""'"); - } - arg1 = reinterpret_cast< BlockDataManager * >(argp1); - result = (BlockDataManager_FullRAM *) &(arg1)->getBDM(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BlockDataManager_FullRAM, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BlockDataManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BlockDataManager *arg1 = (BlockDataManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BlockDataManager",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BlockDataManager, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlockDataManager" "', argument " "1"" of type '" "BlockDataManager *""'"); - } - arg1 = reinterpret_cast< BlockDataManager * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BlockDataManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BlockDataManager, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_BtcUtils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_BtcUtils")) SWIG_fail; - result = (BtcUtils *)new BtcUtils(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BtcUtils, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_hash256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *arg1 = (BtcUtils *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_hash256",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcUtils, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_hash256" "', argument " "1"" of type '" "BtcUtils *""'"); - } - arg1 = reinterpret_cast< BtcUtils * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->hash256((BinaryData const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_hash160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *arg1 = (BtcUtils *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_hash160",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcUtils, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_hash160" "', argument " "1"" of type '" "BtcUtils *""'"); - } - arg1 = reinterpret_cast< BtcUtils * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->hash160((BinaryData const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN int Swig_var_BtcUtils_BadAddress__set(PyObject *_val) { - { - void *argp = 0; - int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_BinaryData, 0 | 0); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in variable '""BtcUtils::BadAddress_""' of type '""BinaryData""'"); - } - if (!argp) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BtcUtils::BadAddress_""' of type '""BinaryData""'"); - } else { - BinaryData * temp; - temp = reinterpret_cast< BinaryData * >(argp); - BtcUtils::BadAddress_ = *temp; - if (SWIG_IsNewObj(res)) delete temp; - } - } - return 0; -fail: - return 1; -} - - -SWIGINTERN PyObject *Swig_var_BtcUtils_BadAddress__get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&BtcUtils::BadAddress_), SWIGTYPE_p_BinaryData, 0 ); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_BadAddress__get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) { - return Swig_var_BtcUtils_BadAddress__get(); -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_BadAddress__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *value; - int res; - - if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL; - res = Swig_var_BtcUtils_BadAddress__set(value); - return !res ? SWIG_Py_Void() : NULL; -} - - -SWIGINTERN int Swig_var_BtcUtils_EmptyHash__set(PyObject *_val) { - { - void *argp = 0; - int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_BinaryData, 0 | 0); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in variable '""BtcUtils::EmptyHash_""' of type '""BinaryData""'"); - } - if (!argp) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""BtcUtils::EmptyHash_""' of type '""BinaryData""'"); - } else { - BinaryData * temp; - temp = reinterpret_cast< BinaryData * >(argp); - BtcUtils::EmptyHash_ = *temp; - if (SWIG_IsNewObj(res)) delete temp; - } - } - return 0; -fail: - return 1; -} - - -SWIGINTERN PyObject *Swig_var_BtcUtils_EmptyHash__get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&BtcUtils::EmptyHash_), SWIGTYPE_p_BinaryData, 0 ); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_EmptyHash__get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) { - return Swig_var_BtcUtils_EmptyHash__get(); -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_EmptyHash__set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *value; - int res; - - if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL; - res = Swig_var_BtcUtils_EmptyHash__set(value); - return !res ? SWIG_Py_Void() : NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_readVarInt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t *arg2 = (uint32_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_readVarInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_readVarInt" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_readVarInt" "', argument " "2"" of type '" "uint32_t *""'"); - } - arg2 = reinterpret_cast< uint32_t * >(argp2); - result = (uint64_t)BtcUtils::readVarInt((unsigned char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_readVarInt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint64_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_readVarInt",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_readVarInt" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (uint64_t)BtcUtils::readVarInt((unsigned char const *)arg1); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_readVarInt(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_readVarInt__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_readVarInt__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_readVarInt'.\n" - " Possible C/C++ prototypes are:\n" - " readVarInt(uint8_t const *,uint32_t *)\n" - " BtcUtils::readVarInt(uint8_t const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_readVarIntLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_readVarIntLength",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_readVarIntLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (uint32_t)BtcUtils::readVarIntLength((unsigned char const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_calcVarIntSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned long long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_calcVarIntSize",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BtcUtils_calcVarIntSize" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - result = (uint32_t)BtcUtils::calcVarIntSize(arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_getHash256",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BtcUtils_getHash256" "', argument " "3"" of type '" "BinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256" "', argument " "3"" of type '" "BinaryData &""'"); - } - arg3 = reinterpret_cast< BinaryData * >(argp3); - BtcUtils::getHash256((unsigned char const *)arg1,arg2,*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256_NoSafetyCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_getHash256_NoSafetyCheck",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash256_NoSafetyCheck" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash256_NoSafetyCheck" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BtcUtils_getHash256_NoSafetyCheck" "', argument " "3"" of type '" "BinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256_NoSafetyCheck" "', argument " "3"" of type '" "BinaryData &""'"); - } - arg3 = reinterpret_cast< BinaryData * >(argp3); - BtcUtils::getHash256_NoSafetyCheck((unsigned char const *)arg1,arg2,*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash256",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = BtcUtils::getHash256((unsigned char const *)arg1,arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData *arg2 = 0 ; - BinaryData bdObj1 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash256",&obj0,&obj1)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "BinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "BinaryData &""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - BtcUtils::getHash256((BinaryData const &)*arg1,*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash256",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "BinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256" "', argument " "2"" of type '" "BinaryData &""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - BtcUtils::getHash256((BinaryDataRef const &)*arg1,*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getHash256",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = BtcUtils::getHash256((BinaryData const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getHash256",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash256" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = BtcUtils::getHash256((BinaryDataRef const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash256(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_4(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_5(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_3(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash256__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_getHash256'.\n" - " Possible C/C++ prototypes are:\n" - " getHash256(uint8_t const *,uint32_t,BinaryData &)\n" - " getHash256(uint8_t const *,uint32_t)\n" - " getHash256(BinaryData const &,BinaryData &)\n" - " getHash256(BinaryDataRef const &,BinaryData &)\n" - " getHash256(BinaryData const &)\n" - " BtcUtils::getHash256(BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_getHash160",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash160" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BtcUtils_getHash160" "', argument " "3"" of type '" "BinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash160" "', argument " "3"" of type '" "BinaryData &""'"); - } - arg3 = reinterpret_cast< BinaryData * >(argp3); - BtcUtils::getHash160((unsigned char const *)arg1,arg2,*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160_NoSafetyCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_getHash160_NoSafetyCheck",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160_NoSafetyCheck" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash160_NoSafetyCheck" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BtcUtils_getHash160_NoSafetyCheck" "', argument " "3"" of type '" "BinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash160_NoSafetyCheck" "', argument " "3"" of type '" "BinaryData &""'"); - } - arg3 = reinterpret_cast< BinaryData * >(argp3); - BtcUtils::getHash160_NoSafetyCheck((unsigned char const *)arg1,arg2,*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash160",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getHash160" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = BtcUtils::getHash160((unsigned char const *)arg1,arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash160",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getHash160" "', argument " "2"" of type '" "BinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash160" "', argument " "2"" of type '" "BinaryData &""'"); - } - arg2 = reinterpret_cast< BinaryData * >(argp2); - BtcUtils::getHash160((BinaryDataRef const &)*arg1,*arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getHash160",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getHash160" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = BtcUtils::getHash160((BinaryDataRef const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getHash160",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = BtcUtils::getHash160((BinaryData const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash160__SWIG_3(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash160__SWIG_4(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcUtils_getHash160__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash160__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getHash160__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_getHash160'.\n" - " Possible C/C++ prototypes are:\n" - " getHash160(uint8_t const *,uint32_t,BinaryData &)\n" - " getHash160(uint8_t const *,uint32_t)\n" - " getHash160(BinaryDataRef const &,BinaryData &)\n" - " getHash160(BinaryDataRef const &)\n" - " BtcUtils::getHash160(BinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getHash160_SWIG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *arg1 = (BtcUtils *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getHash160_SWIG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcUtils, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getHash160_SWIG" "', argument " "1"" of type '" "BtcUtils *""'"); - } - arg1 = reinterpret_cast< BtcUtils * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->getHash160_SWIG((BinaryData const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_ripemd160_SWIG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *arg1 = (BtcUtils *) 0 ; - BinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_ripemd160_SWIG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcUtils, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_ripemd160_SWIG" "', argument " "1"" of type '" "BtcUtils *""'"); - } - arg1 = reinterpret_cast< BtcUtils * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (arg1)->ripemd160_SWIG((BinaryData const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_calculateMerkleRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_calculateMerkleRoot",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_calculateMerkleRoot" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_calculateMerkleRoot" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - arg1 = ptr; - } - result = BtcUtils::calculateMerkleRoot((std::vector< BinaryData > const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_calculateMerkleTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - std::vector< BinaryData > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - std::vector< BinaryData > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_calculateMerkleTree",&obj0)) SWIG_fail; - { - std::vector > *ptr = (std::vector > *)0; - res1 = swig::asptr(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_calculateMerkleTree" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_calculateMerkleTree" "', argument " "1"" of type '" "std::vector< BinaryData > const &""'"); - } - arg1 = ptr; - } - result = BtcUtils::calculateMerkleTree((std::vector< BinaryData > const &)*arg1); - resultobj = swig::from(static_cast< std::vector > >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxInCalcLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_TxInCalcLength",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_TxInCalcLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (uint32_t)BtcUtils::TxInCalcLength((unsigned char const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxOutCalcLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_TxOutCalcLength",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_TxOutCalcLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (uint32_t)BtcUtils::TxOutCalcLength((unsigned char const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxCalcLength__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - std::vector< uint32_t > *arg2 = (std::vector< uint32_t > *) 0 ; - std::vector< uint32_t > *arg3 = (std::vector< uint32_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_TxCalcLength",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_TxCalcLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_TxCalcLength" "', argument " "2"" of type '" "std::vector< uint32_t > *""'"); - } - arg2 = reinterpret_cast< std::vector< uint32_t > * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BtcUtils_TxCalcLength" "', argument " "3"" of type '" "std::vector< uint32_t > *""'"); - } - arg3 = reinterpret_cast< std::vector< uint32_t > * >(argp3); - result = (uint32_t)BtcUtils::TxCalcLength((unsigned char const *)arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxCalcLength__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - std::vector< uint32_t > *arg2 = (std::vector< uint32_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_TxCalcLength",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_TxCalcLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_TxCalcLength" "', argument " "2"" of type '" "std::vector< uint32_t > *""'"); - } - arg2 = reinterpret_cast< std::vector< uint32_t > * >(argp2); - result = (uint32_t)BtcUtils::TxCalcLength((unsigned char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxCalcLength__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_TxCalcLength",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_TxCalcLength" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - result = (uint32_t)BtcUtils::TxCalcLength((unsigned char const *)arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_TxCalcLength(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_TxCalcLength__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_TxCalcLength__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_TxCalcLength__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_TxCalcLength'.\n" - " Possible C/C++ prototypes are:\n" - " TxCalcLength(uint8_t const *,std::vector< uint32_t > *,std::vector< uint32_t > *)\n" - " TxCalcLength(uint8_t const *,std::vector< uint32_t > *)\n" - " BtcUtils::TxCalcLength(uint8_t const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxOutScriptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - TXOUT_SCRIPT_TYPE result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getTxOutScriptType",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxOutScriptType" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxOutScriptType" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = (TXOUT_SCRIPT_TYPE)BtcUtils::getTxOutScriptType((BinaryDataRef const &)*arg1); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxInScriptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - TXIN_SCRIPT_TYPE result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getTxInScriptType",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxInScriptType" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInScriptType" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getTxInScriptType" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInScriptType" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - result = (TXIN_SCRIPT_TYPE)BtcUtils::getTxInScriptType((BinaryDataRef const &)*arg1,(BinaryDataRef const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxOutRecipientAddr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - TXOUT_SCRIPT_TYPE arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getTxOutRecipientAddr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxOutRecipientAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxOutRecipientAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BtcUtils_getTxOutRecipientAddr" "', argument " "2"" of type '" "TXOUT_SCRIPT_TYPE""'"); - } - arg2 = static_cast< TXOUT_SCRIPT_TYPE >(val2); - result = BtcUtils::getTxOutRecipientAddr((BinaryDataRef const &)*arg1,arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxOutRecipientAddr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getTxOutRecipientAddr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxOutRecipientAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxOutRecipientAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = BtcUtils::getTxOutRecipientAddr((BinaryDataRef const &)*arg1); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxOutRecipientAddr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getTxOutRecipientAddr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcUtils_getTxOutRecipientAddr__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_getTxOutRecipientAddr'.\n" - " Possible C/C++ prototypes are:\n" - " getTxOutRecipientAddr(BinaryDataRef const &,TXOUT_SCRIPT_TYPE)\n" - " BtcUtils::getTxOutRecipientAddr(BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxInAddr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - BinaryDataRef *arg2 = 0 ; - TXIN_SCRIPT_TYPE arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:BtcUtils_getTxInAddr",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxInAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getTxInAddr" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInAddr" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BtcUtils_getTxInAddr" "', argument " "3"" of type '" "TXIN_SCRIPT_TYPE""'"); - } - arg3 = static_cast< TXIN_SCRIPT_TYPE >(val3); - result = BtcUtils::getTxInAddr((BinaryDataRef const &)*arg1,(BinaryDataRef const &)*arg2,arg3); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxInAddr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - BinaryDataRef *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_getTxInAddr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_getTxInAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInAddr" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_getTxInAddr" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_getTxInAddr" "', argument " "2"" of type '" "BinaryDataRef const &""'"); - } - arg2 = reinterpret_cast< BinaryDataRef * >(argp2); - result = BtcUtils::getTxInAddr((BinaryDataRef const &)*arg1,(BinaryDataRef const &)*arg2); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getTxInAddr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_getTxInAddr__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_BtcUtils_getTxInAddr__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_getTxInAddr'.\n" - " Possible C/C++ prototypes are:\n" - " getTxInAddr(BinaryDataRef const &,BinaryDataRef const &,TXIN_SCRIPT_TYPE)\n" - " BtcUtils::getTxInAddr(BinaryDataRef const &,BinaryDataRef const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_convertDiffBitsToDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_convertDiffBitsToDouble",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = (double)BtcUtils::convertDiffBitsToDouble((BinaryData const &)*arg1); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_getOpCodeName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - OPCODETYPE arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_getOpCodeName",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BtcUtils_getOpCodeName" "', argument " "1"" of type '" "OPCODETYPE""'"); - } - arg1 = static_cast< OPCODETYPE >(val1); - result = BtcUtils::getOpCodeName(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_convertScriptToOpStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - SwigValueWrapper< std::vector< std::string > > result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_convertScriptToOpStrings",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = BtcUtils::convertScriptToOpStrings((BinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj((new std::vector< string >(static_cast< const std::vector< string >& >(result))), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_num2str(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned long long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_num2str",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BtcUtils_num2str" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - result = BtcUtils::num2str(arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_pprintScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_pprintScript",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - BtcUtils::pprintScript((BinaryData const &)*arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_verifyProofOfWork__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef arg1 ; - void *argp1 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"O:BtcUtils_verifyProofOfWork",&obj0)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_verifyProofOfWork" "', argument " "1"" of type '" "BinaryDataRef""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_verifyProofOfWork" "', argument " "1"" of type '" "BinaryDataRef""'"); - } else { - BinaryDataRef * temp = reinterpret_cast< BinaryDataRef * >(argp1); - arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; - } - } - result = (bool)BtcUtils::verifyProofOfWork(arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_verifyProofOfWork__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData arg1 ; - BinaryData *arg2 = 0 ; - BinaryData bdObj2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_verifyProofOfWork",&obj0,&obj1)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - - arg1 = BinaryData((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - } - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - result = (bool)BtcUtils::verifyProofOfWork(arg1,(BinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_verifyProofOfWork__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef arg1 ; - BinaryDataRef arg2 ; - void *argp1 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:BtcUtils_verifyProofOfWork",&obj0,&obj1)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BtcUtils_verifyProofOfWork" "', argument " "1"" of type '" "BinaryDataRef""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_verifyProofOfWork" "', argument " "1"" of type '" "BinaryDataRef""'"); - } else { - BinaryDataRef * temp = reinterpret_cast< BinaryDataRef * >(argp1); - arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; - } - } - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BtcUtils_verifyProofOfWork" "', argument " "2"" of type '" "BinaryDataRef""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BtcUtils_verifyProofOfWork" "', argument " "2"" of type '" "BinaryDataRef""'"); - } else { - BinaryDataRef * temp = reinterpret_cast< BinaryDataRef * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - result = (bool)BtcUtils::verifyProofOfWork(arg1,arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BtcUtils_verifyProofOfWork(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_verifyProofOfWork__SWIG_0(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_verifyProofOfWork__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_BtcUtils_verifyProofOfWork__SWIG_2(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'BtcUtils_verifyProofOfWork'.\n" - " Possible C/C++ prototypes are:\n" - " verifyProofOfWork(BinaryDataRef)\n" - " verifyProofOfWork(BinaryData,BinaryData const &)\n" - " BtcUtils::verifyProofOfWork(BinaryDataRef,BinaryDataRef)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_BtcUtils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BtcUtils *arg1 = (BtcUtils *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_BtcUtils",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BtcUtils, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BtcUtils" "', argument " "1"" of type '" "BtcUtils *""'"); - } - arg1 = reinterpret_cast< BtcUtils * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *BtcUtils_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_BtcUtils, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_SecureBinaryData")) SWIG_fail; - result = (SecureBinaryData *)new SecureBinaryData(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint32_t arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SecureBinaryData",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "uint32_t""'"); - } - arg1 = static_cast< uint32_t >(val1); - result = (SecureBinaryData *)new SecureBinaryData(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryData *arg1 = 0 ; - BinaryData bdObj1 ; - PyObject * obj0 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SecureBinaryData",&obj0)) SWIG_fail; - { - if(!PyString_Check(obj0)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj1.copyFrom((uint8_t*)PyString_AsString(obj0), PyString_Size(obj0)); - arg1 = &bdObj1; - } - result = (SecureBinaryData *)new SecureBinaryData((BinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_SecureBinaryData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SecureBinaryData" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - result = (SecureBinaryData *)new SecureBinaryData((uint8_t const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint8_t *arg1 = (uint8_t *) 0 ; - uint8_t *arg2 = (uint8_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_SecureBinaryData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "uint8_t const *""'"); - } - arg1 = reinterpret_cast< uint8_t * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SecureBinaryData" "', argument " "2"" of type '" "uint8_t const *""'"); - } - arg2 = reinterpret_cast< uint8_t * >(argp2); - result = (SecureBinaryData *)new SecureBinaryData((uint8_t const *)arg1,(uint8_t const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject * obj0 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SecureBinaryData",&obj0)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(obj0, &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "string const &""'"); - } - arg1 = ptr; - } - result = (SecureBinaryData *)new SecureBinaryData((string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - BinaryDataRef *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SecureBinaryData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_BinaryDataRef, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "BinaryDataRef const &""'"); - } - arg1 = reinterpret_cast< BinaryDataRef * >(argp1); - result = (SecureBinaryData *)new SecureBinaryData((BinaryDataRef const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_SecureBinaryData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_SecureBinaryData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SecureBinaryData" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getPtr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getPtr" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = (uint8_t *)((SecureBinaryData const *)arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getPtr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint8_t *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getPtr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getPtr" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = (uint8_t *)(arg1)->getPtr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getPtr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 1); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SecureBinaryData_getPtr__SWIG_1(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SecureBinaryData_getPtr__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SecureBinaryData_getPtr'.\n" - " Possible C/C++ prototypes are:\n" - " getPtr(SecureBinaryData const *)\n" - " getPtr(SecureBinaryData *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - size_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getSize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getSize" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = (size_t)((SecureBinaryData const *)arg1)->getSize(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_copy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_copy" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->copy(); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_toHexStr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_toHexStr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_toHexStr" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_bool(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_toHexStr" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - result = ((SecureBinaryData const *)arg1)->toHexStr(arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_toHexStr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_toHexStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_toHexStr" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->toHexStr(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_toHexStr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SecureBinaryData_toHexStr__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_bool(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SecureBinaryData_toHexStr__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SecureBinaryData_toHexStr'.\n" - " Possible C/C++ prototypes are:\n" - " toHexStr(SecureBinaryData const *,bool)\n" - " toHexStr(SecureBinaryData const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_toBinStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_toBinStr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_toBinStr" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->toBinStr(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_SecureBinaryData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SecureBinaryData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = (SecureBinaryData *)new SecureBinaryData((SecureBinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_SecureBinaryData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_SecureBinaryData__SWIG_0(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_7(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryDataRef, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_6(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_BinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_1(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_5(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_4(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_SecureBinaryData__SWIG_3(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_SecureBinaryData'.\n" - " Possible C/C++ prototypes are:\n" - " SecureBinaryData()\n" - " SecureBinaryData(uint32_t)\n" - " SecureBinaryData(BinaryData const &)\n" - " SecureBinaryData(uint8_t const *,size_t)\n" - " SecureBinaryData(uint8_t const *,uint8_t const *)\n" - " SecureBinaryData(string const &)\n" - " SecureBinaryData(BinaryDataRef const &)\n" - " SecureBinaryData(SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_resize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_resize" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_resize" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - (arg1)->resize(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_reserve",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_reserve" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_reserve" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - (arg1)->reserve(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getRawCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getRawCopy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getRawCopy" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->getRawCopy(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getRawRef(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryDataRef result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getRawRef",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getRawRef" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = (arg1)->getRawRef(); - resultobj = SWIG_NewPointerObj((new BinaryDataRef(static_cast< const BinaryDataRef& >(result))), SWIGTYPE_p_BinaryDataRef, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_copySwapEndian__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - size_t arg2 ; - size_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:SecureBinaryData_copySwapEndian",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = ((SecureBinaryData const *)arg1)->copySwapEndian(arg2,arg3); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_copySwapEndian__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_copySwapEndian",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - result = ((SecureBinaryData const *)arg1)->copySwapEndian(arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_copySwapEndian__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_copySwapEndian",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_copySwapEndian" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->copySwapEndian(); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_copySwapEndian(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SecureBinaryData_copySwapEndian__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SecureBinaryData_copySwapEndian__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SecureBinaryData_copySwapEndian__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SecureBinaryData_copySwapEndian'.\n" - " Possible C/C++ prototypes are:\n" - " copySwapEndian(SecureBinaryData const *,size_t,size_t)\n" - " copySwapEndian(SecureBinaryData const *,size_t)\n" - " copySwapEndian(SecureBinaryData const *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_append",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_append" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SecureBinaryData_append" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SecureBinaryData_append" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (SecureBinaryData *) &(arg1)->append(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData___add__" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SecureBinaryData___add__" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SecureBinaryData___add__" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = ((SecureBinaryData const *)arg1)->operator +(*arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData___eq__" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SecureBinaryData___eq__" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SecureBinaryData___eq__" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (bool)((SecureBinaryData const *)arg1)->operator ==((SecureBinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getHash256(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getHash256",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getHash256" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->getHash256(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_getHash160(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_getHash160",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_getHash160" "', argument " "1"" of type '" "SecureBinaryData const *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = ((SecureBinaryData const *)arg1)->getHash160(); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_GenerateRandom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:SecureBinaryData_GenerateRandom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_GenerateRandom" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SecureBinaryData_GenerateRandom" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - result = (arg1)->GenerateRandom(arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_lockData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_lockData",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_lockData" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - (arg1)->lockData(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SecureBinaryData_destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = (SecureBinaryData *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:SecureBinaryData_destroy",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SecureBinaryData, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SecureBinaryData_destroy" "', argument " "1"" of type '" "SecureBinaryData *""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - (arg1)->destroy(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *SecureBinaryData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_SecureBinaryData, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_KdfRomix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_KdfRomix")) SWIG_fail; - result = (KdfRomix *)new KdfRomix(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KdfRomix, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_KdfRomix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - uint32_t arg1 ; - uint32_t arg2 ; - SecureBinaryData arg3 ; - unsigned int val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - KdfRomix *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_KdfRomix",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KdfRomix" "', argument " "1"" of type '" "uint32_t""'"); - } - arg1 = static_cast< uint32_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_KdfRomix" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - { - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_KdfRomix" "', argument " "3"" of type '" "SecureBinaryData""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KdfRomix" "', argument " "3"" of type '" "SecureBinaryData""'"); - } else { - SecureBinaryData * temp = reinterpret_cast< SecureBinaryData * >(argp3); - arg3 = *temp; - if (SWIG_IsNewObj(res3)) delete temp; - } - } - result = (KdfRomix *)new KdfRomix(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_KdfRomix, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_KdfRomix(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_KdfRomix__SWIG_0(self, args); - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_KdfRomix__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_KdfRomix'.\n" - " Possible C/C++ prototypes are:\n" - " KdfRomix()\n" - " KdfRomix(uint32_t,uint32_t,SecureBinaryData)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_computeKdfParams__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - double arg2 ; - uint32_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:KdfRomix_computeKdfParams",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_computeKdfParams" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KdfRomix_computeKdfParams" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KdfRomix_computeKdfParams" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - (arg1)->computeKdfParams(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_computeKdfParams__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:KdfRomix_computeKdfParams",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_computeKdfParams" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KdfRomix_computeKdfParams" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - (arg1)->computeKdfParams(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_computeKdfParams__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_computeKdfParams",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_computeKdfParams" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - (arg1)->computeKdfParams(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_computeKdfParams(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_KdfRomix, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_KdfRomix_computeKdfParams__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_KdfRomix, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_double(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_KdfRomix_computeKdfParams__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_KdfRomix, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_double(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_KdfRomix_computeKdfParams__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'KdfRomix_computeKdfParams'.\n" - " Possible C/C++ prototypes are:\n" - " computeKdfParams(KdfRomix *,double,uint32_t)\n" - " computeKdfParams(KdfRomix *,double)\n" - " computeKdfParams(KdfRomix *)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_usePrecomputedKdfParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - uint32_t arg2 ; - uint32_t arg3 ; - SecureBinaryData arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:KdfRomix_usePrecomputedKdfParams",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_usePrecomputedKdfParams" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KdfRomix_usePrecomputedKdfParams" "', argument " "2"" of type '" "uint32_t""'"); - } - arg2 = static_cast< uint32_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KdfRomix_usePrecomputedKdfParams" "', argument " "3"" of type '" "uint32_t""'"); - } - arg3 = static_cast< uint32_t >(val3); - { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "KdfRomix_usePrecomputedKdfParams" "', argument " "4"" of type '" "SecureBinaryData""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KdfRomix_usePrecomputedKdfParams" "', argument " "4"" of type '" "SecureBinaryData""'"); - } else { - SecureBinaryData * temp = reinterpret_cast< SecureBinaryData * >(argp4); - arg4 = *temp; - if (SWIG_IsNewObj(res4)) delete temp; - } - } - (arg1)->usePrecomputedKdfParams(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_printKdfParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_printKdfParams",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_printKdfParams" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - (arg1)->printKdfParams(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_DeriveKey_OneIter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:KdfRomix_DeriveKey_OneIter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_DeriveKey_OneIter" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KdfRomix_DeriveKey_OneIter" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KdfRomix_DeriveKey_OneIter" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (arg1)->DeriveKey_OneIter((SecureBinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_DeriveKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:KdfRomix_DeriveKey",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_DeriveKey" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KdfRomix_DeriveKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KdfRomix_DeriveKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (arg1)->DeriveKey((SecureBinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_getHashFunctionName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - string result; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_getHashFunctionName",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_getHashFunctionName" "', argument " "1"" of type '" "KdfRomix const *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - result = ((KdfRomix const *)arg1)->getHashFunctionName(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_getMemoryReqtBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_getMemoryReqtBytes",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_getMemoryReqtBytes" "', argument " "1"" of type '" "KdfRomix const *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - result = (uint32_t)((KdfRomix const *)arg1)->getMemoryReqtBytes(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_getNumIterations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - uint32_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_getNumIterations",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_getNumIterations" "', argument " "1"" of type '" "KdfRomix const *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - result = (uint32_t)((KdfRomix const *)arg1)->getNumIterations(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KdfRomix_getSalt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:KdfRomix_getSalt",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KdfRomix_getSalt" "', argument " "1"" of type '" "KdfRomix const *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - result = ((KdfRomix const *)arg1)->getSalt(); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_KdfRomix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - KdfRomix *arg1 = (KdfRomix *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_KdfRomix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_KdfRomix, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KdfRomix" "', argument " "1"" of type '" "KdfRomix *""'"); - } - arg1 = reinterpret_cast< KdfRomix * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *KdfRomix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_KdfRomix, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_CryptoAES(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_CryptoAES")) SWIG_fail; - result = (CryptoAES *)new CryptoAES(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CryptoAES, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoAES_EncryptCFB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *arg1 = (CryptoAES *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoAES_EncryptCFB",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoAES, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoAES_EncryptCFB" "', argument " "1"" of type '" "CryptoAES *""'"); - } - arg1 = reinterpret_cast< CryptoAES * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoAES_EncryptCFB" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCFB" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoAES_EncryptCFB" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCFB" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoAES_EncryptCFB" "', argument " "4"" of type '" "SecureBinaryData &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCFB" "', argument " "4"" of type '" "SecureBinaryData &""'"); - } - arg4 = reinterpret_cast< SecureBinaryData * >(argp4); - result = (arg1)->EncryptCFB(*arg2,*arg3,*arg4); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoAES_DecryptCFB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *arg1 = (CryptoAES *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoAES_DecryptCFB",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoAES, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoAES_DecryptCFB" "', argument " "1"" of type '" "CryptoAES *""'"); - } - arg1 = reinterpret_cast< CryptoAES * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoAES_DecryptCFB" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCFB" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoAES_DecryptCFB" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCFB" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoAES_DecryptCFB" "', argument " "4"" of type '" "SecureBinaryData""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCFB" "', argument " "4"" of type '" "SecureBinaryData""'"); - } else { - SecureBinaryData * temp = reinterpret_cast< SecureBinaryData * >(argp4); - arg4 = *temp; - if (SWIG_IsNewObj(res4)) delete temp; - } - } - result = (arg1)->DecryptCFB(*arg2,*arg3,arg4); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoAES_EncryptCBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *arg1 = (CryptoAES *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoAES_EncryptCBC",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoAES, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoAES_EncryptCBC" "', argument " "1"" of type '" "CryptoAES *""'"); - } - arg1 = reinterpret_cast< CryptoAES * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoAES_EncryptCBC" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCBC" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoAES_EncryptCBC" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCBC" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoAES_EncryptCBC" "', argument " "4"" of type '" "SecureBinaryData &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_EncryptCBC" "', argument " "4"" of type '" "SecureBinaryData &""'"); - } - arg4 = reinterpret_cast< SecureBinaryData * >(argp4); - result = (arg1)->EncryptCBC(*arg2,*arg3,*arg4); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoAES_DecryptCBC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *arg1 = (CryptoAES *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoAES_DecryptCBC",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoAES, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoAES_DecryptCBC" "', argument " "1"" of type '" "CryptoAES *""'"); - } - arg1 = reinterpret_cast< CryptoAES * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoAES_DecryptCBC" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCBC" "', argument " "2"" of type '" "SecureBinaryData &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoAES_DecryptCBC" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCBC" "', argument " "3"" of type '" "SecureBinaryData &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoAES_DecryptCBC" "', argument " "4"" of type '" "SecureBinaryData""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoAES_DecryptCBC" "', argument " "4"" of type '" "SecureBinaryData""'"); - } else { - SecureBinaryData * temp = reinterpret_cast< SecureBinaryData * >(argp4); - arg4 = *temp; - if (SWIG_IsNewObj(res4)) delete temp; - } - } - result = (arg1)->DecryptCBC(*arg2,*arg3,arg4); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_CryptoAES(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoAES *arg1 = (CryptoAES *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_CryptoAES",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoAES, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CryptoAES" "', argument " "1"" of type '" "CryptoAES *""'"); - } - arg1 = reinterpret_cast< CryptoAES * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *CryptoAES_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_CryptoAES, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_CryptoECDSA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_CryptoECDSA")) SWIG_fail; - result = (CryptoECDSA *)new CryptoECDSA(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CryptoECDSA, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_CreateNewPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey result; - - if (!PyArg_ParseTuple(args,(char *)":CryptoECDSA_CreateNewPrivateKey")) SWIG_fail; - result = CryptoECDSA::CreateNewPrivateKey(); - resultobj = SWIG_NewPointerObj((new CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey(static_cast< const CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey& >(result))), SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ParsePrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_ParsePrivateKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ParsePrivateKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ParsePrivateKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = CryptoECDSA::ParsePrivateKey((SecureBinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj((new CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey(static_cast< const CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey& >(result))), SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ParsePublicKey__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_ParsePublicKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - result = CryptoECDSA::ParsePublicKey((SecureBinaryData const &)*arg1); - resultobj = SWIG_NewPointerObj((new CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey(static_cast< const CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey& >(result))), SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ParsePublicKey__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey result; - - if (!PyArg_ParseTuple(args,(char *)"OO:CryptoECDSA_ParsePublicKey",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ParsePublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = CryptoECDSA::ParsePublicKey((SecureBinaryData const &)*arg1,(SecureBinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj((new CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey(static_cast< const CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey& >(result))), SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ParsePublicKey(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ParsePublicKey__SWIG_0(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ParsePublicKey__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_ParsePublicKey'.\n" - " Possible C/C++ prototypes are:\n" - " ParsePublicKey(SecureBinaryData const &)\n" - " CryptoECDSA::ParsePublicKey(SecureBinaryData const &,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_SerializePrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_SerializePrivateKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_SerializePrivateKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SerializePrivateKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - arg1 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey * >(argp1); - result = CryptoECDSA::SerializePrivateKey((CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)*arg1); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_SerializePublicKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_SerializePublicKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_SerializePublicKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SerializePublicKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - arg1 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey * >(argp1); - result = CryptoECDSA::SerializePublicKey((CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &)*arg1); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputePublicKey__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_ComputePublicKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ComputePublicKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputePublicKey" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - arg1 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey * >(argp1); - result = CryptoECDSA::ComputePublicKey((CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)*arg1); - resultobj = SWIG_NewPointerObj((new CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey(static_cast< const CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey& >(result))), SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_CheckPubPrivKeyMatch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey *arg1 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:CryptoECDSA_CheckPubPrivKeyMatch",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "1"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - arg1 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "2"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "2"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - arg2 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey * >(argp2); - result = (bool)CryptoECDSA::CheckPubPrivKeyMatch((CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)*arg1,(CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_SignData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:CryptoECDSA_SignData",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_SignData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SignData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_SignData" "', argument " "2"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SignData" "', argument " "2"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &""'"); - } - arg2 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey * >(argp2); - result = CryptoECDSA::SignData((SecureBinaryData const &)*arg1,(CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)*arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_VerifyData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - SecureBinaryData *arg1 = 0 ; - SecureBinaryData *arg2 = 0 ; - CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_VerifyData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_VerifyData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "1"" of type '" "SecureBinaryData const &""'"); - } - arg1 = reinterpret_cast< SecureBinaryData * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_VerifyData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_VerifyData" "', argument " "3"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "3"" of type '" "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &""'"); - } - arg3 = reinterpret_cast< CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey * >(argp3); - result = (bool)CryptoECDSA::VerifyData((SecureBinaryData const &)*arg1,(SecureBinaryData const &)*arg2,(CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &)*arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_GenerateNewPrivateKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"O:CryptoECDSA_GenerateNewPrivateKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_GenerateNewPrivateKey" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - result = (arg1)->GenerateNewPrivateKey(); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputePublicKey__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OO:CryptoECDSA_ComputePublicKey",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ComputePublicKey" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_ComputePublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputePublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (arg1)->ComputePublicKey((SecureBinaryData const &)*arg2); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputePublicKey(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 2); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ComputePublicKey__SWIG_0(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ComputePublicKey__SWIG_1(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_ComputePublicKey'.\n" - " Possible C/C++ prototypes are:\n" - " ComputePublicKey(CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)\n" - " ComputePublicKey(CryptoECDSA *,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_VerifyPublicKeyValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OO:CryptoECDSA_VerifyPublicKeyValid",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_VerifyPublicKeyValid" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_VerifyPublicKeyValid" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyPublicKeyValid" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - result = (bool)(arg1)->VerifyPublicKeyValid((SecureBinaryData const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_CheckPubPrivKeyMatch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_CheckPubPrivKeyMatch",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_CheckPubPrivKeyMatch" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - result = (bool)(arg1)->CheckPubPrivKeyMatch((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_CheckPubPrivKeyMatch(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_CheckPubPrivKeyMatch__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_CheckPubPrivKeyMatch__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_CheckPubPrivKeyMatch'.\n" - " Possible C/C++ prototypes are:\n" - " CheckPubPrivKeyMatch(CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &,CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &)\n" - " CheckPubPrivKeyMatch(CryptoECDSA *,SecureBinaryData const &,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_SignData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_SignData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_SignData" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_SignData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SignData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_SignData" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_SignData" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - result = (arg1)->SignData((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_SignData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 3); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_SignData__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_SignData__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_SignData'.\n" - " Possible C/C++ prototypes are:\n" - " SignData(SecureBinaryData const &,CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey const &)\n" - " SignData(CryptoECDSA *,SecureBinaryData const &,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_VerifyData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoECDSA_VerifyData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_VerifyData" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_VerifyData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_VerifyData" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoECDSA_VerifyData" "', argument " "4"" of type '" "SecureBinaryData const &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_VerifyData" "', argument " "4"" of type '" "SecureBinaryData const &""'"); - } - arg4 = reinterpret_cast< SecureBinaryData * >(argp4); - result = (bool)(arg1)->VerifyData((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3,(SecureBinaryData const &)*arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_VerifyData(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_VerifyData__SWIG_0(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_VerifyData__SWIG_1(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_VerifyData'.\n" - " Possible C/C++ prototypes are:\n" - " VerifyData(SecureBinaryData const &,SecureBinaryData const &,CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey const &)\n" - " VerifyData(CryptoECDSA *,SecureBinaryData const &,SecureBinaryData const &,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputeChainedPrivateKey__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - SecureBinaryData arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoECDSA_ComputeChainedPrivateKey",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - { - res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "4"" of type '" "SecureBinaryData""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "4"" of type '" "SecureBinaryData""'"); - } else { - SecureBinaryData * temp = reinterpret_cast< SecureBinaryData * >(argp4); - arg4 = *temp; - if (SWIG_IsNewObj(res4)) delete temp; - } - } - result = (arg1)->ComputeChainedPrivateKey((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3,arg4); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputeChainedPrivateKey__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_ComputeChainedPrivateKey",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPrivateKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - result = (arg1)->ComputeChainedPrivateKey((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputeChainedPrivateKey(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = (int)PyObject_Length(args); - for (ii = 0; (ii < argc) && (ii < 4); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ComputeChainedPrivateKey__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CryptoECDSA, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_SecureBinaryData, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_CryptoECDSA_ComputeChainedPrivateKey__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CryptoECDSA_ComputeChainedPrivateKey'.\n" - " Possible C/C++ prototypes are:\n" - " ComputeChainedPrivateKey(CryptoECDSA *,SecureBinaryData const &,SecureBinaryData const &,SecureBinaryData)\n" - " ComputeChainedPrivateKey(CryptoECDSA *,SecureBinaryData const &,SecureBinaryData const &)\n"); - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ComputeChainedPublicKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - SecureBinaryData *arg2 = 0 ; - SecureBinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - SecureBinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_ComputeChainedPublicKey",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ComputeChainedPublicKey" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CryptoECDSA_ComputeChainedPublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPublicKey" "', argument " "2"" of type '" "SecureBinaryData const &""'"); - } - arg2 = reinterpret_cast< SecureBinaryData * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_SecureBinaryData, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CryptoECDSA_ComputeChainedPublicKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CryptoECDSA_ComputeChainedPublicKey" "', argument " "3"" of type '" "SecureBinaryData const &""'"); - } - arg3 = reinterpret_cast< SecureBinaryData * >(argp3); - result = (arg1)->ComputeChainedPublicKey((SecureBinaryData const &)*arg2,(SecureBinaryData const &)*arg3); - resultobj = SWIG_NewPointerObj((new SecureBinaryData(static_cast< const SecureBinaryData& >(result))), SWIGTYPE_p_SecureBinaryData, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ECVerifyPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - bool result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_ECVerifyPoint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ECVerifyPoint" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - result = (bool)(arg1)->ECVerifyPoint((BinaryData const &)*arg2,(BinaryData const &)*arg3); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ECMultiplyScalars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_ECMultiplyScalars",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ECMultiplyScalars" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - result = (arg1)->ECMultiplyScalars((BinaryData const &)*arg2,(BinaryData const &)*arg3); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ECMultiplyPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - BinaryData *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - BinaryData bdObj4 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:CryptoECDSA_ECMultiplyPoint",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ECMultiplyPoint" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - result = (arg1)->ECMultiplyPoint((BinaryData const &)*arg2,(BinaryData const &)*arg3,(BinaryData const &)*arg4); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ECAddPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - BinaryData *arg4 = 0 ; - BinaryData *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - BinaryData bdObj4 ; - BinaryData bdObj5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:CryptoECDSA_ECAddPoints",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ECAddPoints" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - { - if(!PyString_Check(obj3)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj4.copyFrom((uint8_t*)PyString_AsString(obj3), PyString_Size(obj3)); - arg4 = &bdObj4; - } - { - if(!PyString_Check(obj4)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj5.copyFrom((uint8_t*)PyString_AsString(obj4), PyString_Size(obj4)); - arg5 = &bdObj5; - } - result = (arg1)->ECAddPoints((BinaryData const &)*arg2,(BinaryData const &)*arg3,(BinaryData const &)*arg4,(BinaryData const &)*arg5); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CryptoECDSA_ECInverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - BinaryData *arg2 = 0 ; - BinaryData *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - BinaryData bdObj2 ; - BinaryData bdObj3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - BinaryData result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:CryptoECDSA_ECInverse",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CryptoECDSA_ECInverse" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - { - if(!PyString_Check(obj1)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj2.copyFrom((uint8_t*)PyString_AsString(obj1), PyString_Size(obj1)); - arg2 = &bdObj2; - } - { - if(!PyString_Check(obj2)) - { - PyErr_SetString(PyExc_ValueError, "Expected string argument!"); - return NULL; - } - bdObj3.copyFrom((uint8_t*)PyString_AsString(obj2), PyString_Size(obj2)); - arg3 = &bdObj3; - } - result = (arg1)->ECInverse((BinaryData const &)*arg2,(BinaryData const &)*arg3); - { - resultobj = PyString_FromStringAndSize((char*)((&result)->getPtr()), (&result)->getSize()); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_CryptoECDSA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - CryptoECDSA *arg1 = (CryptoECDSA *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_CryptoECDSA",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CryptoECDSA, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CryptoECDSA" "', argument " "1"" of type '" "CryptoECDSA *""'"); - } - arg1 = reinterpret_cast< CryptoECDSA * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *CryptoECDSA_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_CryptoECDSA, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL}, - { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_int_iterator", _wrap_vector_int_iterator, METH_VARARGS, NULL}, - { (char *)"vector_int___nonzero__", _wrap_vector_int___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_int___bool__", _wrap_vector_int___bool__, METH_VARARGS, NULL}, - { (char *)"vector_int___len__", _wrap_vector_int___len__, METH_VARARGS, NULL}, - { (char *)"vector_int_pop", _wrap_vector_int_pop, METH_VARARGS, NULL}, - { (char *)"vector_int___getslice__", _wrap_vector_int___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_int___setslice__", _wrap_vector_int___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_int___delslice__", _wrap_vector_int___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_int___delitem__", _wrap_vector_int___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_int___getitem__", _wrap_vector_int___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_int___setitem__", _wrap_vector_int___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_int_append", _wrap_vector_int_append, METH_VARARGS, NULL}, - { (char *)"vector_int_empty", _wrap_vector_int_empty, METH_VARARGS, NULL}, - { (char *)"vector_int_size", _wrap_vector_int_size, METH_VARARGS, NULL}, - { (char *)"vector_int_clear", _wrap_vector_int_clear, METH_VARARGS, NULL}, - { (char *)"vector_int_swap", _wrap_vector_int_swap, METH_VARARGS, NULL}, - { (char *)"vector_int_get_allocator", _wrap_vector_int_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_int_begin", _wrap_vector_int_begin, METH_VARARGS, NULL}, - { (char *)"vector_int_end", _wrap_vector_int_end, METH_VARARGS, NULL}, - { (char *)"vector_int_rbegin", _wrap_vector_int_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_int_rend", _wrap_vector_int_rend, METH_VARARGS, NULL}, - { (char *)"vector_int_pop_back", _wrap_vector_int_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_int_erase", _wrap_vector_int_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_int", _wrap_new_vector_int, METH_VARARGS, NULL}, - { (char *)"vector_int_push_back", _wrap_vector_int_push_back, METH_VARARGS, NULL}, - { (char *)"vector_int_front", _wrap_vector_int_front, METH_VARARGS, NULL}, - { (char *)"vector_int_back", _wrap_vector_int_back, METH_VARARGS, NULL}, - { (char *)"vector_int_assign", _wrap_vector_int_assign, METH_VARARGS, NULL}, - { (char *)"vector_int_resize", _wrap_vector_int_resize, METH_VARARGS, NULL}, - { (char *)"vector_int_insert", _wrap_vector_int_insert, METH_VARARGS, NULL}, - { (char *)"vector_int_reserve", _wrap_vector_int_reserve, METH_VARARGS, NULL}, - { (char *)"vector_int_capacity", _wrap_vector_int_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_int", _wrap_delete_vector_int, METH_VARARGS, NULL}, - { (char *)"vector_int_swigregister", vector_int_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_float_iterator", _wrap_vector_float_iterator, METH_VARARGS, NULL}, - { (char *)"vector_float___nonzero__", _wrap_vector_float___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_float___bool__", _wrap_vector_float___bool__, METH_VARARGS, NULL}, - { (char *)"vector_float___len__", _wrap_vector_float___len__, METH_VARARGS, NULL}, - { (char *)"vector_float_pop", _wrap_vector_float_pop, METH_VARARGS, NULL}, - { (char *)"vector_float___getslice__", _wrap_vector_float___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_float___setslice__", _wrap_vector_float___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_float___delslice__", _wrap_vector_float___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_float___delitem__", _wrap_vector_float___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_float___getitem__", _wrap_vector_float___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_float___setitem__", _wrap_vector_float___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_float_append", _wrap_vector_float_append, METH_VARARGS, NULL}, - { (char *)"vector_float_empty", _wrap_vector_float_empty, METH_VARARGS, NULL}, - { (char *)"vector_float_size", _wrap_vector_float_size, METH_VARARGS, NULL}, - { (char *)"vector_float_clear", _wrap_vector_float_clear, METH_VARARGS, NULL}, - { (char *)"vector_float_swap", _wrap_vector_float_swap, METH_VARARGS, NULL}, - { (char *)"vector_float_get_allocator", _wrap_vector_float_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_float_begin", _wrap_vector_float_begin, METH_VARARGS, NULL}, - { (char *)"vector_float_end", _wrap_vector_float_end, METH_VARARGS, NULL}, - { (char *)"vector_float_rbegin", _wrap_vector_float_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_float_rend", _wrap_vector_float_rend, METH_VARARGS, NULL}, - { (char *)"vector_float_pop_back", _wrap_vector_float_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_float_erase", _wrap_vector_float_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_float", _wrap_new_vector_float, METH_VARARGS, NULL}, - { (char *)"vector_float_push_back", _wrap_vector_float_push_back, METH_VARARGS, NULL}, - { (char *)"vector_float_front", _wrap_vector_float_front, METH_VARARGS, NULL}, - { (char *)"vector_float_back", _wrap_vector_float_back, METH_VARARGS, NULL}, - { (char *)"vector_float_assign", _wrap_vector_float_assign, METH_VARARGS, NULL}, - { (char *)"vector_float_resize", _wrap_vector_float_resize, METH_VARARGS, NULL}, - { (char *)"vector_float_insert", _wrap_vector_float_insert, METH_VARARGS, NULL}, - { (char *)"vector_float_reserve", _wrap_vector_float_reserve, METH_VARARGS, NULL}, - { (char *)"vector_float_capacity", _wrap_vector_float_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_float", _wrap_delete_vector_float, METH_VARARGS, NULL}, - { (char *)"vector_float_swigregister", vector_float_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_iterator", _wrap_vector_BinaryData_iterator, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___nonzero__", _wrap_vector_BinaryData___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___bool__", _wrap_vector_BinaryData___bool__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___len__", _wrap_vector_BinaryData___len__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_pop", _wrap_vector_BinaryData_pop, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___getslice__", _wrap_vector_BinaryData___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___setslice__", _wrap_vector_BinaryData___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___delslice__", _wrap_vector_BinaryData___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___delitem__", _wrap_vector_BinaryData___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___getitem__", _wrap_vector_BinaryData___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData___setitem__", _wrap_vector_BinaryData___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_append", _wrap_vector_BinaryData_append, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_empty", _wrap_vector_BinaryData_empty, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_size", _wrap_vector_BinaryData_size, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_clear", _wrap_vector_BinaryData_clear, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_swap", _wrap_vector_BinaryData_swap, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_get_allocator", _wrap_vector_BinaryData_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_begin", _wrap_vector_BinaryData_begin, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_end", _wrap_vector_BinaryData_end, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_rbegin", _wrap_vector_BinaryData_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_rend", _wrap_vector_BinaryData_rend, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_pop_back", _wrap_vector_BinaryData_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_erase", _wrap_vector_BinaryData_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_BinaryData", _wrap_new_vector_BinaryData, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_push_back", _wrap_vector_BinaryData_push_back, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_front", _wrap_vector_BinaryData_front, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_back", _wrap_vector_BinaryData_back, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_assign", _wrap_vector_BinaryData_assign, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_resize", _wrap_vector_BinaryData_resize, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_insert", _wrap_vector_BinaryData_insert, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_reserve", _wrap_vector_BinaryData_reserve, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_capacity", _wrap_vector_BinaryData_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_BinaryData", _wrap_delete_vector_BinaryData, METH_VARARGS, NULL}, - { (char *)"vector_BinaryData_swigregister", vector_BinaryData_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_iterator", _wrap_vector_LedgerEntry_iterator, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___nonzero__", _wrap_vector_LedgerEntry___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___bool__", _wrap_vector_LedgerEntry___bool__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___len__", _wrap_vector_LedgerEntry___len__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_pop", _wrap_vector_LedgerEntry_pop, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___getslice__", _wrap_vector_LedgerEntry___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___setslice__", _wrap_vector_LedgerEntry___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___delslice__", _wrap_vector_LedgerEntry___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___delitem__", _wrap_vector_LedgerEntry___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___getitem__", _wrap_vector_LedgerEntry___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry___setitem__", _wrap_vector_LedgerEntry___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_append", _wrap_vector_LedgerEntry_append, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_empty", _wrap_vector_LedgerEntry_empty, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_size", _wrap_vector_LedgerEntry_size, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_clear", _wrap_vector_LedgerEntry_clear, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_swap", _wrap_vector_LedgerEntry_swap, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_get_allocator", _wrap_vector_LedgerEntry_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_begin", _wrap_vector_LedgerEntry_begin, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_end", _wrap_vector_LedgerEntry_end, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_rbegin", _wrap_vector_LedgerEntry_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_rend", _wrap_vector_LedgerEntry_rend, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_pop_back", _wrap_vector_LedgerEntry_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_erase", _wrap_vector_LedgerEntry_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_LedgerEntry", _wrap_new_vector_LedgerEntry, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_push_back", _wrap_vector_LedgerEntry_push_back, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_front", _wrap_vector_LedgerEntry_front, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_back", _wrap_vector_LedgerEntry_back, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_assign", _wrap_vector_LedgerEntry_assign, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_resize", _wrap_vector_LedgerEntry_resize, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_insert", _wrap_vector_LedgerEntry_insert, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_reserve", _wrap_vector_LedgerEntry_reserve, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_capacity", _wrap_vector_LedgerEntry_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_LedgerEntry", _wrap_delete_vector_LedgerEntry, METH_VARARGS, NULL}, - { (char *)"vector_LedgerEntry_swigregister", vector_LedgerEntry_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_iterator", _wrap_vector_TxRefPtr_iterator, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___nonzero__", _wrap_vector_TxRefPtr___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___bool__", _wrap_vector_TxRefPtr___bool__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___len__", _wrap_vector_TxRefPtr___len__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_pop", _wrap_vector_TxRefPtr_pop, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___getslice__", _wrap_vector_TxRefPtr___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___setslice__", _wrap_vector_TxRefPtr___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___delslice__", _wrap_vector_TxRefPtr___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___delitem__", _wrap_vector_TxRefPtr___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___getitem__", _wrap_vector_TxRefPtr___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr___setitem__", _wrap_vector_TxRefPtr___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_append", _wrap_vector_TxRefPtr_append, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_empty", _wrap_vector_TxRefPtr_empty, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_size", _wrap_vector_TxRefPtr_size, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_clear", _wrap_vector_TxRefPtr_clear, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_swap", _wrap_vector_TxRefPtr_swap, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_get_allocator", _wrap_vector_TxRefPtr_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_begin", _wrap_vector_TxRefPtr_begin, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_end", _wrap_vector_TxRefPtr_end, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_rbegin", _wrap_vector_TxRefPtr_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_rend", _wrap_vector_TxRefPtr_rend, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_pop_back", _wrap_vector_TxRefPtr_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_erase", _wrap_vector_TxRefPtr_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_TxRefPtr", _wrap_new_vector_TxRefPtr, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_push_back", _wrap_vector_TxRefPtr_push_back, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_front", _wrap_vector_TxRefPtr_front, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_back", _wrap_vector_TxRefPtr_back, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_assign", _wrap_vector_TxRefPtr_assign, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_resize", _wrap_vector_TxRefPtr_resize, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_insert", _wrap_vector_TxRefPtr_insert, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_reserve", _wrap_vector_TxRefPtr_reserve, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_capacity", _wrap_vector_TxRefPtr_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_TxRefPtr", _wrap_delete_vector_TxRefPtr, METH_VARARGS, NULL}, - { (char *)"vector_TxRefPtr_swigregister", vector_TxRefPtr_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_iterator", _wrap_vector_HeaderRefPtr_iterator, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___nonzero__", _wrap_vector_HeaderRefPtr___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___bool__", _wrap_vector_HeaderRefPtr___bool__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___len__", _wrap_vector_HeaderRefPtr___len__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_pop", _wrap_vector_HeaderRefPtr_pop, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___getslice__", _wrap_vector_HeaderRefPtr___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___setslice__", _wrap_vector_HeaderRefPtr___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___delslice__", _wrap_vector_HeaderRefPtr___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___delitem__", _wrap_vector_HeaderRefPtr___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___getitem__", _wrap_vector_HeaderRefPtr___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr___setitem__", _wrap_vector_HeaderRefPtr___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_append", _wrap_vector_HeaderRefPtr_append, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_empty", _wrap_vector_HeaderRefPtr_empty, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_size", _wrap_vector_HeaderRefPtr_size, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_clear", _wrap_vector_HeaderRefPtr_clear, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_swap", _wrap_vector_HeaderRefPtr_swap, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_get_allocator", _wrap_vector_HeaderRefPtr_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_begin", _wrap_vector_HeaderRefPtr_begin, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_end", _wrap_vector_HeaderRefPtr_end, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_rbegin", _wrap_vector_HeaderRefPtr_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_rend", _wrap_vector_HeaderRefPtr_rend, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_pop_back", _wrap_vector_HeaderRefPtr_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_erase", _wrap_vector_HeaderRefPtr_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_HeaderRefPtr", _wrap_new_vector_HeaderRefPtr, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_push_back", _wrap_vector_HeaderRefPtr_push_back, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_front", _wrap_vector_HeaderRefPtr_front, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_back", _wrap_vector_HeaderRefPtr_back, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_assign", _wrap_vector_HeaderRefPtr_assign, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_resize", _wrap_vector_HeaderRefPtr_resize, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_insert", _wrap_vector_HeaderRefPtr_insert, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_reserve", _wrap_vector_HeaderRefPtr_reserve, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_capacity", _wrap_vector_HeaderRefPtr_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_HeaderRefPtr", _wrap_delete_vector_HeaderRefPtr, METH_VARARGS, NULL}, - { (char *)"vector_HeaderRefPtr_swigregister", vector_HeaderRefPtr_swigregister, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_iterator", _wrap_vector_UnspentTxOut_iterator, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___nonzero__", _wrap_vector_UnspentTxOut___nonzero__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___bool__", _wrap_vector_UnspentTxOut___bool__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___len__", _wrap_vector_UnspentTxOut___len__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_pop", _wrap_vector_UnspentTxOut_pop, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___getslice__", _wrap_vector_UnspentTxOut___getslice__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___setslice__", _wrap_vector_UnspentTxOut___setslice__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___delslice__", _wrap_vector_UnspentTxOut___delslice__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___delitem__", _wrap_vector_UnspentTxOut___delitem__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___getitem__", _wrap_vector_UnspentTxOut___getitem__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut___setitem__", _wrap_vector_UnspentTxOut___setitem__, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_append", _wrap_vector_UnspentTxOut_append, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_empty", _wrap_vector_UnspentTxOut_empty, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_size", _wrap_vector_UnspentTxOut_size, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_clear", _wrap_vector_UnspentTxOut_clear, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_swap", _wrap_vector_UnspentTxOut_swap, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_get_allocator", _wrap_vector_UnspentTxOut_get_allocator, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_begin", _wrap_vector_UnspentTxOut_begin, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_end", _wrap_vector_UnspentTxOut_end, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_rbegin", _wrap_vector_UnspentTxOut_rbegin, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_rend", _wrap_vector_UnspentTxOut_rend, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_pop_back", _wrap_vector_UnspentTxOut_pop_back, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_erase", _wrap_vector_UnspentTxOut_erase, METH_VARARGS, NULL}, - { (char *)"new_vector_UnspentTxOut", _wrap_new_vector_UnspentTxOut, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_push_back", _wrap_vector_UnspentTxOut_push_back, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_front", _wrap_vector_UnspentTxOut_front, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_back", _wrap_vector_UnspentTxOut_back, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_assign", _wrap_vector_UnspentTxOut_assign, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_resize", _wrap_vector_UnspentTxOut_resize, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_insert", _wrap_vector_UnspentTxOut_insert, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_reserve", _wrap_vector_UnspentTxOut_reserve, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_capacity", _wrap_vector_UnspentTxOut_capacity, METH_VARARGS, NULL}, - { (char *)"delete_vector_UnspentTxOut", _wrap_delete_vector_UnspentTxOut, METH_VARARGS, NULL}, - { (char *)"vector_UnspentTxOut_swigregister", vector_UnspentTxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getVersion", _wrap_BlockHeader_getVersion, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getPrevHash", _wrap_BlockHeader_getPrevHash, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getMerkleRoot", _wrap_BlockHeader_getMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getTimestamp", _wrap_BlockHeader_getTimestamp, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getDiffBits", _wrap_BlockHeader_getDiffBits, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getNonce", _wrap_BlockHeader_getNonce, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getThisHash", _wrap_BlockHeader_getThisHash, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getNextHash", _wrap_BlockHeader_getNextHash, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getNumTx", _wrap_BlockHeader_getNumTx, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getBlockHeight", _wrap_BlockHeader_getBlockHeight, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getDifficulty", _wrap_BlockHeader_getDifficulty, METH_VARARGS, NULL}, - { (char *)"BlockHeader_getDifficultySum", _wrap_BlockHeader_getDifficultySum, METH_VARARGS, NULL}, - { (char *)"BlockHeader_isMainBranch", _wrap_BlockHeader_isMainBranch, METH_VARARGS, NULL}, - { (char *)"BlockHeader_isOrphan", _wrap_BlockHeader_isOrphan, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setVersion", _wrap_BlockHeader_setVersion, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setPrevHash", _wrap_BlockHeader_setPrevHash, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setMerkleRoot", _wrap_BlockHeader_setMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setTimestamp", _wrap_BlockHeader_setTimestamp, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setDiffBits", _wrap_BlockHeader_setDiffBits, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setNonce", _wrap_BlockHeader_setNonce, METH_VARARGS, NULL}, - { (char *)"BlockHeader_setNextHash", _wrap_BlockHeader_setNextHash, METH_VARARGS, NULL}, - { (char *)"BlockHeader_serialize", _wrap_BlockHeader_serialize, METH_VARARGS, NULL}, - { (char *)"BlockHeader_unserialize_1_", _wrap_BlockHeader_unserialize_1_, METH_VARARGS, NULL}, - { (char *)"BlockHeader_unserialize", _wrap_BlockHeader_unserialize, METH_VARARGS, NULL}, - { (char *)"new_BlockHeader", _wrap_new_BlockHeader, METH_VARARGS, NULL}, - { (char *)"BlockHeader_pprint", _wrap_BlockHeader_pprint, METH_VARARGS, NULL}, - { (char *)"BlockHeader_findNonce", _wrap_BlockHeader_findNonce, METH_VARARGS, NULL}, - { (char *)"delete_BlockHeader", _wrap_delete_BlockHeader, METH_VARARGS, NULL}, - { (char *)"BlockHeader_swigregister", BlockHeader_swigregister, METH_VARARGS, NULL}, - { (char *)"new_OutPoint", _wrap_new_OutPoint, METH_VARARGS, NULL}, - { (char *)"OutPoint_getTxHash", _wrap_OutPoint_getTxHash, METH_VARARGS, NULL}, - { (char *)"OutPoint_getTxHashRef", _wrap_OutPoint_getTxHashRef, METH_VARARGS, NULL}, - { (char *)"OutPoint_getTxOutIndex", _wrap_OutPoint_getTxOutIndex, METH_VARARGS, NULL}, - { (char *)"OutPoint_setTxHash", _wrap_OutPoint_setTxHash, METH_VARARGS, NULL}, - { (char *)"OutPoint_setTxOutIndex", _wrap_OutPoint_setTxOutIndex, METH_VARARGS, NULL}, - { (char *)"OutPoint___lt__", _wrap_OutPoint___lt__, METH_VARARGS, NULL}, - { (char *)"OutPoint___eq__", _wrap_OutPoint___eq__, METH_VARARGS, NULL}, - { (char *)"OutPoint_serialize", _wrap_OutPoint_serialize, METH_VARARGS, NULL}, - { (char *)"OutPoint_unserialize", _wrap_OutPoint_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_OutPoint", _wrap_delete_OutPoint, METH_VARARGS, NULL}, - { (char *)"OutPoint_swigregister", OutPoint_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxIn", _wrap_new_TxIn, METH_VARARGS, NULL}, - { (char *)"TxIn_getOutPoint", _wrap_TxIn_getOutPoint, METH_VARARGS, NULL}, - { (char *)"TxIn_getBinScript", _wrap_TxIn_getBinScript, METH_VARARGS, NULL}, - { (char *)"TxIn_getSequence", _wrap_TxIn_getSequence, METH_VARARGS, NULL}, - { (char *)"TxIn_getScriptSize", _wrap_TxIn_getScriptSize, METH_VARARGS, NULL}, - { (char *)"TxIn_getSize", _wrap_TxIn_getSize, METH_VARARGS, NULL}, - { (char *)"TxIn_setOutPoint", _wrap_TxIn_setOutPoint, METH_VARARGS, NULL}, - { (char *)"TxIn_setBinScript", _wrap_TxIn_setBinScript, METH_VARARGS, NULL}, - { (char *)"TxIn_setSequence", _wrap_TxIn_setSequence, METH_VARARGS, NULL}, - { (char *)"TxIn_setIsMine", _wrap_TxIn_setIsMine, METH_VARARGS, NULL}, - { (char *)"TxIn_serialize", _wrap_TxIn_serialize, METH_VARARGS, NULL}, - { (char *)"TxIn_unserialize", _wrap_TxIn_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_TxIn", _wrap_delete_TxIn, METH_VARARGS, NULL}, - { (char *)"TxIn_swigregister", TxIn_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxOut", _wrap_new_TxOut, METH_VARARGS, NULL}, - { (char *)"TxOut_getValue", _wrap_TxOut_getValue, METH_VARARGS, NULL}, - { (char *)"TxOut_getPkScript", _wrap_TxOut_getPkScript, METH_VARARGS, NULL}, - { (char *)"TxOut_getScriptSize", _wrap_TxOut_getScriptSize, METH_VARARGS, NULL}, - { (char *)"TxOut_isStandard", _wrap_TxOut_isStandard, METH_VARARGS, NULL}, - { (char *)"TxOut_getRecipientAddr", _wrap_TxOut_getRecipientAddr, METH_VARARGS, NULL}, - { (char *)"TxOut_setValue", _wrap_TxOut_setValue, METH_VARARGS, NULL}, - { (char *)"TxOut_setPkScript", _wrap_TxOut_setPkScript, METH_VARARGS, NULL}, - { (char *)"TxOut_serialize", _wrap_TxOut_serialize, METH_VARARGS, NULL}, - { (char *)"TxOut_unserialize", _wrap_TxOut_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_TxOut", _wrap_delete_TxOut, METH_VARARGS, NULL}, - { (char *)"TxOut_swigregister", TxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"new_Tx", _wrap_new_Tx, METH_VARARGS, NULL}, - { (char *)"Tx_getVersion_", _wrap_Tx_getVersion_, METH_VARARGS, NULL}, - { (char *)"Tx_getNumTxIn_", _wrap_Tx_getNumTxIn_, METH_VARARGS, NULL}, - { (char *)"Tx_getNumTxOut_", _wrap_Tx_getNumTxOut_, METH_VARARGS, NULL}, - { (char *)"Tx_getTxInList_", _wrap_Tx_getTxInList_, METH_VARARGS, NULL}, - { (char *)"Tx_getTxOutList_", _wrap_Tx_getTxOutList_, METH_VARARGS, NULL}, - { (char *)"Tx_getLockTime_", _wrap_Tx_getLockTime_, METH_VARARGS, NULL}, - { (char *)"Tx_getNumBytes", _wrap_Tx_getNumBytes, METH_VARARGS, NULL}, - { (char *)"Tx_getHeaderPtr", _wrap_Tx_getHeaderPtr, METH_VARARGS, NULL}, - { (char *)"Tx_getHeaderRefPtr", _wrap_Tx_getHeaderRefPtr, METH_VARARGS, NULL}, - { (char *)"Tx_createOutPoint", _wrap_Tx_createOutPoint, METH_VARARGS, NULL}, - { (char *)"Tx_serialize", _wrap_Tx_serialize, METH_VARARGS, NULL}, - { (char *)"Tx_unserialize", _wrap_Tx_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_Tx", _wrap_delete_Tx, METH_VARARGS, NULL}, - { (char *)"Tx_swigregister", Tx_swigregister, METH_VARARGS, NULL}, - { (char *)"new_UnspentTxOut", _wrap_new_UnspentTxOut, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_init", _wrap_UnspentTxOut_init, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getTxHash", _wrap_UnspentTxOut_getTxHash, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getTxOutIndex", _wrap_UnspentTxOut_getTxOutIndex, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getValue", _wrap_UnspentTxOut_getValue, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getTxHeight", _wrap_UnspentTxOut_getTxHeight, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getNumConfirm", _wrap_UnspentTxOut_getNumConfirm, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getScript", _wrap_UnspentTxOut_getScript, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_getRecipientAddr", _wrap_UnspentTxOut_getRecipientAddr, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_updateNumConfirm", _wrap_UnspentTxOut_updateNumConfirm, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_CompareNaive", _wrap_UnspentTxOut_CompareNaive, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_CompareTech1", _wrap_UnspentTxOut_CompareTech1, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_CompareTech2", _wrap_UnspentTxOut_CompareTech2, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_CompareTech3", _wrap_UnspentTxOut_CompareTech3, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_sortTxOutVect", _wrap_UnspentTxOut_sortTxOutVect, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_pprintOneLine", _wrap_UnspentTxOut_pprintOneLine, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txHash__set", _wrap_UnspentTxOut_txHash__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txHash__get", _wrap_UnspentTxOut_txHash__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txOutIndex__set", _wrap_UnspentTxOut_txOutIndex__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txOutIndex__get", _wrap_UnspentTxOut_txOutIndex__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txHeight__set", _wrap_UnspentTxOut_txHeight__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_txHeight__get", _wrap_UnspentTxOut_txHeight__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_value__set", _wrap_UnspentTxOut_value__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_value__get", _wrap_UnspentTxOut_value__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_script__set", _wrap_UnspentTxOut_script__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_script__get", _wrap_UnspentTxOut_script__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_numConfirm__set", _wrap_UnspentTxOut_numConfirm__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_numConfirm__get", _wrap_UnspentTxOut_numConfirm__get, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_targetTxAmount__set", _wrap_UnspentTxOut_targetTxAmount__set, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_targetTxAmount__get", _wrap_UnspentTxOut_targetTxAmount__get, METH_VARARGS, NULL}, - { (char *)"delete_UnspentTxOut", _wrap_delete_UnspentTxOut, METH_VARARGS, NULL}, - { (char *)"UnspentTxOut_swigregister", UnspentTxOut_swigregister, METH_VARARGS, NULL}, - { (char *)"new_BlockHeaderRef", _wrap_new_BlockHeaderRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_unserialize_1_", _wrap_BlockHeaderRef_unserialize_1_, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getVersion", _wrap_BlockHeaderRef_getVersion, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getThisHash", _wrap_BlockHeaderRef_getThisHash, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getPrevHash", _wrap_BlockHeaderRef_getPrevHash, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getNextHash", _wrap_BlockHeaderRef_getNextHash, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getMerkleRoot", _wrap_BlockHeaderRef_getMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getDiffBits", _wrap_BlockHeaderRef_getDiffBits, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getTimestamp", _wrap_BlockHeaderRef_getTimestamp, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getNonce", _wrap_BlockHeaderRef_getNonce, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getBlockHeight", _wrap_BlockHeaderRef_getBlockHeight, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_isMainBranch", _wrap_BlockHeaderRef_isMainBranch, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_isOrphan", _wrap_BlockHeaderRef_isOrphan, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getDifficulty", _wrap_BlockHeaderRef_getDifficulty, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getDifficultySum", _wrap_BlockHeaderRef_getDifficultySum, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getThisHashRef", _wrap_BlockHeaderRef_getThisHashRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getPrevHashRef", _wrap_BlockHeaderRef_getPrevHashRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getNextHashRef", _wrap_BlockHeaderRef_getNextHashRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getMerkleRootRef", _wrap_BlockHeaderRef_getMerkleRootRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getDiffBitsRef", _wrap_BlockHeaderRef_getDiffBitsRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getBlkStartByte", _wrap_BlockHeaderRef_getBlkStartByte, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getNumTx", _wrap_BlockHeaderRef_getNumTx, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getPtr", _wrap_BlockHeaderRef_getPtr, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getSize", _wrap_BlockHeaderRef_getSize, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_isInitialized", _wrap_BlockHeaderRef_isInitialized, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getBlockSize", _wrap_BlockHeaderRef_getBlockSize, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getTxRefPtrList", _wrap_BlockHeaderRef_getTxRefPtrList, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getTxHashList", _wrap_BlockHeaderRef_getTxHashList, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_calcMerkleRoot", _wrap_BlockHeaderRef_calcMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_verifyMerkleRoot", _wrap_BlockHeaderRef_verifyMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_verifyIntegrity", _wrap_BlockHeaderRef_verifyIntegrity, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_getCopy", _wrap_BlockHeaderRef_getCopy, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_pprint", _wrap_BlockHeaderRef_pprint, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_pprintAlot", _wrap_BlockHeaderRef_pprintAlot, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_serialize", _wrap_BlockHeaderRef_serialize, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_serializeRef", _wrap_BlockHeaderRef_serializeRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_serializeWholeBlock", _wrap_BlockHeaderRef_serializeWholeBlock, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_unserialize", _wrap_BlockHeaderRef_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_BlockHeaderRef", _wrap_delete_BlockHeaderRef, METH_VARARGS, NULL}, - { (char *)"BlockHeaderRef_swigregister", BlockHeaderRef_swigregister, METH_VARARGS, NULL}, - { (char *)"new_OutPointRef", _wrap_new_OutPointRef, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getPtr", _wrap_OutPointRef_getPtr, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getSize", _wrap_OutPointRef_getSize, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getCopy", _wrap_OutPointRef_getCopy, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getTxHash", _wrap_OutPointRef_getTxHash, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getTxHashRef", _wrap_OutPointRef_getTxHashRef, METH_VARARGS, NULL}, - { (char *)"OutPointRef_getTxOutIndex", _wrap_OutPointRef_getTxOutIndex, METH_VARARGS, NULL}, - { (char *)"OutPointRef_serialize", _wrap_OutPointRef_serialize, METH_VARARGS, NULL}, - { (char *)"OutPointRef_serializeRef", _wrap_OutPointRef_serializeRef, METH_VARARGS, NULL}, - { (char *)"OutPointRef_unserialize", _wrap_OutPointRef_unserialize, METH_VARARGS, NULL}, - { (char *)"delete_OutPointRef", _wrap_delete_OutPointRef, METH_VARARGS, NULL}, - { (char *)"OutPointRef_swigregister", OutPointRef_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxInRef", _wrap_new_TxInRef, METH_VARARGS, NULL}, - { (char *)"TxInRef_getPtr", _wrap_TxInRef_getPtr, METH_VARARGS, NULL}, - { (char *)"TxInRef_getSize", _wrap_TxInRef_getSize, METH_VARARGS, NULL}, - { (char *)"TxInRef_isStandard", _wrap_TxInRef_isStandard, METH_VARARGS, NULL}, - { (char *)"TxInRef_isCoinbase", _wrap_TxInRef_isCoinbase, METH_VARARGS, NULL}, - { (char *)"TxInRef_isInitialized", _wrap_TxInRef_isInitialized, METH_VARARGS, NULL}, - { (char *)"TxInRef_getScriptType", _wrap_TxInRef_getScriptType, METH_VARARGS, NULL}, - { (char *)"TxInRef_getScriptOffset", _wrap_TxInRef_getScriptOffset, METH_VARARGS, NULL}, - { (char *)"TxInRef_getCopy", _wrap_TxInRef_getCopy, METH_VARARGS, NULL}, - { (char *)"TxInRef_getParentTxPtr", _wrap_TxInRef_getParentTxPtr, METH_VARARGS, NULL}, - { (char *)"TxInRef_getIndex", _wrap_TxInRef_getIndex, METH_VARARGS, NULL}, - { (char *)"TxInRef_setParentTx", _wrap_TxInRef_setParentTx, METH_VARARGS, NULL}, - { (char *)"TxInRef_getSequence", _wrap_TxInRef_getSequence, METH_VARARGS, NULL}, - { (char *)"TxInRef_getScriptSize", _wrap_TxInRef_getScriptSize, METH_VARARGS, NULL}, - { (char *)"TxInRef_getOutPoint", _wrap_TxInRef_getOutPoint, METH_VARARGS, NULL}, - { (char *)"TxInRef_getOutPointRef", _wrap_TxInRef_getOutPointRef, METH_VARARGS, NULL}, - { (char *)"TxInRef_getScript", _wrap_TxInRef_getScript, METH_VARARGS, NULL}, - { (char *)"TxInRef_getScriptRef", _wrap_TxInRef_getScriptRef, METH_VARARGS, NULL}, - { (char *)"TxInRef_isScriptStandard", _wrap_TxInRef_isScriptStandard, METH_VARARGS, NULL}, - { (char *)"TxInRef_isScriptCoinbase", _wrap_TxInRef_isScriptCoinbase, METH_VARARGS, NULL}, - { (char *)"TxInRef_isScriptSpendCB", _wrap_TxInRef_isScriptSpendCB, METH_VARARGS, NULL}, - { (char *)"TxInRef_isScriptUnknown", _wrap_TxInRef_isScriptUnknown, METH_VARARGS, NULL}, - { (char *)"TxInRef_serialize", _wrap_TxInRef_serialize, METH_VARARGS, NULL}, - { (char *)"TxInRef_serializeRef", _wrap_TxInRef_serializeRef, METH_VARARGS, NULL}, - { (char *)"TxInRef_unserialize", _wrap_TxInRef_unserialize, METH_VARARGS, NULL}, - { (char *)"TxInRef_getSenderAddrIfAvailable", _wrap_TxInRef_getSenderAddrIfAvailable, METH_VARARGS, NULL}, - { (char *)"TxInRef_pprint", _wrap_TxInRef_pprint, METH_VARARGS, NULL}, - { (char *)"delete_TxInRef", _wrap_delete_TxInRef, METH_VARARGS, NULL}, - { (char *)"TxInRef_swigregister", TxInRef_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxOutRef", _wrap_new_TxOutRef, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getPtr", _wrap_TxOutRef_getPtr, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getSize", _wrap_TxOutRef_getSize, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getValue", _wrap_TxOutRef_getValue, METH_VARARGS, NULL}, - { (char *)"TxOutRef_isStandard", _wrap_TxOutRef_isStandard, METH_VARARGS, NULL}, - { (char *)"TxOutRef_isInitialized", _wrap_TxOutRef_isInitialized, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getParentTxPtr", _wrap_TxOutRef_getParentTxPtr, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getIndex", _wrap_TxOutRef_getIndex, METH_VARARGS, NULL}, - { (char *)"TxOutRef_setParentTx", _wrap_TxOutRef_setParentTx, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getScriptType", _wrap_TxOutRef_getScriptType, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getScriptSize", _wrap_TxOutRef_getScriptSize, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getRecipientAddr", _wrap_TxOutRef_getRecipientAddr, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getRecipientAddrRef", _wrap_TxOutRef_getRecipientAddrRef, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getScript", _wrap_TxOutRef_getScript, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getScriptRef", _wrap_TxOutRef_getScriptRef, METH_VARARGS, NULL}, - { (char *)"TxOutRef_isScriptStandard", _wrap_TxOutRef_isScriptStandard, METH_VARARGS, NULL}, - { (char *)"TxOutRef_isScriptCoinbase", _wrap_TxOutRef_isScriptCoinbase, METH_VARARGS, NULL}, - { (char *)"TxOutRef_isScriptUnknown", _wrap_TxOutRef_isScriptUnknown, METH_VARARGS, NULL}, - { (char *)"TxOutRef_serialize", _wrap_TxOutRef_serialize, METH_VARARGS, NULL}, - { (char *)"TxOutRef_serializeRef", _wrap_TxOutRef_serializeRef, METH_VARARGS, NULL}, - { (char *)"TxOutRef_unserialize", _wrap_TxOutRef_unserialize, METH_VARARGS, NULL}, - { (char *)"TxOutRef_getCopy", _wrap_TxOutRef_getCopy, METH_VARARGS, NULL}, - { (char *)"TxOutRef_pprint", _wrap_TxOutRef_pprint, METH_VARARGS, NULL}, - { (char *)"delete_TxOutRef", _wrap_delete_TxOutRef, METH_VARARGS, NULL}, - { (char *)"TxOutRef_swigregister", TxOutRef_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxRef", _wrap_new_TxRef, METH_VARARGS, NULL}, - { (char *)"TxRef_getPtr", _wrap_TxRef_getPtr, METH_VARARGS, NULL}, - { (char *)"TxRef_getSize", _wrap_TxRef_getSize, METH_VARARGS, NULL}, - { (char *)"TxRef_getVersion", _wrap_TxRef_getVersion, METH_VARARGS, NULL}, - { (char *)"TxRef_getNumTxIn", _wrap_TxRef_getNumTxIn, METH_VARARGS, NULL}, - { (char *)"TxRef_getNumTxOut", _wrap_TxRef_getNumTxOut, METH_VARARGS, NULL}, - { (char *)"TxRef_getThisHash", _wrap_TxRef_getThisHash, METH_VARARGS, NULL}, - { (char *)"TxRef_getThisHashRef", _wrap_TxRef_getThisHashRef, METH_VARARGS, NULL}, - { (char *)"TxRef_setMainBranch", _wrap_TxRef_setMainBranch, METH_VARARGS, NULL}, - { (char *)"TxRef_isMainBranch", _wrap_TxRef_isMainBranch, METH_VARARGS, NULL}, - { (char *)"TxRef_getTxStartByte", _wrap_TxRef_getTxStartByte, METH_VARARGS, NULL}, - { (char *)"TxRef_setTxStartByte", _wrap_TxRef_setTxStartByte, METH_VARARGS, NULL}, - { (char *)"TxRef_getTxInOffset", _wrap_TxRef_getTxInOffset, METH_VARARGS, NULL}, - { (char *)"TxRef_getTxOutOffset", _wrap_TxRef_getTxOutOffset, METH_VARARGS, NULL}, - { (char *)"TxRef_createFromStr", _wrap_TxRef_createFromStr, METH_VARARGS, NULL}, - { (char *)"TxRef_getCopy", _wrap_TxRef_getCopy, METH_VARARGS, NULL}, - { (char *)"TxRef_getHeaderPtr", _wrap_TxRef_getHeaderPtr, METH_VARARGS, NULL}, - { (char *)"TxRef_setHeaderPtr", _wrap_TxRef_setHeaderPtr, METH_VARARGS, NULL}, - { (char *)"TxRef_serialize", _wrap_TxRef_serialize, METH_VARARGS, NULL}, - { (char *)"TxRef_serializeRef", _wrap_TxRef_serializeRef, METH_VARARGS, NULL}, - { (char *)"TxRef_unserialize", _wrap_TxRef_unserialize, METH_VARARGS, NULL}, - { (char *)"TxRef_getLockTime", _wrap_TxRef_getLockTime, METH_VARARGS, NULL}, - { (char *)"TxRef_getSumOfOutputs", _wrap_TxRef_getSumOfOutputs, METH_VARARGS, NULL}, - { (char *)"TxRef_getTxInRef", _wrap_TxRef_getTxInRef, METH_VARARGS, NULL}, - { (char *)"TxRef_getTxOutRef", _wrap_TxRef_getTxOutRef, METH_VARARGS, NULL}, - { (char *)"TxRef_getBlockTimestamp", _wrap_TxRef_getBlockTimestamp, METH_VARARGS, NULL}, - { (char *)"TxRef_getBlockHeight", _wrap_TxRef_getBlockHeight, METH_VARARGS, NULL}, - { (char *)"TxRef_getBlockTxIndex", _wrap_TxRef_getBlockTxIndex, METH_VARARGS, NULL}, - { (char *)"TxRef_pprint", _wrap_TxRef_pprint, METH_VARARGS, NULL}, - { (char *)"TxRef_pprintAlot", _wrap_TxRef_pprintAlot, METH_VARARGS, NULL}, - { (char *)"delete_TxRef", _wrap_delete_TxRef, METH_VARARGS, NULL}, - { (char *)"TxRef_swigregister", TxRef_swigregister, METH_VARARGS, NULL}, - { (char *)"new_TxIOPair", _wrap_new_TxIOPair, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxOut", _wrap_TxIOPair_hasTxOut, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxIn", _wrap_TxIOPair_hasTxIn, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxOutInMain", _wrap_TxIOPair_hasTxOutInMain, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxInInMain", _wrap_TxIOPair_hasTxInInMain, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxOutZC", _wrap_TxIOPair_hasTxOutZC, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasTxInZC", _wrap_TxIOPair_hasTxInZC, METH_VARARGS, NULL}, - { (char *)"TxIOPair_hasValue", _wrap_TxIOPair_hasValue, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getValue", _wrap_TxIOPair_getValue, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxOutRef", _wrap_TxIOPair_getTxOutRef, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxInRef", _wrap_TxIOPair_getTxInRef, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxOutRefZC", _wrap_TxIOPair_getTxOutRefZC, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxInRefZC", _wrap_TxIOPair_getTxInRefZC, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxRefOfOutput", _wrap_TxIOPair_getTxRefOfOutput, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxRefOfInput", _wrap_TxIOPair_getTxRefOfInput, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getOutPoint", _wrap_TxIOPair_getOutPoint, METH_VARARGS, NULL}, - { (char *)"TxIOPair_reassessValidity", _wrap_TxIOPair_reassessValidity, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isTxOutFromSelf", _wrap_TxIOPair_isTxOutFromSelf, METH_VARARGS, NULL}, - { (char *)"TxIOPair_setTxOutFromSelf", _wrap_TxIOPair_setTxOutFromSelf, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxHashOfInput", _wrap_TxIOPair_getTxHashOfInput, METH_VARARGS, NULL}, - { (char *)"TxIOPair_getTxHashOfOutput", _wrap_TxIOPair_getTxHashOfOutput, METH_VARARGS, NULL}, - { (char *)"TxIOPair_setTxInRef", _wrap_TxIOPair_setTxInRef, METH_VARARGS, NULL}, - { (char *)"TxIOPair_setTxOutRef", _wrap_TxIOPair_setTxOutRef, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isSourceUnknown", _wrap_TxIOPair_isSourceUnknown, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isStandardTxOutScript", _wrap_TxIOPair_isStandardTxOutScript, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isSpent", _wrap_TxIOPair_isSpent, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isUnspent", _wrap_TxIOPair_isUnspent, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isSpendable", _wrap_TxIOPair_isSpendable, METH_VARARGS, NULL}, - { (char *)"TxIOPair_isMineButUnconfirmed", _wrap_TxIOPair_isMineButUnconfirmed, METH_VARARGS, NULL}, - { (char *)"TxIOPair_clearZCFields", _wrap_TxIOPair_clearZCFields, METH_VARARGS, NULL}, - { (char *)"TxIOPair_pprintOneLine", _wrap_TxIOPair_pprintOneLine, METH_VARARGS, NULL}, - { (char *)"delete_TxIOPair", _wrap_delete_TxIOPair, METH_VARARGS, NULL}, - { (char *)"TxIOPair_swigregister", TxIOPair_swigregister, METH_VARARGS, NULL}, - { (char *)"new_LedgerEntry", _wrap_new_LedgerEntry, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getAddrStr20", _wrap_LedgerEntry_getAddrStr20, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getValue", _wrap_LedgerEntry_getValue, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getBlockNum", _wrap_LedgerEntry_getBlockNum, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getTxHash", _wrap_LedgerEntry_getTxHash, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getIndex", _wrap_LedgerEntry_getIndex, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_getTxTime", _wrap_LedgerEntry_getTxTime, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_isValid", _wrap_LedgerEntry_isValid, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_isSentToSelf", _wrap_LedgerEntry_isSentToSelf, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_isChangeBack", _wrap_LedgerEntry_isChangeBack, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_setAddr20", _wrap_LedgerEntry_setAddr20, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_setValid", _wrap_LedgerEntry_setValid, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_changeBlkNum", _wrap_LedgerEntry_changeBlkNum, METH_VARARGS, NULL}, - { (char *)"LedgerEntry___lt__", _wrap_LedgerEntry___lt__, METH_VARARGS, NULL}, - { (char *)"LedgerEntry___eq__", _wrap_LedgerEntry___eq__, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_pprint", _wrap_LedgerEntry_pprint, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_pprintOneLine", _wrap_LedgerEntry_pprintOneLine, METH_VARARGS, NULL}, - { (char *)"delete_LedgerEntry", _wrap_delete_LedgerEntry, METH_VARARGS, NULL}, - { (char *)"LedgerEntry_swigregister", LedgerEntry_swigregister, METH_VARARGS, NULL}, - { (char *)"new_BtcAddress", _wrap_new_BtcAddress, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getAddrStr20", _wrap_BtcAddress_getAddrStr20, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getFirstBlockNum", _wrap_BtcAddress_getFirstBlockNum, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getFirstTimestamp", _wrap_BtcAddress_getFirstTimestamp, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getLastBlockNum", _wrap_BtcAddress_getLastBlockNum, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getLastTimestamp", _wrap_BtcAddress_getLastTimestamp, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setFirstBlockNum", _wrap_BtcAddress_setFirstBlockNum, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setFirstTimestamp", _wrap_BtcAddress_setFirstTimestamp, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setLastBlockNum", _wrap_BtcAddress_setLastBlockNum, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setLastTimestamp", _wrap_BtcAddress_setLastTimestamp, METH_VARARGS, NULL}, - { (char *)"BtcAddress_isUnused", _wrap_BtcAddress_isUnused, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setUnused", _wrap_BtcAddress_setUnused, METH_VARARGS, NULL}, - { (char *)"BtcAddress_setAddrStr20", _wrap_BtcAddress_setAddrStr20, METH_VARARGS, NULL}, - { (char *)"BtcAddress_sortLedger", _wrap_BtcAddress_sortLedger, METH_VARARGS, NULL}, - { (char *)"BtcAddress_removeInvalidEntries", _wrap_BtcAddress_removeInvalidEntries, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getFullBalance", _wrap_BtcAddress_getFullBalance, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getSpendableBalance", _wrap_BtcAddress_getSpendableBalance, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getUnconfirmedBalance", _wrap_BtcAddress_getUnconfirmedBalance, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getFullTxOutList", _wrap_BtcAddress_getFullTxOutList, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getSpendableTxOutList", _wrap_BtcAddress_getSpendableTxOutList, METH_VARARGS, NULL}, - { (char *)"BtcAddress_clearZeroConfPool", _wrap_BtcAddress_clearZeroConfPool, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getTxLedger", _wrap_BtcAddress_getTxLedger, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getZeroConfLedger", _wrap_BtcAddress_getZeroConfLedger, METH_VARARGS, NULL}, - { (char *)"BtcAddress_getTxIOList", _wrap_BtcAddress_getTxIOList, METH_VARARGS, NULL}, - { (char *)"BtcAddress_addTxIO", _wrap_BtcAddress_addTxIO, METH_VARARGS, NULL}, - { (char *)"BtcAddress_addLedgerEntry", _wrap_BtcAddress_addLedgerEntry, METH_VARARGS, NULL}, - { (char *)"BtcAddress_pprintLedger", _wrap_BtcAddress_pprintLedger, METH_VARARGS, NULL}, - { (char *)"delete_BtcAddress", _wrap_delete_BtcAddress, METH_VARARGS, NULL}, - { (char *)"BtcAddress_swigregister", BtcAddress_swigregister, METH_VARARGS, NULL}, - { (char *)"new_BtcWallet", _wrap_new_BtcWallet, METH_VARARGS, NULL}, - { (char *)"BtcWallet_addAddress", _wrap_BtcWallet_addAddress, METH_VARARGS, NULL}, - { (char *)"BtcWallet_addAddress_BtcAddress_", _wrap_BtcWallet_addAddress_BtcAddress_, METH_VARARGS, NULL}, - { (char *)"BtcWallet_addAddress_1_", _wrap_BtcWallet_addAddress_1_, METH_VARARGS, NULL}, - { (char *)"BtcWallet_addAddress_3_", _wrap_BtcWallet_addAddress_3_, METH_VARARGS, NULL}, - { (char *)"BtcWallet_addAddress_5_", _wrap_BtcWallet_addAddress_5_, METH_VARARGS, NULL}, - { (char *)"BtcWallet_hasAddr", _wrap_BtcWallet_hasAddr, METH_VARARGS, NULL}, - { (char *)"BtcWallet_isMineBulkFilter", _wrap_BtcWallet_isMineBulkFilter, METH_VARARGS, NULL}, - { (char *)"BtcWallet_scanTx", _wrap_BtcWallet_scanTx, METH_VARARGS, NULL}, - { (char *)"BtcWallet_scanNonStdTx", _wrap_BtcWallet_scanNonStdTx, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getFullBalance", _wrap_BtcWallet_getFullBalance, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getSpendableBalance", _wrap_BtcWallet_getSpendableBalance, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getUnconfirmedBalance", _wrap_BtcWallet_getUnconfirmedBalance, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getFullTxOutList", _wrap_BtcWallet_getFullTxOutList, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getSpendableTxOutList", _wrap_BtcWallet_getSpendableTxOutList, METH_VARARGS, NULL}, - { (char *)"BtcWallet_clearZeroConfPool", _wrap_BtcWallet_clearZeroConfPool, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getNumAddr", _wrap_BtcWallet_getNumAddr, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getAddrByIndex", _wrap_BtcWallet_getAddrByIndex, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getAddrByHash160", _wrap_BtcWallet_getAddrByHash160, METH_VARARGS, NULL}, - { (char *)"BtcWallet_sortLedger", _wrap_BtcWallet_sortLedger, METH_VARARGS, NULL}, - { (char *)"BtcWallet_removeInvalidEntries", _wrap_BtcWallet_removeInvalidEntries, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getZeroConfLedger", _wrap_BtcWallet_getZeroConfLedger, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getTxLedger", _wrap_BtcWallet_getTxLedger, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getTxIOMap", _wrap_BtcWallet_getTxIOMap, METH_VARARGS, NULL}, - { (char *)"BtcWallet_getNonStdTxIO", _wrap_BtcWallet_getNonStdTxIO, METH_VARARGS, NULL}, - { (char *)"BtcWallet_isOutPointMine", _wrap_BtcWallet_isOutPointMine, METH_VARARGS, NULL}, - { (char *)"BtcWallet_pprintLedger", _wrap_BtcWallet_pprintLedger, METH_VARARGS, NULL}, - { (char *)"BtcWallet_pprintAlot", _wrap_BtcWallet_pprintAlot, METH_VARARGS, NULL}, - { (char *)"delete_BtcWallet", _wrap_delete_BtcWallet, METH_VARARGS, NULL}, - { (char *)"BtcWallet_swigregister", BtcWallet_swigregister, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_txref__set", _wrap_ZeroConfData_txref__set, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_txref__get", _wrap_ZeroConfData_txref__get, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_txtime__set", _wrap_ZeroConfData_txtime__set, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_txtime__get", _wrap_ZeroConfData_txtime__get, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_iter__set", _wrap_ZeroConfData_iter__set, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_iter__get", _wrap_ZeroConfData_iter__get, METH_VARARGS, NULL}, - { (char *)"new_ZeroConfData", _wrap_new_ZeroConfData, METH_VARARGS, NULL}, - { (char *)"delete_ZeroConfData", _wrap_delete_ZeroConfData, METH_VARARGS, NULL}, - { (char *)"ZeroConfData_swigregister", ZeroConfData_swigregister, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_GetInstance", _wrap_BlockDataManager_FullRAM_GetInstance, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_isInitialized", _wrap_BlockDataManager_FullRAM_isInitialized, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_SetBtcNetworkParams", _wrap_BlockDataManager_FullRAM_SetBtcNetworkParams, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_SelectNetwork", _wrap_BlockDataManager_FullRAM_SelectNetwork, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_Reset", _wrap_BlockDataManager_FullRAM_Reset, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getNumConfirmations", _wrap_BlockDataManager_FullRAM_getNumConfirmations, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getTopBlockHeader", _wrap_BlockDataManager_FullRAM_getTopBlockHeader, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getGenesisBlock", _wrap_BlockDataManager_FullRAM_getGenesisBlock, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getHeaderByHeight", _wrap_BlockDataManager_FullRAM_getHeaderByHeight, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getHeaderByHash", _wrap_BlockDataManager_FullRAM_getHeaderByHash, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getTxByHash", _wrap_BlockDataManager_FullRAM_getTxByHash, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getBlockfilePath", _wrap_BlockDataManager_FullRAM_getBlockfilePath, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_parseNewBlockData", _wrap_BlockDataManager_FullRAM_parseNewBlockData, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_addNewBlockData", _wrap_BlockDataManager_FullRAM_addNewBlockData, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_addNewBlockDataRef", _wrap_BlockDataManager_FullRAM_addNewBlockDataRef, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_reassessAfterReorg", _wrap_BlockDataManager_FullRAM_reassessAfterReorg, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_hasTxWithHash", _wrap_BlockDataManager_FullRAM_hasTxWithHash, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_hasHeaderWithHash", _wrap_BlockDataManager_FullRAM_hasHeaderWithHash, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getNumBlocks", _wrap_BlockDataManager_FullRAM_getNumBlocks, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getNumTx", _wrap_BlockDataManager_FullRAM_getNumTx, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getHeadersNotOnMainChain", _wrap_BlockDataManager_FullRAM_getHeadersNotOnMainChain, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_prefixSearchHeaders", _wrap_BlockDataManager_FullRAM_prefixSearchHeaders, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_prefixSearchTx", _wrap_BlockDataManager_FullRAM_prefixSearchTx, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_prefixSearchAddress", _wrap_BlockDataManager_FullRAM_prefixSearchAddress, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_scanBlockchainForTx", _wrap_BlockDataManager_FullRAM_scanBlockchainForTx, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_readBlkFile_FromScratch", _wrap_BlockDataManager_FullRAM_readBlkFile_FromScratch, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_readBlkFileUpdate", _wrap_BlockDataManager_FullRAM_readBlkFileUpdate, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_verifyBlkFileIntegrity", _wrap_BlockDataManager_FullRAM_verifyBlkFileIntegrity, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr", _wrap_BlockDataManager_FullRAM_scanBlockchainForTx_FromScratch_AllAddr, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_findAllNonStdTx", _wrap_BlockDataManager_FullRAM_findAllNonStdTx, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_enableZeroConf", _wrap_BlockDataManager_FullRAM_enableZeroConf, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_disableZeroConf", _wrap_BlockDataManager_FullRAM_disableZeroConf, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_readZeroConfFile", _wrap_BlockDataManager_FullRAM_readZeroConfFile, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_addNewZeroConfTx", _wrap_BlockDataManager_FullRAM_addNewZeroConfTx, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_purgeZeroConfPool", _wrap_BlockDataManager_FullRAM_purgeZeroConfPool, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_pprintZeroConfPool", _wrap_BlockDataManager_FullRAM_pprintZeroConfPool, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_rewriteZeroConfFile", _wrap_BlockDataManager_FullRAM_rewriteZeroConfFile, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_rescanWalletZeroConf", _wrap_BlockDataManager_FullRAM_rescanWalletZeroConf, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_organizeChain", _wrap_BlockDataManager_FullRAM_organizeChain, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_isLastBlockReorg", _wrap_BlockDataManager_FullRAM_isLastBlockReorg, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getTxJustInvalidated", _wrap_BlockDataManager_FullRAM_getTxJustInvalidated, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getTxJustAffected", _wrap_BlockDataManager_FullRAM_getTxJustAffected, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_updateWalletAfterReorg", _wrap_BlockDataManager_FullRAM_updateWalletAfterReorg, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_updateWalletsAfterReorg", _wrap_BlockDataManager_FullRAM_updateWalletsAfterReorg, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getPrevTxOut", _wrap_BlockDataManager_FullRAM_getPrevTxOut, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getSenderAddr20", _wrap_BlockDataManager_FullRAM_getSenderAddr20, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_getSentValue", _wrap_BlockDataManager_FullRAM_getSentValue, METH_VARARGS, NULL}, - { (char *)"delete_BlockDataManager_FullRAM", _wrap_delete_BlockDataManager_FullRAM, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_FullRAM_swigregister", BlockDataManager_FullRAM_swigregister, METH_VARARGS, NULL}, - { (char *)"new_BlockDataManager", _wrap_new_BlockDataManager, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_getBDM", _wrap_BlockDataManager_getBDM, METH_VARARGS, NULL}, - { (char *)"delete_BlockDataManager", _wrap_delete_BlockDataManager, METH_VARARGS, NULL}, - { (char *)"BlockDataManager_swigregister", BlockDataManager_swigregister, METH_VARARGS, NULL}, - { (char *)"new_BtcUtils", _wrap_new_BtcUtils, METH_VARARGS, NULL}, - { (char *)"BtcUtils_hash256", _wrap_BtcUtils_hash256, METH_VARARGS, NULL}, - { (char *)"BtcUtils_hash160", _wrap_BtcUtils_hash160, METH_VARARGS, NULL}, - { (char *)"BtcUtils_BadAddress__get", _wrap_BtcUtils_BadAddress__get, METH_VARARGS, NULL}, - { (char *)"BtcUtils_BadAddress__set", _wrap_BtcUtils_BadAddress__set, METH_VARARGS, NULL}, - { (char *)"BtcUtils_EmptyHash__get", _wrap_BtcUtils_EmptyHash__get, METH_VARARGS, NULL}, - { (char *)"BtcUtils_EmptyHash__set", _wrap_BtcUtils_EmptyHash__set, METH_VARARGS, NULL}, - { (char *)"BtcUtils_readVarInt", _wrap_BtcUtils_readVarInt, METH_VARARGS, NULL}, - { (char *)"BtcUtils_readVarIntLength", _wrap_BtcUtils_readVarIntLength, METH_VARARGS, NULL}, - { (char *)"BtcUtils_calcVarIntSize", _wrap_BtcUtils_calcVarIntSize, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getHash256_NoSafetyCheck", _wrap_BtcUtils_getHash256_NoSafetyCheck, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getHash256", _wrap_BtcUtils_getHash256, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getHash160_NoSafetyCheck", _wrap_BtcUtils_getHash160_NoSafetyCheck, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getHash160", _wrap_BtcUtils_getHash160, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getHash160_SWIG", _wrap_BtcUtils_getHash160_SWIG, METH_VARARGS, NULL}, - { (char *)"BtcUtils_ripemd160_SWIG", _wrap_BtcUtils_ripemd160_SWIG, METH_VARARGS, NULL}, - { (char *)"BtcUtils_calculateMerkleRoot", _wrap_BtcUtils_calculateMerkleRoot, METH_VARARGS, NULL}, - { (char *)"BtcUtils_calculateMerkleTree", _wrap_BtcUtils_calculateMerkleTree, METH_VARARGS, NULL}, - { (char *)"BtcUtils_TxInCalcLength", _wrap_BtcUtils_TxInCalcLength, METH_VARARGS, NULL}, - { (char *)"BtcUtils_TxOutCalcLength", _wrap_BtcUtils_TxOutCalcLength, METH_VARARGS, NULL}, - { (char *)"BtcUtils_TxCalcLength", _wrap_BtcUtils_TxCalcLength, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getTxOutScriptType", _wrap_BtcUtils_getTxOutScriptType, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getTxInScriptType", _wrap_BtcUtils_getTxInScriptType, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getTxOutRecipientAddr", _wrap_BtcUtils_getTxOutRecipientAddr, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getTxInAddr", _wrap_BtcUtils_getTxInAddr, METH_VARARGS, NULL}, - { (char *)"BtcUtils_convertDiffBitsToDouble", _wrap_BtcUtils_convertDiffBitsToDouble, METH_VARARGS, NULL}, - { (char *)"BtcUtils_getOpCodeName", _wrap_BtcUtils_getOpCodeName, METH_VARARGS, NULL}, - { (char *)"BtcUtils_convertScriptToOpStrings", _wrap_BtcUtils_convertScriptToOpStrings, METH_VARARGS, NULL}, - { (char *)"BtcUtils_num2str", _wrap_BtcUtils_num2str, METH_VARARGS, NULL}, - { (char *)"BtcUtils_pprintScript", _wrap_BtcUtils_pprintScript, METH_VARARGS, NULL}, - { (char *)"BtcUtils_verifyProofOfWork", _wrap_BtcUtils_verifyProofOfWork, METH_VARARGS, NULL}, - { (char *)"delete_BtcUtils", _wrap_delete_BtcUtils, METH_VARARGS, NULL}, - { (char *)"BtcUtils_swigregister", BtcUtils_swigregister, METH_VARARGS, NULL}, - { (char *)"delete_SecureBinaryData", _wrap_delete_SecureBinaryData, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getPtr", _wrap_SecureBinaryData_getPtr, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getSize", _wrap_SecureBinaryData_getSize, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_copy", _wrap_SecureBinaryData_copy, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_toHexStr", _wrap_SecureBinaryData_toHexStr, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_toBinStr", _wrap_SecureBinaryData_toBinStr, METH_VARARGS, NULL}, - { (char *)"new_SecureBinaryData", _wrap_new_SecureBinaryData, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_resize", _wrap_SecureBinaryData_resize, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_reserve", _wrap_SecureBinaryData_reserve, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getRawCopy", _wrap_SecureBinaryData_getRawCopy, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getRawRef", _wrap_SecureBinaryData_getRawRef, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_copySwapEndian", _wrap_SecureBinaryData_copySwapEndian, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_append", _wrap_SecureBinaryData_append, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData___add__", _wrap_SecureBinaryData___add__, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData___eq__", _wrap_SecureBinaryData___eq__, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getHash256", _wrap_SecureBinaryData_getHash256, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_getHash160", _wrap_SecureBinaryData_getHash160, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_GenerateRandom", _wrap_SecureBinaryData_GenerateRandom, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_lockData", _wrap_SecureBinaryData_lockData, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_destroy", _wrap_SecureBinaryData_destroy, METH_VARARGS, NULL}, - { (char *)"SecureBinaryData_swigregister", SecureBinaryData_swigregister, METH_VARARGS, NULL}, - { (char *)"new_KdfRomix", _wrap_new_KdfRomix, METH_VARARGS, NULL}, - { (char *)"KdfRomix_computeKdfParams", _wrap_KdfRomix_computeKdfParams, METH_VARARGS, NULL}, - { (char *)"KdfRomix_usePrecomputedKdfParams", _wrap_KdfRomix_usePrecomputedKdfParams, METH_VARARGS, NULL}, - { (char *)"KdfRomix_printKdfParams", _wrap_KdfRomix_printKdfParams, METH_VARARGS, NULL}, - { (char *)"KdfRomix_DeriveKey_OneIter", _wrap_KdfRomix_DeriveKey_OneIter, METH_VARARGS, NULL}, - { (char *)"KdfRomix_DeriveKey", _wrap_KdfRomix_DeriveKey, METH_VARARGS, NULL}, - { (char *)"KdfRomix_getHashFunctionName", _wrap_KdfRomix_getHashFunctionName, METH_VARARGS, NULL}, - { (char *)"KdfRomix_getMemoryReqtBytes", _wrap_KdfRomix_getMemoryReqtBytes, METH_VARARGS, NULL}, - { (char *)"KdfRomix_getNumIterations", _wrap_KdfRomix_getNumIterations, METH_VARARGS, NULL}, - { (char *)"KdfRomix_getSalt", _wrap_KdfRomix_getSalt, METH_VARARGS, NULL}, - { (char *)"delete_KdfRomix", _wrap_delete_KdfRomix, METH_VARARGS, NULL}, - { (char *)"KdfRomix_swigregister", KdfRomix_swigregister, METH_VARARGS, NULL}, - { (char *)"new_CryptoAES", _wrap_new_CryptoAES, METH_VARARGS, NULL}, - { (char *)"CryptoAES_EncryptCFB", _wrap_CryptoAES_EncryptCFB, METH_VARARGS, NULL}, - { (char *)"CryptoAES_DecryptCFB", _wrap_CryptoAES_DecryptCFB, METH_VARARGS, NULL}, - { (char *)"CryptoAES_EncryptCBC", _wrap_CryptoAES_EncryptCBC, METH_VARARGS, NULL}, - { (char *)"CryptoAES_DecryptCBC", _wrap_CryptoAES_DecryptCBC, METH_VARARGS, NULL}, - { (char *)"delete_CryptoAES", _wrap_delete_CryptoAES, METH_VARARGS, NULL}, - { (char *)"CryptoAES_swigregister", CryptoAES_swigregister, METH_VARARGS, NULL}, - { (char *)"new_CryptoECDSA", _wrap_new_CryptoECDSA, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_CreateNewPrivateKey", _wrap_CryptoECDSA_CreateNewPrivateKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ParsePrivateKey", _wrap_CryptoECDSA_ParsePrivateKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ParsePublicKey", _wrap_CryptoECDSA_ParsePublicKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_SerializePrivateKey", _wrap_CryptoECDSA_SerializePrivateKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_SerializePublicKey", _wrap_CryptoECDSA_SerializePublicKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_GenerateNewPrivateKey", _wrap_CryptoECDSA_GenerateNewPrivateKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ComputePublicKey", _wrap_CryptoECDSA_ComputePublicKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_VerifyPublicKeyValid", _wrap_CryptoECDSA_VerifyPublicKeyValid, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_CheckPubPrivKeyMatch", _wrap_CryptoECDSA_CheckPubPrivKeyMatch, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_SignData", _wrap_CryptoECDSA_SignData, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_VerifyData", _wrap_CryptoECDSA_VerifyData, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ComputeChainedPrivateKey", _wrap_CryptoECDSA_ComputeChainedPrivateKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ComputeChainedPublicKey", _wrap_CryptoECDSA_ComputeChainedPublicKey, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ECVerifyPoint", _wrap_CryptoECDSA_ECVerifyPoint, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ECMultiplyScalars", _wrap_CryptoECDSA_ECMultiplyScalars, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ECMultiplyPoint", _wrap_CryptoECDSA_ECMultiplyPoint, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ECAddPoints", _wrap_CryptoECDSA_ECAddPoints, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_ECInverse", _wrap_CryptoECDSA_ECInverse, METH_VARARGS, NULL}, - { (char *)"delete_CryptoECDSA", _wrap_delete_CryptoECDSA, METH_VARARGS, NULL}, - { (char *)"CryptoECDSA_swigregister", CryptoECDSA_swigregister, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_SecureBinaryDataTo_p_BinaryData(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((BinaryData *) ((SecureBinaryData *) x)); -} -static swig_type_info _swigt__p_ADD_BLOCK_RESULT_INDEX = {"_p_ADD_BLOCK_RESULT_INDEX", "enum ADD_BLOCK_RESULT_INDEX *|ADD_BLOCK_RESULT_INDEX *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BDM_MODE = {"_p_BDM_MODE", "enum BDM_MODE *|BDM_MODE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BinaryData = {"_p_BinaryData", "BinaryData *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BinaryDataRef = {"_p_BinaryDataRef", "BinaryDataRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BinaryReader = {"_p_BinaryReader", "BinaryReader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BinaryRefReader = {"_p_BinaryRefReader", "BinaryRefReader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BinaryWriter = {"_p_BinaryWriter", "BinaryWriter *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockDataManager = {"_p_BlockDataManager", "BlockDataManager *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockDataManager_FullRAM = {"_p_BlockDataManager_FullRAM", "BlockDataManager_FullRAM *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockHeader = {"_p_BlockHeader", "BlockHeader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BlockHeaderRef = {"_p_BlockHeaderRef", "BlockHeaderRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BtcAddress = {"_p_BtcAddress", "BtcAddress *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BtcUtils = {"_p_BtcUtils", "BtcUtils *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_BtcWallet = {"_p_BtcWallet", "BtcWallet *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CryptoAES = {"_p_CryptoAES", "CryptoAES *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CryptoECDSA = {"_p_CryptoECDSA", "CryptoECDSA *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey = {"_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey", "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PrivateKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey = {"_p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey", "CryptoPP::ECDSA< CryptoPP::ECP,CryptoPP::SHA256 >::PublicKey *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_KdfRomix = {"_p_KdfRomix", "KdfRomix *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_LedgerEntry = {"_p_LedgerEntry", "LedgerEntry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_OutPoint = {"_p_OutPoint", "OutPoint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_OutPointRef = {"_p_OutPointRef", "OutPointRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_SecureBinaryData = {"_p_SecureBinaryData", "SecureBinaryData *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_Tx = {"_p_Tx", "Tx *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxIOPair = {"_p_TxIOPair", "TxIOPair *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxIn = {"_p_TxIn", "TxIn *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxInRef = {"_p_TxInRef", "TxInRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxOut = {"_p_TxOut", "TxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxOutRef = {"_p_TxOutRef", "TxOutRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_TxRef = {"_p_TxRef", "TxRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_UnspentTxOut = {"_p_UnspentTxOut", "UnspentTxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ZeroConfData = {"_p_ZeroConfData", "ZeroConfData *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *|int8_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_const_reference = {"_p_const_reference", "const_reference *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *|int32_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_listT_BinaryData_t__iterator = {"_p_listT_BinaryData_t__iterator", "list< BinaryData >::iterator *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_mapT_OutPoint_TxIOPair_t = {"_p_mapT_OutPoint_TxIOPair_t", "map< OutPoint,TxIOPair > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_ostream = {"_p_ostream", "ostream *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pairT_bool_bool_t = {"_p_pairT_bool_bool_t", "pair< bool,bool > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_reference = {"_p_reference", "reference *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_setT_HashString_t = {"_p_setT_HashString_t", "set< HashString > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *|string *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t = {"_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t", "std::vector< BinaryData > *|vector< BinaryData > *|vector< BinaryData,std::allocator< BinaryData > > *|std::vector< BinaryData,std::allocator< BinaryData > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type = {"_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type", "std::vector< BinaryData >::allocator_type *|std::allocator< BinaryData > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type = {"_p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type", "std::vector< BinaryData >::value_type *|BinaryData *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t = {"_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t", "std::vector< BlockHeaderRef *,std::allocator< BlockHeaderRef * > > *|std::vector< BlockHeaderRef * > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type = {"_p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type", "std::vector< BlockHeaderRef * >::allocator_type *|std::allocator< BlockHeaderRef * > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t = {"_p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t", "std::vector< BtcWallet * > *|std::vector< BtcWallet *,std::allocator< BtcWallet * > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t = {"_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t", "std::vector< LedgerEntry > *|std::vector< LedgerEntry,std::allocator< LedgerEntry > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type = {"_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type", "std::allocator< LedgerEntry > *|std::vector< LedgerEntry >::allocator_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type = {"_p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type", "std::vector< LedgerEntry >::value_type *|LedgerEntry *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t = {"_p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t", "std::vector< TxIOPair *,std::allocator< TxIOPair * > > *|std::vector< TxIOPair * > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t = {"_p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t", "vector< TxIn > *|vector< TxIn,std::allocator< TxIn > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t = {"_p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t", "vector< TxOut,std::allocator< TxOut > > *|vector< TxOut > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t = {"_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t", "std::vector< TxRef *,std::allocator< TxRef * > > *|vector< TxRef *,std::allocator< TxRef * > > *|std::vector< TxRef * > *|vector< TxRef * > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type = {"_p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type", "std::vector< TxRef * >::allocator_type *|std::allocator< TxRef * > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t = {"_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t", "std::vector< UnspentTxOut,std::allocator< UnspentTxOut > > *|std::vector< UnspentTxOut > *|vector< UnspentTxOut > *|vector< UnspentTxOut,std::allocator< UnspentTxOut > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type = {"_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type", "std::vector< UnspentTxOut >::allocator_type *|std::allocator< UnspentTxOut > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type = {"_p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type", "std::vector< UnspentTxOut >::value_type *|UnspentTxOut *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t = {"_p_std__vectorT_bool_std__allocatorT_bool_t_t", "std::vector< bool,std::allocator< bool > > *|std::vector< bool > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t = {"_p_std__vectorT_float_std__allocatorT_float_t_t", "std::vector< float > *|std::vector< float,std::allocator< float > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type = {"_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type", "std::vector< float >::allocator_type *|std::allocator< float > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type = {"_p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string > *|std::vector< string > *|std::vector< std::string,std::allocator< std::string > > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t = {"_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t", "std::vector< uint32_t > *|std::vector< unsigned int,std::allocator< unsigned int > > *|std::vector< unsigned int > *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TXIN_SCRIPT_TYPE *|TXOUT_SCRIPT_TYPE *|uint32_t *|size_t *|unsigned int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint64_t *|unsigned long long *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type = {"_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type", "std::vector< BlockHeaderRef * >::value_type|BlockHeaderRef *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type = {"_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type", "std::vector< TxRef * >::value_type|TxRef *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_ADD_BLOCK_RESULT_INDEX, - &_swigt__p_BDM_MODE, - &_swigt__p_BinaryData, - &_swigt__p_BinaryDataRef, - &_swigt__p_BinaryReader, - &_swigt__p_BinaryRefReader, - &_swigt__p_BinaryWriter, - &_swigt__p_BlockDataManager, - &_swigt__p_BlockDataManager_FullRAM, - &_swigt__p_BlockHeader, - &_swigt__p_BlockHeaderRef, - &_swigt__p_BtcAddress, - &_swigt__p_BtcUtils, - &_swigt__p_BtcWallet, - &_swigt__p_CryptoAES, - &_swigt__p_CryptoECDSA, - &_swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, - &_swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, - &_swigt__p_KdfRomix, - &_swigt__p_LedgerEntry, - &_swigt__p_OutPoint, - &_swigt__p_OutPointRef, - &_swigt__p_SecureBinaryData, - &_swigt__p_Tx, - &_swigt__p_TxIOPair, - &_swigt__p_TxIn, - &_swigt__p_TxInRef, - &_swigt__p_TxOut, - &_swigt__p_TxOutRef, - &_swigt__p_TxRef, - &_swigt__p_UnspentTxOut, - &_swigt__p_ZeroConfData, - &_swigt__p_allocator_type, - &_swigt__p_char, - &_swigt__p_const_reference, - &_swigt__p_difference_type, - &_swigt__p_int, - &_swigt__p_listT_BinaryData_t__iterator, - &_swigt__p_long_long, - &_swigt__p_mapT_OutPoint_TxIOPair_t, - &_swigt__p_ostream, - &_swigt__p_p_PyObject, - &_swigt__p_pairT_bool_bool_t, - &_swigt__p_reference, - &_swigt__p_setT_HashString_t, - &_swigt__p_short, - &_swigt__p_size_type, - &_swigt__p_std__invalid_argument, - &_swigt__p_std__string, - &_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, - &_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type, - &_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, - &_swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, - &_swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type, - &_swigt__p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, - &_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, - &_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type, - &_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, - &_swigt__p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t, - &_swigt__p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t, - &_swigt__p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t, - &_swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, - &_swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type, - &_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, - &_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type, - &_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, - &_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t, - &_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, - &_swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, - &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, - &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, - &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, - &_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, - &_swigt__p_swig__SwigPyIterator, - &_swigt__p_unsigned_char, - &_swigt__p_unsigned_int, - &_swigt__p_unsigned_long_long, - &_swigt__p_unsigned_short, - &_swigt__p_value_type, - &_swigt__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, - &_swigt__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, -}; - -static swig_cast_info _swigc__p_ADD_BLOCK_RESULT_INDEX[] = { {&_swigt__p_ADD_BLOCK_RESULT_INDEX, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BDM_MODE[] = { {&_swigt__p_BDM_MODE, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BinaryData[] = { {&_swigt__p_BinaryData, 0, 0, 0}, {&_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0, 0, 0}, {&_swigt__p_SecureBinaryData, _p_SecureBinaryDataTo_p_BinaryData, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BinaryDataRef[] = { {&_swigt__p_BinaryDataRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BinaryReader[] = { {&_swigt__p_BinaryReader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BinaryRefReader[] = { {&_swigt__p_BinaryRefReader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BinaryWriter[] = { {&_swigt__p_BinaryWriter, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockDataManager[] = { {&_swigt__p_BlockDataManager, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockDataManager_FullRAM[] = { {&_swigt__p_BlockDataManager_FullRAM, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockHeader[] = { {&_swigt__p_BlockHeader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BlockHeaderRef[] = { {&_swigt__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0, 0, 0}, {&_swigt__p_BlockHeaderRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BtcAddress[] = { {&_swigt__p_BtcAddress, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BtcUtils[] = { {&_swigt__p_BtcUtils, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_BtcWallet[] = { {&_swigt__p_BtcWallet, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CryptoAES[] = { {&_swigt__p_CryptoAES, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CryptoECDSA[] = { {&_swigt__p_CryptoECDSA, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey[] = { {&_swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey[] = { {&_swigt__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_KdfRomix[] = { {&_swigt__p_KdfRomix, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_LedgerEntry[] = { {&_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0, 0, 0}, {&_swigt__p_LedgerEntry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_OutPoint[] = { {&_swigt__p_OutPoint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_OutPointRef[] = { {&_swigt__p_OutPointRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_SecureBinaryData[] = { {&_swigt__p_SecureBinaryData, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_Tx[] = { {&_swigt__p_Tx, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxIOPair[] = { {&_swigt__p_TxIOPair, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxIn[] = { {&_swigt__p_TxIn, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxInRef[] = { {&_swigt__p_TxInRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxOut[] = { {&_swigt__p_TxOut, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxOutRef[] = { {&_swigt__p_TxOutRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_TxRef[] = { {&_swigt__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0, 0, 0}, {&_swigt__p_TxRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_UnspentTxOut[] = { {&_swigt__p_UnspentTxOut, 0, 0, 0}, {&_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ZeroConfData[] = { {&_swigt__p_ZeroConfData, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_const_reference[] = { {&_swigt__p_const_reference, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_listT_BinaryData_t__iterator[] = { {&_swigt__p_listT_BinaryData_t__iterator, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_mapT_OutPoint_TxIOPair_t[] = { {&_swigt__p_mapT_OutPoint_TxIOPair_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_ostream[] = { {&_swigt__p_ostream, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pairT_bool_bool_t[] = { {&_swigt__p_pairT_bool_bool_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_reference[] = { {&_swigt__p_reference, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_setT_HashString_t[] = { {&_swigt__p_setT_HashString_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t[] = { {&_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type[] = { {&_swigt__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, 0, 0, 0}, {&_swigt__p_BinaryData, 0, 0, 0}, {&_swigt__p_SecureBinaryData, _p_SecureBinaryDataTo_p_BinaryData, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t[] = { {&_swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t[] = { {&_swigt__p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t[] = { {&_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type[] = { {&_swigt__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, 0, 0, 0}, {&_swigt__p_LedgerEntry, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t[] = { {&_swigt__p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t[] = { {&_swigt__p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t[] = { {&_swigt__p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t[] = { {&_swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t[] = { {&_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type[] = { {&_swigt__p_UnspentTxOut, 0, 0, 0}, {&_swigt__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t[] = { {&_swigt__p_std__vectorT_bool_std__allocatorT_bool_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = { {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t[] = { {&_swigt__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type[] = { {&_swigt__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, 0, 0, 0}, {&_swigt__p_BlockHeaderRef, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type[] = { {&_swigt__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, 0, 0, 0}, {&_swigt__p_TxRef, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_ADD_BLOCK_RESULT_INDEX, - _swigc__p_BDM_MODE, - _swigc__p_BinaryData, - _swigc__p_BinaryDataRef, - _swigc__p_BinaryReader, - _swigc__p_BinaryRefReader, - _swigc__p_BinaryWriter, - _swigc__p_BlockDataManager, - _swigc__p_BlockDataManager_FullRAM, - _swigc__p_BlockHeader, - _swigc__p_BlockHeaderRef, - _swigc__p_BtcAddress, - _swigc__p_BtcUtils, - _swigc__p_BtcWallet, - _swigc__p_CryptoAES, - _swigc__p_CryptoECDSA, - _swigc__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PrivateKey, - _swigc__p_CryptoPP__ECDSAT_CryptoPP__ECP_CryptoPP__SHA256_t__PublicKey, - _swigc__p_KdfRomix, - _swigc__p_LedgerEntry, - _swigc__p_OutPoint, - _swigc__p_OutPointRef, - _swigc__p_SecureBinaryData, - _swigc__p_Tx, - _swigc__p_TxIOPair, - _swigc__p_TxIn, - _swigc__p_TxInRef, - _swigc__p_TxOut, - _swigc__p_TxOutRef, - _swigc__p_TxRef, - _swigc__p_UnspentTxOut, - _swigc__p_ZeroConfData, - _swigc__p_allocator_type, - _swigc__p_char, - _swigc__p_const_reference, - _swigc__p_difference_type, - _swigc__p_int, - _swigc__p_listT_BinaryData_t__iterator, - _swigc__p_long_long, - _swigc__p_mapT_OutPoint_TxIOPair_t, - _swigc__p_ostream, - _swigc__p_p_PyObject, - _swigc__p_pairT_bool_bool_t, - _swigc__p_reference, - _swigc__p_setT_HashString_t, - _swigc__p_short, - _swigc__p_size_type, - _swigc__p_std__invalid_argument, - _swigc__p_std__string, - _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t, - _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__allocator_type, - _swigc__p_std__vectorT_BinaryData_std__allocatorT_BinaryData_t_t__value_type, - _swigc__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t, - _swigc__p_std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__allocator_type, - _swigc__p_std__vectorT_BtcWallet_p_std__allocatorT_BtcWallet_p_t_t, - _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t, - _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__allocator_type, - _swigc__p_std__vectorT_LedgerEntry_std__allocatorT_LedgerEntry_t_t__value_type, - _swigc__p_std__vectorT_TxIOPair_p_std__allocatorT_TxIOPair_p_t_t, - _swigc__p_std__vectorT_TxIn_std__allocatorT_TxIn_t_t, - _swigc__p_std__vectorT_TxOut_std__allocatorT_TxOut_t_t, - _swigc__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t, - _swigc__p_std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__allocator_type, - _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t, - _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__allocator_type, - _swigc__p_std__vectorT_UnspentTxOut_std__allocatorT_UnspentTxOut_t_t__value_type, - _swigc__p_std__vectorT_bool_std__allocatorT_bool_t_t, - _swigc__p_std__vectorT_float_std__allocatorT_float_t_t, - _swigc__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, - _swigc__p_std__vectorT_int_std__allocatorT_int_t_t, - _swigc__p_std__vectorT_int_std__allocatorT_int_t_t__allocator_type, - _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, - _swigc__p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t, - _swigc__p_swig__SwigPyIterator, - _swigc__p_unsigned_char, - _swigc__p_unsigned_int, - _swigc__p_unsigned_long_long, - _swigc__p_unsigned_short, - _swigc__p_value_type, - _swigc__std__vectorT_BlockHeaderRef_p_std__allocatorT_BlockHeaderRef_p_t_t__value_type, - _swigc__std__vectorT_TxRef_p_std__allocatorT_TxRef_p_t_t__value_type, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int found, init; - - clientdata = clientdata; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#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) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp - = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(&PyType_Type, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* Number of items in variable part (ob_size) */ -#endif - (char *)"swigvarlink", /* Type name (tp_name) */ - sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ - 0, /* Itemsize (tp_itemsize) */ - (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ - (printfunc) swig_varlink_print, /* Print (tp_print) */ - (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ - (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - varlink_type = tmp; - /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */ -#if PY_VERSION_HEX < 0x03000000 - varlink_type.ob_type = &PyType_Type; -#endif - type_init = 1; - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { - PyModuleDef_HEAD_INIT, - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - d = PyModule_GetDict(m); - - SWIG_InitializeModule(0); - SWIG_InstallConstants(d,swig_const_table); - - - SWIG_Python_SetConstant(d, "TX_0_UNCONFIRMED",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "TX_NOT_EXIST",SWIG_From_int(static_cast< int >(-1))); - SWIG_Python_SetConstant(d, "TX_OFF_MAIN_BRANCH",SWIG_From_int(static_cast< int >(-2))); - SWIG_Python_SetConstant(d, "BDM_MODE_FULL_BLOCKCHAIN",SWIG_From_int(static_cast< int >(BDM_MODE_FULL_BLOCKCHAIN))); - SWIG_Python_SetConstant(d, "BDM_MODE_LIGHT_STORAGE",SWIG_From_int(static_cast< int >(BDM_MODE_LIGHT_STORAGE))); - SWIG_Python_SetConstant(d, "BDM_MODE_NO_STORAGE",SWIG_From_int(static_cast< int >(BDM_MODE_NO_STORAGE))); - SWIG_Python_SetConstant(d, "BDM_MODE_COUNT",SWIG_From_int(static_cast< int >(BDM_MODE_COUNT))); - SWIG_Python_SetConstant(d, "ADD_BLOCK_SUCCEEDED",SWIG_From_int(static_cast< int >(ADD_BLOCK_SUCCEEDED))); - SWIG_Python_SetConstant(d, "ADD_BLOCK_NEW_TOP_BLOCK",SWIG_From_int(static_cast< int >(ADD_BLOCK_NEW_TOP_BLOCK))); - SWIG_Python_SetConstant(d, "ADD_BLOCK_CAUSED_REORG",SWIG_From_int(static_cast< int >(ADD_BLOCK_CAUSED_REORG))); - SWIG_Python_SetConstant(d, "HEADER_SIZE",SWIG_From_int(static_cast< int >(80))); - SWIG_Python_SetConstant(d, "CONVERTBTC",SWIG_From_int(static_cast< int >(100000000))); - SWIG_Python_SetConstant(d, "TESTNET_MAGIC_BYTES",SWIG_FromCharPtr("fabfb5da")); - SWIG_Python_SetConstant(d, "TESTNET_GENESIS_HASH_HEX",SWIG_FromCharPtr("08b067b31dc139ee8e7a76a4f2cfcca477c4c06e1ef89f4ae308951907000000")); - SWIG_Python_SetConstant(d, "TESTNET_GENESIS_TX_HASH_HEX",SWIG_FromCharPtr("3ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a")); - SWIG_Python_SetConstant(d, "MAINNET_MAGIC_BYTES",SWIG_FromCharPtr("f9beb4d9")); - SWIG_Python_SetConstant(d, "MAINNET_GENESIS_HASH_HEX",SWIG_FromCharPtr("6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000")); - SWIG_Python_SetConstant(d, "MAINNET_GENESIS_TX_HASH_HEX",SWIG_FromCharPtr("3ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a")); - SWIG_Python_SetConstant(d, "TXOUT_SCRIPT_STANDARD",SWIG_From_int(static_cast< int >(TXOUT_SCRIPT_STANDARD))); - SWIG_Python_SetConstant(d, "TXOUT_SCRIPT_COINBASE",SWIG_From_int(static_cast< int >(TXOUT_SCRIPT_COINBASE))); - SWIG_Python_SetConstant(d, "TXOUT_SCRIPT_UNKNOWN",SWIG_From_int(static_cast< int >(TXOUT_SCRIPT_UNKNOWN))); - SWIG_Python_SetConstant(d, "TXIN_SCRIPT_STANDARD",SWIG_From_int(static_cast< int >(TXIN_SCRIPT_STANDARD))); - SWIG_Python_SetConstant(d, "TXIN_SCRIPT_COINBASE",SWIG_From_int(static_cast< int >(TXIN_SCRIPT_COINBASE))); - SWIG_Python_SetConstant(d, "TXIN_SCRIPT_SPENDCB",SWIG_From_int(static_cast< int >(TXIN_SCRIPT_SPENDCB))); - SWIG_Python_SetConstant(d, "TXIN_SCRIPT_UNKNOWN",SWIG_From_int(static_cast< int >(TXIN_SCRIPT_UNKNOWN))); - SWIG_Python_SetConstant(d, "OP_0",SWIG_From_int(static_cast< int >(OP_0))); - SWIG_Python_SetConstant(d, "OP_FALSE",SWIG_From_int(static_cast< int >(OP_FALSE))); - SWIG_Python_SetConstant(d, "OP_PUSHDATA1",SWIG_From_int(static_cast< int >(OP_PUSHDATA1))); - SWIG_Python_SetConstant(d, "OP_PUSHDATA2",SWIG_From_int(static_cast< int >(OP_PUSHDATA2))); - SWIG_Python_SetConstant(d, "OP_PUSHDATA4",SWIG_From_int(static_cast< int >(OP_PUSHDATA4))); - SWIG_Python_SetConstant(d, "OP_1NEGATE",SWIG_From_int(static_cast< int >(OP_1NEGATE))); - SWIG_Python_SetConstant(d, "OP_RESERVED",SWIG_From_int(static_cast< int >(OP_RESERVED))); - SWIG_Python_SetConstant(d, "OP_1",SWIG_From_int(static_cast< int >(OP_1))); - SWIG_Python_SetConstant(d, "OP_TRUE",SWIG_From_int(static_cast< int >(OP_TRUE))); - SWIG_Python_SetConstant(d, "OP_2",SWIG_From_int(static_cast< int >(OP_2))); - SWIG_Python_SetConstant(d, "OP_3",SWIG_From_int(static_cast< int >(OP_3))); - SWIG_Python_SetConstant(d, "OP_4",SWIG_From_int(static_cast< int >(OP_4))); - SWIG_Python_SetConstant(d, "OP_5",SWIG_From_int(static_cast< int >(OP_5))); - SWIG_Python_SetConstant(d, "OP_6",SWIG_From_int(static_cast< int >(OP_6))); - SWIG_Python_SetConstant(d, "OP_7",SWIG_From_int(static_cast< int >(OP_7))); - SWIG_Python_SetConstant(d, "OP_8",SWIG_From_int(static_cast< int >(OP_8))); - SWIG_Python_SetConstant(d, "OP_9",SWIG_From_int(static_cast< int >(OP_9))); - SWIG_Python_SetConstant(d, "OP_10",SWIG_From_int(static_cast< int >(OP_10))); - SWIG_Python_SetConstant(d, "OP_11",SWIG_From_int(static_cast< int >(OP_11))); - SWIG_Python_SetConstant(d, "OP_12",SWIG_From_int(static_cast< int >(OP_12))); - SWIG_Python_SetConstant(d, "OP_13",SWIG_From_int(static_cast< int >(OP_13))); - SWIG_Python_SetConstant(d, "OP_14",SWIG_From_int(static_cast< int >(OP_14))); - SWIG_Python_SetConstant(d, "OP_15",SWIG_From_int(static_cast< int >(OP_15))); - SWIG_Python_SetConstant(d, "OP_16",SWIG_From_int(static_cast< int >(OP_16))); - SWIG_Python_SetConstant(d, "OP_NOP",SWIG_From_int(static_cast< int >(OP_NOP))); - SWIG_Python_SetConstant(d, "OP_VER",SWIG_From_int(static_cast< int >(OP_VER))); - SWIG_Python_SetConstant(d, "OP_IF",SWIG_From_int(static_cast< int >(OP_IF))); - SWIG_Python_SetConstant(d, "OP_NOTIF",SWIG_From_int(static_cast< int >(OP_NOTIF))); - SWIG_Python_SetConstant(d, "OP_VERIF",SWIG_From_int(static_cast< int >(OP_VERIF))); - SWIG_Python_SetConstant(d, "OP_VERNOTIF",SWIG_From_int(static_cast< int >(OP_VERNOTIF))); - SWIG_Python_SetConstant(d, "OP_ELSE",SWIG_From_int(static_cast< int >(OP_ELSE))); - SWIG_Python_SetConstant(d, "OP_ENDIF",SWIG_From_int(static_cast< int >(OP_ENDIF))); - SWIG_Python_SetConstant(d, "OP_VERIFY",SWIG_From_int(static_cast< int >(OP_VERIFY))); - SWIG_Python_SetConstant(d, "OP_RETURN",SWIG_From_int(static_cast< int >(OP_RETURN))); - SWIG_Python_SetConstant(d, "OP_TOALTSTACK",SWIG_From_int(static_cast< int >(OP_TOALTSTACK))); - SWIG_Python_SetConstant(d, "OP_FROMALTSTACK",SWIG_From_int(static_cast< int >(OP_FROMALTSTACK))); - SWIG_Python_SetConstant(d, "OP_2DROP",SWIG_From_int(static_cast< int >(OP_2DROP))); - SWIG_Python_SetConstant(d, "OP_2DUP",SWIG_From_int(static_cast< int >(OP_2DUP))); - SWIG_Python_SetConstant(d, "OP_3DUP",SWIG_From_int(static_cast< int >(OP_3DUP))); - SWIG_Python_SetConstant(d, "OP_2OVER",SWIG_From_int(static_cast< int >(OP_2OVER))); - SWIG_Python_SetConstant(d, "OP_2ROT",SWIG_From_int(static_cast< int >(OP_2ROT))); - SWIG_Python_SetConstant(d, "OP_2SWAP",SWIG_From_int(static_cast< int >(OP_2SWAP))); - SWIG_Python_SetConstant(d, "OP_IFDUP",SWIG_From_int(static_cast< int >(OP_IFDUP))); - SWIG_Python_SetConstant(d, "OP_DEPTH",SWIG_From_int(static_cast< int >(OP_DEPTH))); - SWIG_Python_SetConstant(d, "OP_DROP",SWIG_From_int(static_cast< int >(OP_DROP))); - SWIG_Python_SetConstant(d, "OP_DUP",SWIG_From_int(static_cast< int >(OP_DUP))); - SWIG_Python_SetConstant(d, "OP_NIP",SWIG_From_int(static_cast< int >(OP_NIP))); - SWIG_Python_SetConstant(d, "OP_OVER",SWIG_From_int(static_cast< int >(OP_OVER))); - SWIG_Python_SetConstant(d, "OP_PICK",SWIG_From_int(static_cast< int >(OP_PICK))); - SWIG_Python_SetConstant(d, "OP_ROLL",SWIG_From_int(static_cast< int >(OP_ROLL))); - SWIG_Python_SetConstant(d, "OP_ROT",SWIG_From_int(static_cast< int >(OP_ROT))); - SWIG_Python_SetConstant(d, "OP_SWAP",SWIG_From_int(static_cast< int >(OP_SWAP))); - SWIG_Python_SetConstant(d, "OP_TUCK",SWIG_From_int(static_cast< int >(OP_TUCK))); - SWIG_Python_SetConstant(d, "OP_CAT",SWIG_From_int(static_cast< int >(OP_CAT))); - SWIG_Python_SetConstant(d, "OP_SUBSTR",SWIG_From_int(static_cast< int >(OP_SUBSTR))); - SWIG_Python_SetConstant(d, "OP_LEFT",SWIG_From_int(static_cast< int >(OP_LEFT))); - SWIG_Python_SetConstant(d, "OP_RIGHT",SWIG_From_int(static_cast< int >(OP_RIGHT))); - SWIG_Python_SetConstant(d, "OP_SIZE",SWIG_From_int(static_cast< int >(OP_SIZE))); - SWIG_Python_SetConstant(d, "OP_INVERT",SWIG_From_int(static_cast< int >(OP_INVERT))); - SWIG_Python_SetConstant(d, "OP_AND",SWIG_From_int(static_cast< int >(OP_AND))); - SWIG_Python_SetConstant(d, "OP_OR",SWIG_From_int(static_cast< int >(OP_OR))); - SWIG_Python_SetConstant(d, "OP_XOR",SWIG_From_int(static_cast< int >(OP_XOR))); - SWIG_Python_SetConstant(d, "OP_EQUAL",SWIG_From_int(static_cast< int >(OP_EQUAL))); - SWIG_Python_SetConstant(d, "OP_EQUALVERIFY",SWIG_From_int(static_cast< int >(OP_EQUALVERIFY))); - SWIG_Python_SetConstant(d, "OP_RESERVED1",SWIG_From_int(static_cast< int >(OP_RESERVED1))); - SWIG_Python_SetConstant(d, "OP_RESERVED2",SWIG_From_int(static_cast< int >(OP_RESERVED2))); - SWIG_Python_SetConstant(d, "OP_1ADD",SWIG_From_int(static_cast< int >(OP_1ADD))); - SWIG_Python_SetConstant(d, "OP_1SUB",SWIG_From_int(static_cast< int >(OP_1SUB))); - SWIG_Python_SetConstant(d, "OP_2MUL",SWIG_From_int(static_cast< int >(OP_2MUL))); - SWIG_Python_SetConstant(d, "OP_2DIV",SWIG_From_int(static_cast< int >(OP_2DIV))); - SWIG_Python_SetConstant(d, "OP_NEGATE",SWIG_From_int(static_cast< int >(OP_NEGATE))); - SWIG_Python_SetConstant(d, "OP_ABS",SWIG_From_int(static_cast< int >(OP_ABS))); - SWIG_Python_SetConstant(d, "OP_NOT",SWIG_From_int(static_cast< int >(OP_NOT))); - SWIG_Python_SetConstant(d, "OP_0NOTEQUAL",SWIG_From_int(static_cast< int >(OP_0NOTEQUAL))); - SWIG_Python_SetConstant(d, "OP_ADD",SWIG_From_int(static_cast< int >(OP_ADD))); - SWIG_Python_SetConstant(d, "OP_SUB",SWIG_From_int(static_cast< int >(OP_SUB))); - SWIG_Python_SetConstant(d, "OP_MUL",SWIG_From_int(static_cast< int >(OP_MUL))); - SWIG_Python_SetConstant(d, "OP_DIV",SWIG_From_int(static_cast< int >(OP_DIV))); - SWIG_Python_SetConstant(d, "OP_MOD",SWIG_From_int(static_cast< int >(OP_MOD))); - SWIG_Python_SetConstant(d, "OP_LSHIFT",SWIG_From_int(static_cast< int >(OP_LSHIFT))); - SWIG_Python_SetConstant(d, "OP_RSHIFT",SWIG_From_int(static_cast< int >(OP_RSHIFT))); - SWIG_Python_SetConstant(d, "OP_BOOLAND",SWIG_From_int(static_cast< int >(OP_BOOLAND))); - SWIG_Python_SetConstant(d, "OP_BOOLOR",SWIG_From_int(static_cast< int >(OP_BOOLOR))); - SWIG_Python_SetConstant(d, "OP_NUMEQUAL",SWIG_From_int(static_cast< int >(OP_NUMEQUAL))); - SWIG_Python_SetConstant(d, "OP_NUMEQUALVERIFY",SWIG_From_int(static_cast< int >(OP_NUMEQUALVERIFY))); - SWIG_Python_SetConstant(d, "OP_NUMNOTEQUAL",SWIG_From_int(static_cast< int >(OP_NUMNOTEQUAL))); - SWIG_Python_SetConstant(d, "OP_LESSTHAN",SWIG_From_int(static_cast< int >(OP_LESSTHAN))); - SWIG_Python_SetConstant(d, "OP_GREATERTHAN",SWIG_From_int(static_cast< int >(OP_GREATERTHAN))); - SWIG_Python_SetConstant(d, "OP_LESSTHANOREQUAL",SWIG_From_int(static_cast< int >(OP_LESSTHANOREQUAL))); - SWIG_Python_SetConstant(d, "OP_GREATERTHANOREQUAL",SWIG_From_int(static_cast< int >(OP_GREATERTHANOREQUAL))); - SWIG_Python_SetConstant(d, "OP_MIN",SWIG_From_int(static_cast< int >(OP_MIN))); - SWIG_Python_SetConstant(d, "OP_MAX",SWIG_From_int(static_cast< int >(OP_MAX))); - SWIG_Python_SetConstant(d, "OP_WITHIN",SWIG_From_int(static_cast< int >(OP_WITHIN))); - SWIG_Python_SetConstant(d, "OP_RIPEMD160",SWIG_From_int(static_cast< int >(OP_RIPEMD160))); - SWIG_Python_SetConstant(d, "OP_SHA1",SWIG_From_int(static_cast< int >(OP_SHA1))); - SWIG_Python_SetConstant(d, "OP_SHA256",SWIG_From_int(static_cast< int >(OP_SHA256))); - SWIG_Python_SetConstant(d, "OP_HASH160",SWIG_From_int(static_cast< int >(OP_HASH160))); - SWIG_Python_SetConstant(d, "OP_HASH256",SWIG_From_int(static_cast< int >(OP_HASH256))); - SWIG_Python_SetConstant(d, "OP_CODESEPARATOR",SWIG_From_int(static_cast< int >(OP_CODESEPARATOR))); - SWIG_Python_SetConstant(d, "OP_CHECKSIG",SWIG_From_int(static_cast< int >(OP_CHECKSIG))); - SWIG_Python_SetConstant(d, "OP_CHECKSIGVERIFY",SWIG_From_int(static_cast< int >(OP_CHECKSIGVERIFY))); - SWIG_Python_SetConstant(d, "OP_CHECKMULTISIG",SWIG_From_int(static_cast< int >(OP_CHECKMULTISIG))); - SWIG_Python_SetConstant(d, "OP_CHECKMULTISIGVERIFY",SWIG_From_int(static_cast< int >(OP_CHECKMULTISIGVERIFY))); - SWIG_Python_SetConstant(d, "OP_NOP1",SWIG_From_int(static_cast< int >(OP_NOP1))); - SWIG_Python_SetConstant(d, "OP_NOP2",SWIG_From_int(static_cast< int >(OP_NOP2))); - SWIG_Python_SetConstant(d, "OP_NOP3",SWIG_From_int(static_cast< int >(OP_NOP3))); - SWIG_Python_SetConstant(d, "OP_NOP4",SWIG_From_int(static_cast< int >(OP_NOP4))); - SWIG_Python_SetConstant(d, "OP_NOP5",SWIG_From_int(static_cast< int >(OP_NOP5))); - SWIG_Python_SetConstant(d, "OP_NOP6",SWIG_From_int(static_cast< int >(OP_NOP6))); - SWIG_Python_SetConstant(d, "OP_NOP7",SWIG_From_int(static_cast< int >(OP_NOP7))); - SWIG_Python_SetConstant(d, "OP_NOP8",SWIG_From_int(static_cast< int >(OP_NOP8))); - SWIG_Python_SetConstant(d, "OP_NOP9",SWIG_From_int(static_cast< int >(OP_NOP9))); - SWIG_Python_SetConstant(d, "OP_NOP10",SWIG_From_int(static_cast< int >(OP_NOP10))); - SWIG_Python_SetConstant(d, "OP_PUBKEYHASH",SWIG_From_int(static_cast< int >(OP_PUBKEYHASH))); - SWIG_Python_SetConstant(d, "OP_PUBKEY",SWIG_From_int(static_cast< int >(OP_PUBKEY))); - SWIG_Python_SetConstant(d, "OP_INVALIDOPCODE",SWIG_From_int(static_cast< int >(OP_INVALIDOPCODE))); - PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); - SWIG_addvarlink(SWIG_globals(),(char*)"BtcUtils_BadAddress_",Swig_var_BtcUtils_BadAddress__get, Swig_var_BtcUtils_BadAddress__set); - SWIG_addvarlink(SWIG_globals(),(char*)"BtcUtils_EmptyHash_",Swig_var_BtcUtils_EmptyHash__get, Swig_var_BtcUtils_EmptyHash__set); - SWIG_Python_SetConstant(d, "DEFAULT_KDF_MAX_MEMORY",SWIG_From_int(static_cast< int >(32*1024*1024))); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/createTxFromAddrList.py b/createTxFromAddrList.py index 608f5bb89..12a7e4bc1 100644 --- a/createTxFromAddrList.py +++ b/createTxFromAddrList.py @@ -118,7 +118,7 @@ def createTxFromAddrList(walletObj, addrList, recipAmtPairList, \ raise FileExistsError, 'Wallet file does not exist! [%s]' % walletFile wlt = PyBtcWallet().readWalletFile(walletFile) - + # Only use these addresses for this tx addrList = ['1dyRSCSJdRiPgGYNTSE31Lodvs3Peiiqx', \ '131t9NSPV3U1DdyQsEEcEzyyYsWrAcm1ZX'] diff --git a/qtdefines.py b/qtdefines.py index d06258d0e..7f42fded9 100644 --- a/qtdefines.py +++ b/qtdefines.py @@ -247,7 +247,7 @@ def createToolTipObject(tiptext, iconSz=2): ################################################################################ -def MsgBoxCustom(wtype, title, msg, wCancel=False): +def MsgBoxCustom(wtype, title, msg, wCancel=False, yesStr='Yes', noStr='No'): """ Creates a warning/question/critical dialog, but with a "Do not ask again" checkbox. Will return a pair (response, DNAA-is-checked) @@ -287,8 +287,8 @@ def __init__(self, dtype, dtitle, wmsg, withCancel=False): buttonbox = QDialogButtonBox() if dtype==MSGBOX.Question: - btnYes = QPushButton('Yes') - btnNo = QPushButton('No') + btnYes = QPushButton(yesStr) + btnNo = QPushButton(noStr) self.connect(btnYes, SIGNAL('clicked()'), self.accept) self.connect(btnNo, SIGNAL('clicked()'), self.reject) buttonbox.addButton(btnYes,QDialogButtonBox.AcceptRole) @@ -321,7 +321,7 @@ def __init__(self, dtype, dtitle, wmsg, withCancel=False): return result ################################################################################ -def MsgBoxWithDNAA(wtype, title, msg, dnaaMsg, wCancel=False): +def MsgBoxWithDNAA(wtype, title, msg, dnaaMsg, wCancel=False, yesStr='Yes', noStr='No'): """ Creates a warning/question/critical dialog, but with a "Do not ask again" checkbox. Will return a pair (response, DNAA-is-checked) @@ -365,8 +365,8 @@ def __init__(self, dtype, dtitle, wmsg, dmsg=None, withCancel=False): buttonbox = QDialogButtonBox() if dtype==MSGBOX.Question: - btnYes = QPushButton('Yes') - btnNo = QPushButton('No') + btnYes = QPushButton(yesStr) + btnNo = QPushButton(noStr) self.connect(btnYes, SIGNAL('clicked()'), self.accept) self.connect(btnNo, SIGNAL('clicked()'), self.reject) buttonbox.addButton(btnYes,QDialogButtonBox.AcceptRole) diff --git a/qtdialogs.py b/qtdialogs.py index 7b2aaa0e1..b9ebad0e9 100755 --- a/qtdialogs.py +++ b/qtdialogs.py @@ -3837,8 +3837,8 @@ def __init__(self, wlt, recipValPairs, fee, parent=None, main=None, sendNow=Fals ffixBold = GETFONT('Fixed') ffixBold.setWeight(QFont.Bold) for rv in recipValPairs: - recipLbls.append(QLabel( hash160_to_addrStr(rv[0]) + ' : ' + - coin2str(rv[1], rJust=True, maxZeros=4))) + addrPrint = (hash160_to_addrStr(rv[0]) + ' : ').ljust(37) + recipLbls.append(QLabel( addrPrint + coin2str(rv[1], rJust=True, maxZeros=4))) recipLbls[-1].setFont(ffixBold)