diff --git a/.gitignore b/.gitignore index 4f7281ea..bcac91b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /install/ /__build-compile/ /Doxyfile.bak +__pycache__/ \ No newline at end of file diff --git a/meson.build b/meson.build index 5591382a..48202b99 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('btllib', 'cpp', - version : '1.5.0', + version : '1.5.1', license : 'GPL3', default_options : [ 'cpp_std=c++11', 'warning_level=3', 'werror=true' ], meson_version : '>= 0.60.0') diff --git a/scripts/test-wrappers b/scripts/test-wrappers index 032094a4..7818e248 100755 --- a/scripts/test-wrappers +++ b/scripts/test-wrappers @@ -9,5 +9,6 @@ set -e cd "${MESON_SOURCE_ROOT}" -cd install/lib/btllib/python -python3 -c 'import btllib; nt = btllib.NtHash("ACTG", 2, 3); nt.roll(); b = btllib.BloomFilter(1024, 2); b.insert(nt.hashes())' \ No newline at end of file +export PYTHONPATH="$(pwd)/install/lib/btllib/python" +cd tests/python +python -m unittest \ No newline at end of file diff --git a/scripts/wrap b/scripts/wrap index 1637d112..f9b75275 100755 --- a/scripts/wrap +++ b/scripts/wrap @@ -1,33 +1,20 @@ -#!/bin/bash +#!/usr/bin/env python3 -if [ -z "${MESON_SOURCE_ROOT}" ]; then - echo "[ERROR] This script can only be ran with meson!" - exit 1 -fi +import os +import re +import functools +import subprocess -set -e -# Remove old wrapper files -rm -f ${MESON_SOURCE_ROOT}/wrappers/python/btllib.py +class PythonWrapper: -# Generate python swig files -cd ${MESON_SOURCE_ROOT} + INTERFACE_TEMPLATE = """%module btllib -include_files=$(scripts/get-files include) - -echo "%module btllib - -%{ +%{{ #define SWIG_FILE_WITH_INIT -" > wrappers/python/btllib.i -for file in ${include_files}; do - relative=$(scripts/get-include-relative ${file}) - path="${relative}/$(basename ${file})" - echo "#include \"$path\"" >> wrappers/python/btllib.i -done - -echo "%} +{cpp_includes} +%}} %include %include @@ -42,23 +29,101 @@ echo "%} %include %include -%include \"../extra_common.i\" -%include \"extra.i\" -" >> wrappers/python/btllib.i +%include "../extra_common.i" +%include "extra.i" + +{swig_includes} + +%include "../extra_templates.i" +""" + + def __init__(self, out_path: str, include_path: str): + self._out_path = out_path + self._include_path = include_path + + def _remove_old_files(self): + if os.path.exists(os.path.join(self._out_path, 'btllib.py')): + os.remove(os.path.join(self._out_path, 'btllib.py')) + + def _load_include_file_names(self): + include_files = os.listdir(os.path.join(self._include_path, 'btllib')) + code_filter = functools.partial(re.match, r'.*\.(h|hpp|cpp|cxx)$') + code_files = filter(code_filter, include_files) + path_fixer = functools.partial(os.path.join, 'btllib') + include_files = map(path_fixer, code_files) + return list(include_files) + + def _update_interface_file(self): + with open(os.path.join(self._out_path, 'btllib.i')) as f: + current_lines = list(map(str.strip, f.readlines())) + # Add include statements only for newly added files. + # This will prevent changing the ordering of the includes. + include_files = [] + for line in current_lines: + include_match = re.match(r'#include "(.*)"', line) + if include_match: + include_files.append(include_match.group(1)) + for file in self._load_include_file_names(): + if file not in include_files: + include_files.append(file) + cpp = os.linesep.join(f'#include "{f}"' for f in include_files) + swig = os.linesep.join(f'%include "{f}"' for f in include_files) + interface = PythonWrapper.INTERFACE_TEMPLATE.format(cpp_includes=cpp, + swig_includes=swig) + with open(os.path.join(self._out_path, 'btllib.i'), 'w') as f: + f.write(interface) + + def _call_swig(self): + swig_cmd = [ + 'swig', '-python', '-fastproxy', '-fastdispatch', '-builtin', + '-c++', f'-I{self._include_path}', 'btllib.i' + ] + return subprocess.run(swig_cmd, + capture_output=True, + text=True, + cwd=self._out_path) + + def _fix_unsigned_long_long(self): + # The following is necessary because SWIG produces inconsistent code that cannot be compiled on all platforms. + # On some platforms, uint64_t is unsigned long int and unsigned long long int on others. + cxx_path = os.path.join(self._out_path, 'btllib_wrap.cxx') + with open(cxx_path) as f: + cxx_contents = f.read() + cxx_contents = cxx_contents.replace('unsigned long long', 'uint64_t') + with open(cxx_path, 'w') as f: + f.write(cxx_contents) + + def generate(self): + self._remove_old_files() + self._update_interface_file() + swig_result = self._call_swig() + self._fix_unsigned_long_long() + return swig_result + + +def check_meson_env(): + if 'MESON_SOURCE_ROOT' not in os.environ: + print("[ERROR] This script can only be ran with meson!") + exit(1) + + +def check_swig_result(swig_result, wrapper_language: str): + lang = wrapper_language.capitalize() + if swig_result.returncode == 0: + print(f"{lang} wrappers generated successfully") + elif swig_result.returncode == 1: + print(f"Error when calling SWIG for {lang}, stderr:") + print(swig_result.stderr) -for file in ${include_files}; do - relative=$(scripts/get-include-relative ${file}) - path="${relative}/$(basename ${file})" - echo "%include \"$path\"" >> wrappers/python/btllib.i -done -echo "%include \"../extra_templates.i\"" >> wrappers/python/btllib.i +def main(): + check_meson_env() + project_root = os.environ['MESON_SOURCE_ROOT'] + include_path = os.path.join(project_root, 'include') + python_dir = os.path.join(project_root, 'wrappers', 'python') + swig_result_py = PythonWrapper(python_dir, include_path).generate() + check_swig_result(swig_result_py, 'python') -ln -sf $PWD/include wrappers/python/ -cd wrappers/python -swig -python -py3 -fastproxy -fastdispatch -builtin -c++ -Iinclude btllib.i -rm -f include -# The following line is necessary because SWIG produces inconsistent code that cannot be compiled on all platforms. On some platforms, uint64_t is unsigned long int and unsigned long long int on others. -sed -i'.tmp' 's~unsigned long long~uint64_t~g' btllib_wrap.cxx -rm -f btllib_wrap.cxx.tmp +if __name__ == '__main__': + main() diff --git a/tests/python/single_seq.fa b/tests/python/single_seq.fa new file mode 100644 index 00000000..3ef2f95a --- /dev/null +++ b/tests/python/single_seq.fa @@ -0,0 +1,2 @@ +>1 +CGCGTGAAAGCAAAACAAGA diff --git a/tests/python/test_bloom_filter.py b/tests/python/test_bloom_filter.py new file mode 100644 index 00000000..2eeb18c1 --- /dev/null +++ b/tests/python/test_bloom_filter.py @@ -0,0 +1,10 @@ +import btllib +import unittest + +class BloomFilterTests(unittest.TestCase): + + def test_seq_insertion(self): + seq, k = 'AGTCATCGACTGATGC', 5 + bf = btllib.KmerBloomFilter(1024, 3, k) + bf.insert(seq) + self.assertEqual(bf.contains('TCATC'), 1) diff --git a/tests/python/test_seq_reader.py b/tests/python/test_seq_reader.py new file mode 100644 index 00000000..b47a528e --- /dev/null +++ b/tests/python/test_seq_reader.py @@ -0,0 +1,16 @@ +import os +import btllib +import unittest + + +class SeqReaderTests(unittest.TestCase): + + def setUp(self): + self.base_dir = os.path.dirname(__file__) + + def test_seq_reader_single_seq(self): + seq = 'CGCGTGAAAGCAAAACAAGA' + path = os.path.join(self.base_dir, 'single_seq.fa') + with btllib.SeqReader(path, btllib.SeqReaderFlag.SHORT_MODE) as reader: + read = [record.seq for record in reader] + self.assertListEqual([seq], read) diff --git a/wrappers/python/btllib.i b/wrappers/python/btllib.i index 1cf6ed3d..19607cbc 100644 --- a/wrappers/python/btllib.i +++ b/wrappers/python/btllib.i @@ -3,30 +3,30 @@ %{ #define SWIG_FILE_WITH_INIT +#include "btllib/indexlr.hpp" #include "btllib/graph.hpp" -#include "btllib/seq_writer.hpp" -#include "btllib/seq_reader_sam_module.hpp" -#include "btllib/nthash_lowlevel.hpp" -#include "btllib/counting_bloom_filter.hpp" -#include "btllib/mi_bloom_filter.hpp" -#include "btllib/data_stream.hpp" +#include "btllib/order_queue.hpp" #include "btllib/bloom_filter.hpp" -#include "btllib/seq_reader.hpp" -#include "btllib/cstring.hpp" #include "btllib/seq_reader_gfa2_module.hpp" -#include "btllib/indexlr.hpp" -#include "btllib/random_seq_generator.hpp" +#include "btllib/seq_reader_fasta_module.hpp" +#include "btllib/counting_bloom_filter.hpp" +#include "btllib/seq_reader.hpp" +#include "btllib/seq_reader_sam_module.hpp" +#include "btllib/seq_reader_multiline_fasta_module.hpp" #include "btllib/util.hpp" -#include "btllib/order_queue.hpp" +#include "btllib/seq_writer.hpp" #include "btllib/seq.hpp" -#include "btllib/seq_reader_fastq_module.hpp" -#include "btllib/nthash.hpp" -#include "btllib/status.hpp" #include "btllib/nthash_consts.hpp" +#include "btllib/nthash_lowlevel.hpp" +#include "btllib/data_stream.hpp" #include "btllib/process_pipeline.hpp" -#include "btllib/seq_reader_fasta_module.hpp" -#include "btllib/seq_reader_multiline_fasta_module.hpp" #include "btllib/seq_reader_multiline_fastq_module.hpp" +#include "btllib/status.hpp" +#include "btllib/seq_reader_fastq_module.hpp" +#include "btllib/mi_bloom_filter.hpp" +#include "btllib/cstring.hpp" +#include "btllib/nthash.hpp" +#include "btllib/random_seq_generator.hpp" %} %include @@ -45,28 +45,29 @@ %include "../extra_common.i" %include "extra.i" +%include "btllib/indexlr.hpp" %include "btllib/graph.hpp" -%include "btllib/seq_writer.hpp" -%include "btllib/seq_reader_sam_module.hpp" -%include "btllib/nthash_lowlevel.hpp" -%include "btllib/counting_bloom_filter.hpp" -%include "btllib/mi_bloom_filter.hpp" -%include "btllib/data_stream.hpp" +%include "btllib/order_queue.hpp" %include "btllib/bloom_filter.hpp" -%include "btllib/seq_reader.hpp" -%include "btllib/cstring.hpp" %include "btllib/seq_reader_gfa2_module.hpp" -%include "btllib/indexlr.hpp" -%include "btllib/random_seq_generator.hpp" +%include "btllib/seq_reader_fasta_module.hpp" +%include "btllib/counting_bloom_filter.hpp" +%include "btllib/seq_reader.hpp" +%include "btllib/seq_reader_sam_module.hpp" +%include "btllib/seq_reader_multiline_fasta_module.hpp" %include "btllib/util.hpp" -%include "btllib/order_queue.hpp" +%include "btllib/seq_writer.hpp" %include "btllib/seq.hpp" -%include "btllib/seq_reader_fastq_module.hpp" -%include "btllib/nthash.hpp" -%include "btllib/status.hpp" %include "btllib/nthash_consts.hpp" +%include "btllib/nthash_lowlevel.hpp" +%include "btllib/data_stream.hpp" %include "btllib/process_pipeline.hpp" -%include "btllib/seq_reader_fasta_module.hpp" -%include "btllib/seq_reader_multiline_fasta_module.hpp" %include "btllib/seq_reader_multiline_fastq_module.hpp" +%include "btllib/status.hpp" +%include "btllib/seq_reader_fastq_module.hpp" +%include "btllib/mi_bloom_filter.hpp" +%include "btllib/cstring.hpp" +%include "btllib/nthash.hpp" +%include "btllib/random_seq_generator.hpp" + %include "../extra_templates.i" diff --git a/wrappers/python/btllib_wrap.cxx b/wrappers/python/btllib_wrap.cxx index adf64ac0..2423ab6b 100644 --- a/wrappers/python/btllib_wrap.cxx +++ b/wrappers/python/btllib_wrap.cxx @@ -4010,30 +4010,30 @@ namespace swig { #define SWIG_FILE_WITH_INIT +#include "btllib/indexlr.hpp" #include "btllib/graph.hpp" -#include "btllib/seq_writer.hpp" -#include "btllib/seq_reader_sam_module.hpp" -#include "btllib/nthash_lowlevel.hpp" -#include "btllib/counting_bloom_filter.hpp" -#include "btllib/mi_bloom_filter.hpp" -#include "btllib/data_stream.hpp" +#include "btllib/order_queue.hpp" #include "btllib/bloom_filter.hpp" -#include "btllib/seq_reader.hpp" -#include "btllib/cstring.hpp" #include "btllib/seq_reader_gfa2_module.hpp" -#include "btllib/indexlr.hpp" -#include "btllib/random_seq_generator.hpp" +#include "btllib/seq_reader_fasta_module.hpp" +#include "btllib/counting_bloom_filter.hpp" +#include "btllib/seq_reader.hpp" +#include "btllib/seq_reader_sam_module.hpp" +#include "btllib/seq_reader_multiline_fasta_module.hpp" #include "btllib/util.hpp" -#include "btllib/order_queue.hpp" +#include "btllib/seq_writer.hpp" #include "btllib/seq.hpp" -#include "btllib/seq_reader_fastq_module.hpp" -#include "btllib/nthash.hpp" -#include "btllib/status.hpp" #include "btllib/nthash_consts.hpp" +#include "btllib/nthash_lowlevel.hpp" +#include "btllib/data_stream.hpp" #include "btllib/process_pipeline.hpp" -#include "btllib/seq_reader_fasta_module.hpp" -#include "btllib/seq_reader_multiline_fasta_module.hpp" #include "btllib/seq_reader_multiline_fastq_module.hpp" +#include "btllib/status.hpp" +#include "btllib/seq_reader_fastq_module.hpp" +#include "btllib/mi_bloom_filter.hpp" +#include "btllib/cstring.hpp" +#include "btllib/nthash.hpp" +#include "btllib/random_seq_generator.hpp" #include // Use the C99 official header @@ -7082,29 +7082,13 @@ SWIGINTERN void std_vector_Sl_btllib_SpacedSeed_Sg__insert__SWIG_1(std::vector< static_assert(sizeof(long unsigned int) >= sizeof(uint64_t), "Python wrappers are using wrong size integers."); -SWIGINTERN btllib::SeqWriter *btllib_SeqWriter___enter__(btllib::SeqWriter *self){ +SWIGINTERN btllib::Indexlr *btllib_Indexlr___enter__(btllib::Indexlr *self){ return self; } -SWIGINTERN void btllib_SeqWriter___exit__(btllib::SeqWriter *self,PyObject *,PyObject *,PyObject *){ +SWIGINTERN void btllib_Indexlr___exit__(btllib::Indexlr *self,PyObject *,PyObject *,PyObject *){ self->close(); } -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned char >(v); - } - } - return res; -} - - SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr) { @@ -7117,10 +7101,10 @@ SWIGINTERN btllib::SeqReader *btllib_SeqReader___enter__(btllib::SeqReader *self SWIGINTERN void btllib_SeqReader___exit__(btllib::SeqReader *self,PyObject *,PyObject *,PyObject *){ self->close(); } -SWIGINTERN btllib::Indexlr *btllib_Indexlr___enter__(btllib::Indexlr *self){ +SWIGINTERN btllib::SeqWriter *btllib_SeqWriter___enter__(btllib::SeqWriter *self){ return self; } -SWIGINTERN void btllib_Indexlr___exit__(btllib::Indexlr *self,PyObject *,PyObject *,PyObject *){ +SWIGINTERN void btllib_SeqWriter___exit__(btllib::SeqWriter *self,PyObject *,PyObject *,PyObject *){ self->close(); } @@ -7133,6 +7117,29 @@ SWIG_strnlen(const char* s, size_t maxlen) return p - s; } + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_char (unsigned char value) +{ + return SWIG_From_unsigned_SS_long (value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UCHAR_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned char >(v); + } + } + return res; +} + SWIGINTERN btllib::NtHash *new_btllib_NtHash__SWIG_0(std::string seq,unsigned int hash_num,unsigned int k,size_t pos=0){ std::unique_lock lock(nthash_mutex); nthash_strings[++nthash_last_id] = std::move(seq); @@ -7170,13 +7177,6 @@ SWIGINTERN void delete_btllib_SeedNtHash(btllib::SeedNtHash *self){ nthash_ids.erase((void*)self); } -SWIGINTERNINLINE PyObject * -SWIG_From_unsigned_SS_char (unsigned char value) -{ - return SWIG_From_unsigned_SS_long (value); -} - - SWIGINTERNINLINE PyObject * SWIG_From_unsigned_SS_short (unsigned short value) { @@ -25179,1279 +25179,1190 @@ SWIGPY_OBJOBJARGPROC_CLOSURE(_wrap_VectorSpacedSeed___setitem__) /* defines _wra SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_VectorSpacedSeed) /* defines _wrap_delete_VectorSpacedSeed_destructor_closure */ -SWIGINTERN int _wrap_new_SeqWriter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_output_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - btllib::SeqWriter::Format arg2 ; - bool arg3 ; - int res1 = SWIG_OLDOBJ ; - int val2 ; - int ecode2 = 0 ; - bool val3 ; - int ecode3 = 0 ; - btllib::SeqWriter *result = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_id", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_id" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqWriter" "', argument " "2"" of type '" "btllib::SeqWriter::Format""'"); - } - arg2 = static_cast< btllib::SeqWriter::Format >(val2); - ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeqWriter" "', argument " "3"" of type '" "bool""'"); - } - arg3 = static_cast< bool >(val3); - result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->output_id(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeqWriter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_output_bx(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - btllib::SeqWriter::Format arg2 ; - int res1 = SWIG_OLDOBJ ; - int val2 ; - int ecode2 = 0 ; - btllib::SeqWriter *result = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_bx", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_bx" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqWriter" "', argument " "2"" of type '" "btllib::SeqWriter::Format""'"); - } - arg2 = static_cast< btllib::SeqWriter::Format >(val2); - result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->output_bx(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeqWriter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_output_seq(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::SeqWriter *result = 0 ; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; -} - - -SWIGINTERN int _wrap_new_SeqWriter(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqWriter")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeqWriter", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int retval = _wrap_new_SeqWriter__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 2) { - int retval = _wrap_new_SeqWriter__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int retval = _wrap_new_SeqWriter__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_seq", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_seq" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->output_seq(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeqWriter'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeqWriter::SeqWriter(std::string const &,btllib::SeqWriter::Format,bool)\n" - " btllib::SeqWriter::SeqWriter(std::string const &,btllib::SeqWriter::Format)\n" - " btllib::SeqWriter::SeqWriter(std::string const &)\n"); - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_SeqWriter_close(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_output_qual(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqWriter_close", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_qual", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_close" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_qual" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - (arg1)->close(); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->output_qual(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_filter_in(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; - std::string *arg2 = 0 ; - std::string *arg3 = 0 ; - std::string *arg4 = 0 ; - std::string *arg5 = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - int res3 = SWIG_OLDOBJ ; - int res4 = SWIG_OLDOBJ ; - int res5 = SWIG_OLDOBJ ; + bool result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_in", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_write" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); - } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - { - std::string *ptr = (std::string *)0; - res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); - } - arg3 = ptr; - } - { - std::string *ptr = (std::string *)0; - res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); - } - arg4 = ptr; - } - { - std::string *ptr = (std::string *)0; - res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SeqWriter_write" "', argument " "5"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "5"" of type '" "std::string const &""'"); - } - arg5 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_in" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - (arg1)->write((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - if (SWIG_IsNewObj(res3)) delete arg3; - if (SWIG_IsNewObj(res4)) delete arg4; - if (SWIG_IsNewObj(res5)) delete arg5; + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->filter_in(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - if (SWIG_IsNewObj(res3)) delete arg3; - if (SWIG_IsNewObj(res4)) delete arg4; - if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } -SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_filter_out(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; - std::string *arg2 = 0 ; - std::string *arg3 = 0 ; - std::string *arg4 = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - int res3 = SWIG_OLDOBJ ; - int res4 = SWIG_OLDOBJ ; + bool result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_out", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_write" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); - } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - { - std::string *ptr = (std::string *)0; - res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); - } - arg3 = ptr; - } - { - std::string *ptr = (std::string *)0; - res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); - } - arg4 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_out" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - (arg1)->write((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - if (SWIG_IsNewObj(res3)) delete arg3; - if (SWIG_IsNewObj(res4)) delete arg4; + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->filter_out(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - if (SWIG_IsNewObj(res3)) delete arg3; - if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_SeqWriter_write(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[6] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeqWriter_write", 0, 5, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 4) { - PyObject *retobj = _wrap_SeqWriter_write__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 5) { - PyObject *retobj = _wrap_SeqWriter_write__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeqWriter_write'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeqWriter::write(std::string const &,std::string const &,std::string const &,std::string const &)\n" - " btllib::SeqWriter::write(std::string const &,std::string const &,std::string const &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SeqWriter___enter__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_short_mode(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::SeqWriter *result = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqWriter___enter__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_short_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter___enter__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_short_mode" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - result = (btllib::SeqWriter *)btllib_SeqWriter___enter__(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->short_mode(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeqWriter___exit__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_long_mode(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject *swig_obj[4] ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqWriter___exit__", 3, 3, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_long_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter___exit__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_long_mode" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - arg2 = swig_obj[0]; - arg3 = swig_obj[1]; - arg4 = swig_obj[2]; - btllib_SeqWriter___exit__(arg1,arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (bool)((btllib::Indexlr const *)arg1)->long_mode(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_SeqWriter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_read(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + btllib::Indexlr::Record result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeqWriter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_read", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqWriter" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_read" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (arg1)->read(); + resultobj = SWIG_NewPointerObj((new btllib::Indexlr::Record(result)), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqWriter) /* defines _wrap_delete_SeqWriter_destructor_closure */ - -SWIGINTERN PyObject *_wrap_srol__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - uint64_t val1 ; - int ecode1 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "srol" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - result = (uint64_t)btllib::srol(arg1); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_srol__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + bool arg6 ; + btllib::BloomFilter *arg7 = 0 ; + btllib::BloomFilter *arg8 = 0 ; + size_t val2 ; int ecode2 = 0 ; - uint64_t result; + size_t val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + bool val6 ; + int ecode6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "srol" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "srol" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)btllib::srol(arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_srol(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "srol", 0, 2, argv))) SWIG_fail; - --argc; - if (argc == 1) { - PyObject *retobj = _wrap_srol__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); + } + arg6 = static_cast< bool >(val6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); } - if (argc == 2) { - PyObject *retobj = _wrap_srol__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); } - + arg7 = reinterpret_cast< btllib::BloomFilter * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + } + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + } + arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7,(btllib::BloomFilter const &)*arg8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'srol'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::srol(uint64_t const)\n" - " btllib::srol(uint64_t const,unsigned int const)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_sror(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - uint64_t val1 ; - int ecode1 = 0 ; - PyObject *swig_obj[1] ; - uint64_t result; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + bool arg6 ; + btllib::BloomFilter *arg7 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + bool val6 ; + int ecode6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sror" "', argument " "1"" of type '" "uint64_t""'"); + if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg1 = static_cast< uint64_t >(val1); - result = (uint64_t)btllib::sror(arg1); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); + } + arg6 = static_cast< bool >(val6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); + } + if (!argp7) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); + } + arg7 = reinterpret_cast< btllib::BloomFilter * >(argp7); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntf64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + bool arg6 ; + size_t val2 ; int ecode2 = 0 ; - uint64_t result; + size_t val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + bool val6 ; + int ecode6 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntf64" "', argument " "1"" of type '" "char const *""'"); + if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)btllib::ntf64((char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); + } + arg6 = static_cast< bool >(val6); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntr64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + unsigned int arg4 ; + unsigned int arg5 ; + size_t val2 ; int ecode2 = 0 ; - uint64_t result; + size_t val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntr64" "', argument " "1"" of type '" "char const *""'"); + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)btllib::ntr64((char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntf64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + unsigned int arg4 ; + size_t val2 ; int ecode2 = 0 ; - unsigned char val3 ; + size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; + unsigned int val4 ; int ecode4 = 0 ; - uint64_t result; + btllib::Indexlr *result = 0 ; (void)self; if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntf64" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntf64" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned char >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntf64" "', argument " "4"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); } - arg4 = static_cast< unsigned char >(val4); - result = (uint64_t)btllib::ntf64(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ntf64(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[5] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntf64", 0, 4, argv))) SWIG_fail; - --argc; - if (argc == 2) { - PyObject *retobj = _wrap_ntf64__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 4) { - PyObject *retobj = _wrap_ntf64__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - + arg4 = static_cast< unsigned int >(val4); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntf64'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::ntf64(char const *,unsigned int)\n" - " btllib::ntf64(uint64_t,unsigned int,unsigned char,unsigned char)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_ntr64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t val2 ; int ecode2 = 0 ; - unsigned char val3 ; + size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - uint64_t result; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntr64" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntr64" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntr64" "', argument " "4"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg4 = static_cast< unsigned char >(val4); - result = (uint64_t)btllib::ntr64(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg3 = static_cast< size_t >(val3); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntr64(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[5] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntr64", 0, 4, argv))) SWIG_fail; - --argc; - if (argc == 2) { - PyObject *retobj = _wrap_ntr64__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 4) { - PyObject *retobj = _wrap_ntr64__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntr64'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::ntr64(char const *,unsigned int)\n" - " btllib::ntr64(uint64_t,unsigned int,unsigned char,unsigned char)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_ntc64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + bool arg7 ; + btllib::BloomFilter *arg8 = 0 ; + btllib::BloomFilter *arg9 = 0 ; + size_t val2 ; int ecode2 = 0 ; - uint64_t result; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + bool val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); + if ((nobjs < 9) || (nobjs > 9)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)btllib::ntc64((char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ntc64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - uint64_t *arg3 = 0 ; - uint64_t *arg4 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + } + arg7 = static_cast< bool >(val7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); } - arg3 = reinterpret_cast< uint64_t * >(argp3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + if (!argp9) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); } - arg4 = reinterpret_cast< uint64_t * >(argp4); - result = (uint64_t)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; + arg9 = reinterpret_cast< btllib::BloomFilter * >(argp9); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7,(btllib::BloomFilter const &)*arg8,(btllib::BloomFilter const &)*arg9); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntc64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_7(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - unsigned char val1 ; - int ecode1 = 0 ; - unsigned char val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + bool arg7 ; + btllib::BloomFilter *arg8 = 0 ; + size_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; + size_t val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - uint64_t result; + size_t val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + bool val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntc64" "', argument " "1"" of type '" "unsigned char""'"); - } - arg1 = static_cast< unsigned char >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned char >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntc64" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + } + arg7 = static_cast< bool >(val7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); } - arg5 = reinterpret_cast< uint64_t * >(argp5); - result = (uint64_t)btllib::ntc64(arg1,arg2,arg3,*arg4,*arg5); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7,(btllib::BloomFilter const &)*arg8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntf64l(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + bool arg7 ; + size_t val2 ; int ecode2 = 0 ; - unsigned char val3 ; + size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; + size_t val4 ; int ecode4 = 0 ; - PyObject *swig_obj[4] ; - uint64_t result; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + bool val7 ; + int ecode7 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "ntf64l", 4, 4, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntf64l" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64l" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntf64l" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned char >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntf64l" "', argument " "4"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); } - arg4 = static_cast< unsigned char >(val4); - result = (uint64_t)btllib::ntf64l(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg4 = static_cast< size_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + } + arg7 = static_cast< bool >(val7); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntr64l(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_9(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + size_t val2 ; int ecode2 = 0 ; - unsigned char val3 ; + size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; + size_t val4 ; int ecode4 = 0 ; - PyObject *swig_obj[4] ; - uint64_t result; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "ntr64l", 4, 4, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntr64l" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64l" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntr64l" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned char >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntr64l" "', argument " "4"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); } - arg4 = static_cast< unsigned char >(val4); - result = (uint64_t)btllib::ntr64l(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg4 = static_cast< size_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntc64l(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_10(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - unsigned char val1 ; - int ecode1 = 0 ; - unsigned char val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + size_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; + size_t val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject *swig_obj[5] ; - uint64_t result; + size_t val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "ntc64l", 5, 5, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntc64l" "', argument " "1"" of type '" "unsigned char""'"); - } - arg1 = static_cast< unsigned char >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64l" "', argument " "2"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned char >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntc64l" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64l" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64l" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64l" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64l" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - result = (uint64_t)btllib::ntc64l(arg1,arg2,arg3,*arg4,*arg5); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_nte64(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_11(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = (uint64_t *) 0 ; - uint64_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + size_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; + size_t val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject *swig_obj[4] ; + size_t val4 ; + int ecode4 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "nte64", 4, 4, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "nte64" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "nte64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "nte64" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "nte64" "', argument " "4"" of type '" "uint64_t *""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - btllib::nte64(arg1,arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; +SWIGINTERN int _wrap_new_Indexlr(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[10] = { + 0 + }; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Indexlr")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_Indexlr", 0, 9, argv))) SWIG_fail; + --argc; + if (argc == 3) { + int retval = _wrap_new_Indexlr__SWIG_5(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t *""'"); + if (argc == 4) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + return _wrap_new_Indexlr__SWIG_4(self, argc, argv); } - arg4 = reinterpret_cast< uint64_t * >(argp4); - btllib::ntmc64((char const *)arg1,arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; +check_2: + + if (argc == 4) { + int retval = _wrap_new_Indexlr__SWIG_11(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 5) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_4; + int retval = _wrap_new_Indexlr__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_4: + + if (argc == 5) { + int retval = _wrap_new_Indexlr__SWIG_10(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 6) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_6; + { + { + int res = SWIG_AsVal_bool(argv[5], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_6; + return _wrap_new_Indexlr__SWIG_2(self, argc, argv); + } +check_6: + + if (argc == 6) { + int retval = _wrap_new_Indexlr__SWIG_9(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 7) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_8; + { + { + int res = SWIG_AsVal_bool(argv[5], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_8; + { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_8; + return _wrap_new_Indexlr__SWIG_1(self, argc, argv); + } +check_8: + + if (argc == 7) { + int retval = _wrap_new_Indexlr__SWIG_8(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 8) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_10; + { + { + int res = SWIG_AsVal_bool(argv[5], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_10; + { + int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_10; + int retval = _wrap_new_Indexlr__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_10: + + if (argc == 8) { + int retval = _wrap_new_Indexlr__SWIG_7(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 9) { + int retval = _wrap_new_Indexlr__SWIG_6(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Indexlr'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int)\n" + " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_Indexlr(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - uint64_t *arg6 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "delete_Indexlr", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Indexlr" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - arg6 = reinterpret_cast< uint64_t * >(argp6); - btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,arg6); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_close(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned int arg3 ; - unsigned int arg4 ; - uint64_t *arg5 = 0 ; - uint64_t *arg6 = 0 ; - uint64_t *arg7 = (uint64_t *) 0 ; - unsigned char val1 ; - int ecode1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64" "', argument " "1"" of type '" "unsigned char""'"); - } - arg1 = static_cast< unsigned char >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); - } - arg6 = reinterpret_cast< uint64_t * >(argp6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_close", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_close" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - arg7 = reinterpret_cast< uint64_t * >(argp7); - btllib::ntmc64(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -26459,582 +26370,369 @@ SWIGINTERN PyObject *_wrap_ntmc64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyOb } -SWIGINTERN PyObject *_wrap_ntmc64l(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr___iter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned int arg3 ; - unsigned int arg4 ; - uint64_t *arg5 = 0 ; - uint64_t *arg6 = 0 ; - uint64_t *arg7 = (uint64_t *) 0 ; - unsigned char val1 ; - int ecode1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject *swig_obj[7] ; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + SwigValueWrapper< btllib::Indexlr::RecordIterator > result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "ntmc64l", 7, 7, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64l" "', argument " "1"" of type '" "unsigned char""'"); - } - arg1 = static_cast< unsigned char >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64l" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64l" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64l" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64l" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64l" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64l" "', argument " "6"" of type '" "uint64_t &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64l" "', argument " "6"" of type '" "uint64_t &""'"); - } - arg6 = reinterpret_cast< uint64_t * >(argp6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64l" "', argument " "7"" of type '" "uint64_t *""'"); + if (!SWIG_Python_UnpackTuple(args, "Indexlr___iter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___iter__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - arg7 = reinterpret_cast< uint64_t * >(argp7); - btllib::ntmc64l(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj((new btllib::Indexlr::RecordIterator(result)), SWIGTYPE_p_btllib__Indexlr__RecordIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ntc64__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr___enter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - uint64_t *arg3 = 0 ; - unsigned int *arg4 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - bool result; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::Indexlr *result = 0 ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "Indexlr___enter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___enter__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - arg3 = reinterpret_cast< uint64_t * >(argp3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "unsigned int &""'"); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + result = (btllib::Indexlr *)btllib_Indexlr___enter__(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Indexlr___exit__(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + PyObject *arg3 = (PyObject *) 0 ; + PyObject *arg4 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[4] ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "Indexlr___exit__", 3, 3, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___exit__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "unsigned int &""'"); + arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); + arg2 = swig_obj[0]; + arg3 = swig_obj[1]; + arg4 = swig_obj[2]; + btllib_Indexlr___exit__(arg1,arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Indexlr) /* defines _wrap_delete_Indexlr_destructor_closure */ + +SWIGPY_GETITERFUNC_CLOSURE(_wrap_Indexlr___iter__) /* defines _wrap_Indexlr___iter___getiterfunc_closure */ + +SWIGINTERN int _wrap_new_IndexlrFlag(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + btllib::Indexlr::Flag *result = 0 ; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrFlag")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_IndexlrFlag", 0, 0, 0)) SWIG_fail; + result = (btllib::Indexlr::Flag *)new btllib::Indexlr::Flag(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Flag, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN PyObject *_wrap_delete_IndexlrFlag(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr::Flag *arg1 = (btllib::Indexlr::Flag *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrFlag", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Flag, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrFlag" "', argument " "1"" of type '" "btllib::Indexlr::Flag *""'"); } - arg4 = reinterpret_cast< unsigned int * >(argp4); - result = (bool)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg1 = reinterpret_cast< btllib::Indexlr::Flag * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrFlag) /* defines _wrap_delete_IndexlrFlag_destructor_closure */ + +SWIGINTERN int _wrap_new_Minimizer__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - unsigned int *arg4 = 0 ; - uint64_t *arg5 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + btllib::Indexlr::Minimizer *result = 0 ; + + (void)self; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_Minimizer__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + uint64_t arg1 ; + uint64_t arg2 ; + size_t arg3 ; + bool arg4 ; + std::string arg5 ; + uint64_t val1 ; + int ecode1 = 0 ; + uint64_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; + size_t val3 ; int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - bool result; + bool val4 ; + int ecode4 = 0 ; + btllib::Indexlr::Minimizer *result = 0 ; (void)self; if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Minimizer" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Minimizer" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int &""'"); - } - arg4 = reinterpret_cast< unsigned int * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t *""'"); + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Minimizer" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "5"" of type '" "std::string""'"); + } + arg5 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg5 = reinterpret_cast< uint64_t * >(argp5); - result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,arg5); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; + result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntc64__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Minimizer__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - uint64_t *arg3 = 0 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - unsigned int *arg6 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + uint64_t arg1 ; + uint64_t arg2 ; + size_t arg3 ; + bool arg4 ; + std::string arg5 ; + std::string arg6 ; + uint64_t val1 ; + int ecode1 = 0 ; + uint64_t val2 ; int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - bool result; + size_t val3 ; + int ecode3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + btllib::Indexlr::Minimizer *result = 0 ; (void)self; if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Minimizer" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); } - arg2 = static_cast< unsigned int >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); - } - arg3 = reinterpret_cast< uint64_t * >(argp3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntc64" "', argument " "6"" of type '" "unsigned int &""'"); + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Minimizer" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Minimizer" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "5"" of type '" "std::string""'"); + } + arg5 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "6"" of type '" "unsigned int &""'"); + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[5], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "6"" of type '" "std::string""'"); + } + arg6 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg6 = reinterpret_cast< unsigned int * >(argp6); - result = (bool)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4,*arg5,*arg6); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; + result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntc64(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Minimizer(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[7] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntc64", 0, 6, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Minimizer")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_Minimizer", 0, 6, argv))) SWIG_fail; --argc; - if (argc == 2) { - PyObject *retobj = _wrap_ntc64__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 4) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_ntc64__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 4) { - PyObject *retobj = _wrap_ntc64__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 0) { + int retval = _wrap_new_Minimizer__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 5) { - PyObject *retobj = _wrap_ntc64__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_Minimizer__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 6) { - PyObject *retobj = _wrap_ntc64__SWIG_4(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_Minimizer__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntc64'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Minimizer'.\n" " Possible C/C++ prototypes are:\n" - " btllib::ntc64(char const *,unsigned int)\n" - " btllib::ntc64(char const *,unsigned int,uint64_t &,uint64_t &)\n" - " btllib::ntc64(unsigned char,unsigned char,unsigned int,uint64_t &,uint64_t &)\n" - " btllib::ntc64(char const *,unsigned int,uint64_t &,unsigned int &)\n" - " btllib::ntc64(char const *,unsigned int,uint64_t &,uint64_t &,uint64_t &,unsigned int &)\n"); - return 0; + " btllib::Indexlr::Minimizer::Minimizer()\n" + " btllib::Indexlr::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string)\n" + " btllib::Indexlr::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string,std::string)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_min_hash_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - unsigned int *arg6 = 0 ; - uint64_t *arg7 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - bool result; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_min_hash_set" "', argument " "2"" of type '" "uint64_t""'"); } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); - } - arg6 = reinterpret_cast< unsigned int * >(argp6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,*arg6,arg7); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg2 = static_cast< uint64_t >(val2); + if (arg1) (arg1)->min_hash = arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_min_hash_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - uint64_t *arg4 = 0 ; - uint64_t *arg5 = 0 ; - unsigned int *arg6 = 0 ; - uint64_t *arg7 = (uint64_t *) 0 ; - bool *arg8 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - bool result; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t result; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "Minimizer_min_hash_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); - } - arg4 = reinterpret_cast< uint64_t * >(argp4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); - } - arg6 = reinterpret_cast< unsigned int * >(argp6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_bool, 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); - } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); - } - arg8 = reinterpret_cast< bool * >(argp8); - result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,*arg6,arg7,*arg8); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = (uint64_t) ((arg1)->min_hash); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_ntmc64__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_out_hash_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - unsigned char arg1 ; - unsigned char arg2 ; - unsigned int arg3 ; - unsigned int arg4 ; - uint64_t *arg5 = 0 ; - uint64_t *arg6 = 0 ; - uint64_t *arg7 = (uint64_t *) 0 ; - bool *arg8 = 0 ; - unsigned char val1 ; - int ecode1 = 0 ; - unsigned char val2 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t val2 ; int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64" "', argument " "1"" of type '" "unsigned char""'"); - } - arg1 = static_cast< unsigned char >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_out_hash_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + } + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_out_hash_set" "', argument " "2"" of type '" "uint64_t""'"); } - arg4 = static_cast< unsigned int >(val4); - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); - } - arg5 = reinterpret_cast< uint64_t * >(argp5); - res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); - } - if (!argp6) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); - } - arg6 = reinterpret_cast< uint64_t * >(argp6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_bool, 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); - } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); - } - arg8 = reinterpret_cast< bool * >(argp8); - btllib::ntmc64(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7,*arg8); + arg2 = static_cast< uint64_t >(val2); + if (arg1) (arg1)->out_hash = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -27042,1033 +26740,405 @@ SWIGINTERN PyObject *_wrap_ntmc64__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyOb } -SWIGINTERN PyObject *_wrap_ntmc64(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[9] = { - 0 - }; +SWIGINTERN PyObject *_wrap_Minimizer_out_hash_get(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntmc64", 0, 8, argv))) SWIG_fail; - --argc; - if (argc == 4) { - PyObject *retobj = _wrap_ntmc64__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 5) { - PyObject *retobj = _wrap_ntmc64__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 6) { - PyObject *retobj = _wrap_ntmc64__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 7) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_4; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_4; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_4; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_4; - PyObject *retobj = _wrap_ntmc64__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } -check_4: - - if (argc == 7) { - PyObject *retobj = _wrap_ntmc64__SWIG_4(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 8) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_6; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_6; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_6; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_6; - PyObject *retobj = _wrap_ntmc64__SWIG_6(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "Minimizer_out_hash_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_out_hash_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } -check_6: + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = (uint64_t) ((arg1)->out_hash); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Minimizer_pos_set(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; - if (argc == 8) { - PyObject *retobj = _wrap_ntmc64__SWIG_5(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + (void)self; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_pos_set" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + if (arg1) (arg1)->pos = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmc64'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t *)\n" - " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *)\n" - " btllib::ntmc64(unsigned char,unsigned char,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *)\n" - " btllib::ntmc64(char const *,unsigned int,unsigned int,unsigned int &,uint64_t *)\n" - " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,unsigned int &,uint64_t *)\n" - " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,unsigned int &,uint64_t *,bool &)\n" - " btllib::ntmc64(unsigned char,unsigned char,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *,bool &)\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_mask_hash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_pos_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - uint64_t *arg1 = 0 ; - uint64_t *arg2 = 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - unsigned int arg5 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - PyObject *swig_obj[5] ; - uint64_t result; + size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "mask_hash", 5, 5, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_Python_UnpackTuple(args, "Minimizer_pos_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mask_hash" "', argument " "1"" of type '" "uint64_t &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mask_hash" "', argument " "1"" of type '" "uint64_t &""'"); - } - arg1 = reinterpret_cast< uint64_t * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_unsigned_long_long, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mask_hash" "', argument " "2"" of type '" "uint64_t &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mask_hash" "', argument " "2"" of type '" "uint64_t &""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mask_hash" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mask_hash" "', argument " "4"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mask_hash" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - result = (uint64_t)btllib::mask_hash(*arg1,*arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = ((arg1)->pos); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; return NULL; } -SWIGINTERN PyObject *_wrap_sub_hash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_forward_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - uint64_t arg1 ; - uint64_t arg2 ; - char *arg3 = (char *) 0 ; - std::vector< unsigned int,std::allocator< unsigned int > > *arg4 = 0 ; - std::vector< unsigned char,std::allocator< unsigned char > > *arg5 = 0 ; - unsigned int arg6 ; - unsigned int arg7 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t val1 ; - int ecode1 = 0 ; - uint64_t val2 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 = SWIG_OLDOBJ ; - void *argp5 = 0 ; - int res5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - unsigned int val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - PyObject *swig_obj[8] ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "sub_hash", 8, 8, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sub_hash" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_forward_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + } + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sub_hash" "', argument " "2"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_forward_set" "', argument " "2"" of type '" "bool""'"); } - arg2 = static_cast< uint64_t >(val2); - res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sub_hash" "', argument " "3"" of type '" "char const *""'"); + arg2 = static_cast< bool >(val2); + if (arg1) (arg1)->forward = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Minimizer_forward_get(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "Minimizer_forward_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_forward_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg3 = reinterpret_cast< char * >(buf3); + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = (bool) ((arg1)->forward); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Minimizer_seq_set(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; + + (void)self; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + } + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); { - std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0; - res4 = swig::asptr(swig_obj[3], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sub_hash" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sub_hash" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); } - arg4 = ptr; - } - res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sub_hash" "', argument " "5"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); - } - if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sub_hash" "', argument " "5"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); - } - arg5 = reinterpret_cast< std::vector< unsigned char,std::allocator< unsigned char > > * >(argp5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "sub_hash" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "sub_hash" "', argument " "7"" of type '" "unsigned int""'"); - } - arg7 = static_cast< unsigned int >(val7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "sub_hash" "', argument " "8"" of type '" "uint64_t *""'"); + arg2 = ptr; } - arg8 = reinterpret_cast< uint64_t * >(argp8); - btllib::sub_hash(arg1,arg2,(char const *)arg3,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg4,(std::vector< unsigned char,std::allocator< unsigned char > > const &)*arg5,arg6,arg7,arg8); + if (arg1) (arg1)->seq = *arg2; resultobj = SWIG_Py_Void(); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (SWIG_IsNewObj(res4)) delete arg4; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (SWIG_IsNewObj(res4)) delete arg4; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_seq_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; - unsigned int arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - uint64_t *arg7 = (uint64_t *) 0 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t *arg9 = (uint64_t *) 0 ; - uint64_t *arg10 = (uint64_t *) 0 ; - unsigned int *arg11 = 0 ; - uint64_t *arg12 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 = SWIG_OLDOBJ ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - void *argp10 = 0 ; - int res10 = 0 ; - void *argp11 = 0 ; - int res11 = 0 ; - void *argp12 = 0 ; - int res12 = 0 ; - bool result; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; (void)self; - if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "Minimizer_seq_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); - { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res3 = swig::asptr(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - arg3 = ptr; - } - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); - } - arg8 = reinterpret_cast< uint64_t * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); - } - arg9 = reinterpret_cast< uint64_t * >(argp9); - res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); - } - arg10 = reinterpret_cast< uint64_t * >(argp10); - res11 = SWIG_ConvertPtr(swig_obj[10], &argp11, SWIGTYPE_p_unsigned_int, 0 ); - if (!SWIG_IsOK(res11)) { - SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "unsigned int &""'"); - } - if (!argp11) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "11"" of type '" "unsigned int &""'"); - } - arg11 = reinterpret_cast< unsigned int * >(argp11); - res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res12)) { - SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64" "', argument " "12"" of type '" "uint64_t *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg12 = reinterpret_cast< uint64_t * >(argp12); - result = (bool)btllib::ntmsm64((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,*arg11,arg12); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = (std::string *) & ((arg1)->seq); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_qual_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; - unsigned int arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - uint64_t *arg7 = (uint64_t *) 0 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t *arg9 = (uint64_t *) 0 ; - uint64_t *arg10 = (uint64_t *) 0 ; - uint64_t *arg11 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 = SWIG_OLDOBJ ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - void *argp10 = 0 ; - int res10 = 0 ; - void *argp11 = 0 ; - int res11 = 0 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 11) || (nobjs > 11)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res3 = swig::asptr(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); } - arg3 = ptr; - } - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); - } - arg8 = reinterpret_cast< uint64_t * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); - } - arg9 = reinterpret_cast< uint64_t * >(argp9); - res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); - } - arg10 = reinterpret_cast< uint64_t * >(argp10); - res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res11)) { - SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "uint64_t *""'"); + arg2 = ptr; } - arg11 = reinterpret_cast< uint64_t * >(argp11); - btllib::ntmsm64((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + if (arg1) (arg1)->qual = *arg2; resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ntmsm64l__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_qual_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; - unsigned int arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - uint64_t *arg7 = (uint64_t *) 0 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t *arg9 = (uint64_t *) 0 ; - uint64_t *arg10 = (uint64_t *) 0 ; - uint64_t *arg11 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 = SWIG_OLDOBJ ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - void *argp10 = 0 ; - int res10 = 0 ; - void *argp11 = 0 ; - int res11 = 0 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; (void)self; - if ((nobjs < 11) || (nobjs > 11)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "Minimizer_qual_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64l" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64l" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); - { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res3 = swig::asptr(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - arg3 = ptr; - } - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64l" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64l" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64l" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64l" "', argument " "7"" of type '" "uint64_t *""'"); - } - arg7 = reinterpret_cast< uint64_t * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64l" "', argument " "8"" of type '" "uint64_t *""'"); - } - arg8 = reinterpret_cast< uint64_t * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64l" "', argument " "9"" of type '" "uint64_t *""'"); - } - arg9 = reinterpret_cast< uint64_t * >(argp9); - res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64l" "', argument " "10"" of type '" "uint64_t *""'"); - } - arg10 = reinterpret_cast< uint64_t * >(argp10); - res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res11)) { - SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64l" "', argument " "11"" of type '" "uint64_t *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg11 = reinterpret_cast< uint64_t * >(argp11); - btllib::ntmsm64l((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + result = (std::string *) & ((arg1)->qual); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_Minimizer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char arg2 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; - unsigned int arg5 ; - unsigned int arg6 ; - unsigned int arg7 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t *arg9 = (uint64_t *) 0 ; - uint64_t *arg10 = (uint64_t *) 0 ; - uint64_t *arg11 = (uint64_t *) 0 ; - uint64_t *arg12 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - char val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int res4 = SWIG_OLDOBJ ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - unsigned int val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - void *argp10 = 0 ; - int res10 = 0 ; - void *argp11 = 0 ; - int res11 = 0 ; - void *argp12 = 0 ; - int res12 = 0 ; + btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "delete_Minimizer", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmsm64" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); - { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res4 = swig::asptr(swig_obj[3], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmsm64" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); - } - arg4 = ptr; - } - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ntmsm64" "', argument " "7"" of type '" "unsigned int""'"); - } - arg7 = static_cast< unsigned int >(val7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); - } - arg8 = reinterpret_cast< uint64_t * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); - } - arg9 = reinterpret_cast< uint64_t * >(argp9); - res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); - } - arg10 = reinterpret_cast< uint64_t * >(argp10); - res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res11)) { - SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "uint64_t *""'"); - } - arg11 = reinterpret_cast< uint64_t * >(argp11); - res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res12)) { - SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64" "', argument " "12"" of type '" "uint64_t *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Minimizer" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); } - arg12 = reinterpret_cast< uint64_t * >(argp12); - btllib::ntmsm64((char const *)arg1,arg2,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg3,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_ntmsm64(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[13] = { - 0 - }; +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Minimizer) /* defines _wrap_delete_Minimizer_destructor_closure */ + +SWIGINTERN int _wrap_new_IndexlrRecord__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::Indexlr::Record *result = 0 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntmsm64", 0, 12, argv))) SWIG_fail; - --argc; - if (argc == 11) { - PyObject *retobj = _wrap_ntmsm64__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 12) { - int _v = 0; - { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - { - int res = swig::asptr(argv[2], (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > >**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_2; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[10], &vptr, SWIGTYPE_p_unsigned_int, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - PyObject *retobj = _wrap_ntmsm64__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } -check_2: - - if (argc == 12) { - PyObject *retobj = _wrap_ntmsm64__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::Indexlr::Record *)new btllib::Indexlr::Record(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmsm64'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::ntmsm64(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,unsigned int &,uint64_t *)\n" - " btllib::ntmsm64(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n" - " btllib::ntmsm64(char const *,char,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_ntmsm64l__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_IndexlrRecord__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char arg2 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; - unsigned int arg5 ; - unsigned int arg6 ; - unsigned int arg7 ; - uint64_t *arg8 = (uint64_t *) 0 ; - uint64_t *arg9 = (uint64_t *) 0 ; - uint64_t *arg10 = (uint64_t *) 0 ; - uint64_t *arg11 = (uint64_t *) 0 ; - uint64_t *arg12 = (uint64_t *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - char val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int res4 = SWIG_OLDOBJ ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - unsigned int val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - void *argp10 = 0 ; - int res10 = 0 ; - void *argp11 = 0 ; - int res11 = 0 ; - void *argp12 = 0 ; - int res12 = 0 ; + size_t arg1 ; + std::string arg2 ; + std::string arg3 ; + size_t arg4 ; + std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > arg5 ; + size_t val1 ; + int ecode1 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + btllib::Indexlr::Record *result = 0 ; (void)self; - if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64l" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmsm64l" "', argument " "2"" of type '" "char""'"); + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IndexlrRecord" "', argument " "1"" of type '" "size_t""'"); } - arg2 = static_cast< char >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); - } - arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); + arg1 = static_cast< size_t >(val1); { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res4 = swig::asptr(swig_obj[3], &ptr); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmsm64l" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "2"" of type '" "std::string""'"); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + arg2 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "3"" of type '" "std::string""'"); } - arg4 = ptr; + arg3 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64l" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64l" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ntmsm64l" "', argument " "7"" of type '" "unsigned int""'"); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_IndexlrRecord" "', argument " "4"" of type '" "size_t""'"); } - arg7 = static_cast< unsigned int >(val7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64l" "', argument " "8"" of type '" "uint64_t *""'"); - } - arg8 = reinterpret_cast< uint64_t * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64l" "', argument " "9"" of type '" "uint64_t *""'"); - } - arg9 = reinterpret_cast< uint64_t * >(argp9); - res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res10)) { - SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64l" "', argument " "10"" of type '" "uint64_t *""'"); - } - arg10 = reinterpret_cast< uint64_t * >(argp10); - res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res11)) { - SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64l" "', argument " "11"" of type '" "uint64_t *""'"); - } - arg11 = reinterpret_cast< uint64_t * >(argp11); - res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res12)) { - SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64l" "', argument " "12"" of type '" "uint64_t *""'"); + arg4 = static_cast< size_t >(val4); + { + std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *ptr = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)0; + int res = swig::asptr(swig_obj[4], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "5"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >""'"); + } + arg5 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg12 = reinterpret_cast< uint64_t * >(argp12); - btllib::ntmsm64l((char const *)arg1,arg2,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg3,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res4)) delete arg4; - return resultobj; + result = (btllib::Indexlr::Record *)new btllib::Indexlr::Record(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res4)) delete arg4; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_ntmsm64l(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_IndexlrRecord(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[13] = { + PyObject *argv[6] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ntmsm64l", 0, 12, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrRecord")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_IndexlrRecord", 0, 5, argv))) SWIG_fail; --argc; - if (argc == 11) { - PyObject *retobj = _wrap_ntmsm64l__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 0) { + int retval = _wrap_new_IndexlrRecord__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } - if (argc == 12) { - PyObject *retobj = _wrap_ntmsm64l__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 5) { + int retval = _wrap_new_IndexlrRecord__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmsm64l'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_IndexlrRecord'.\n" " Possible C/C++ prototypes are:\n" - " btllib::ntmsm64l(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n" - " btllib::ntmsm64l(char const *,char,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n"); - return 0; -} - - -SWIGINTERN int Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable COUNTING_BLOOM_FILTER_SIGNATURE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::COUNTING_BLOOM_FILTER_SIGNATURE); - return pyobj; -} - - -SWIGINTERN int Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable KMER_COUNTING_BLOOM_FILTER_SIGNATURE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::KMER_COUNTING_BLOOM_FILTER_SIGNATURE); - return pyobj; + " btllib::Indexlr::Record::Record()\n" + " btllib::Indexlr::Record::Record(size_t,std::string,std::string,size_t,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_Datatype_prefixes_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_num_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + size_t val2 ; + int ecode2 = 0 ; PyObject *swig_obj[2] ; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_prefixes_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); - } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_prefixes_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->prefixes = *arg2; + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndexlrRecord_num_set" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + if (arg1) (arg1)->num = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -28076,158 +27146,172 @@ SWIGINTERN PyObject *_wrap_Datatype_prefixes_set(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_Datatype_prefixes_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_num_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; + size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_prefixes_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_num_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_prefixes_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->prefixes); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = ((arg1)->num); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Datatype_suffixes_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject *swig_obj[2] ; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_suffixes_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_suffixes_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexlrRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->suffixes = *arg2; + if (arg1) (arg1)->id = *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_Datatype_suffixes_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_id_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_suffixes_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_id_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_suffixes_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->suffixes); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = (std::string *) & ((arg1)->id); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Datatype_cmds_check_existence_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + int res2 = SWIG_OLDOBJ ; PyObject *swig_obj[2] ; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_cmds_check_existence_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_cmds_check_existence_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->cmds_check_existence = *arg2; + if (arg1) (arg1)->barcode = *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_Datatype_cmds_check_existence_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_cmds_check_existence_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_barcode_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_cmds_check_existence_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->cmds_check_existence); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = (std::string *) & ((arg1)->barcode); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Datatype_read_cmds_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + size_t val2 ; + int ecode2 = 0 ; PyObject *swig_obj[2] ; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_read_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); - } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_read_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->read_cmds = *arg2; + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndexlrRecord_readlen_set" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + if (arg1) (arg1)->readlen = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -28235,32 +27319,32 @@ SWIGINTERN PyObject *_wrap_Datatype_read_cmds_set(PyObject *self, PyObject *args } -SWIGINTERN PyObject *_wrap_Datatype_read_cmds_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; + size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_read_cmds_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_readlen_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_read_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->read_cmds); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = ((arg1)->readlen); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Datatype_write_cmds_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *arg2 = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -28270,17 +27354,17 @@ SWIGINTERN PyObject *_wrap_Datatype_write_cmds_set(PyObject *self, PyObject *arg (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_write_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_write_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_minimizers_set" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *""'"); } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->write_cmds = *arg2; + arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > * >(argp2); + if (arg1) (arg1)->minimizers = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -28288,109 +27372,71 @@ SWIGINTERN PyObject *_wrap_Datatype_write_cmds_set(PyObject *self, PyObject *arg } -SWIGINTERN PyObject *_wrap_Datatype_write_cmds_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; + std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_write_cmds_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_minimizers_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_write_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->write_cmds); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)& ((arg1)->minimizers); + + resultobj = PyList_New(result->size()); + for (unsigned i = 0; i < result->size(); ++i) { + PyObject *item = SWIG_NewPointerObj(new btllib::Indexlr::Minimizer((*(result))[i]), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_OWN); + PyList_SetItem(resultobj, i, item); + } + return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Datatype_append_cmds_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord___nonzero__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject *swig_obj[2] ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord___nonzero__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_append_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); - } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_append_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord___nonzero__" "', argument " "1"" of type '" "btllib::Indexlr::Record const *""'"); } - arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); - if (arg1) (arg1)->append_cmds = *arg2; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + result = (bool)((btllib::Indexlr::Record const *)arg1)->operator bool(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - return NULL; + PyErr_Clear(); + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; } -SWIGINTERN PyObject *_wrap_Datatype_append_cmds_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_IndexlrRecord(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *result = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "Datatype_append_cmds_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_append_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); - } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->append_cmds); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN int _wrap_new_Datatype(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj = 0; - btllib::Datatype *result = 0 ; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Datatype")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_Datatype", 0, 0, 0)) SWIG_fail; - result = (btllib::Datatype *)new btllib::Datatype(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Datatype, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN PyObject *_wrap_delete_Datatype(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_Datatype", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrRecord", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Datatype" "', argument " "1"" of type '" "btllib::Datatype *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecord" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); } - arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -28399,187 +27445,51 @@ SWIGINTERN PyObject *_wrap_delete_Datatype(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Datatype) /* defines _wrap_delete_Datatype_destructor_closure */ - -SWIGINTERN int Swig_var_DATATYPES_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable DATATYPES is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_DATATYPES_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::DATATYPES), SWIGTYPE_p_btllib__Datatype, 0 ); - return pyobj; -} - - -SWIGINTERN int _wrap_new_DataSource(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - btllib::DataSource *result = 0 ; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_DataSource")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_DataSource", 1, 1, swig_obj)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSource" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSource" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (btllib::DataSource *)new btllib::DataSource((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSource, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; -} +SWIGPY_INQUIRY_CLOSURE(_wrap_IndexlrRecord___nonzero__) /* defines _wrap_IndexlrRecord___nonzero___inquiry_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrRecord) /* defines _wrap_delete_IndexlrRecord_destructor_closure */ -SWIGINTERN PyObject *_wrap_delete_DataSource(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecordIterator___next__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::DataSource *arg1 = (btllib::DataSource *) 0 ; + btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + btllib::Indexlr::Record result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_DataSource", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__DataSource, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecordIterator___next__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__RecordIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataSource" "', argument " "1"" of type '" "btllib::DataSource *""'"); - } - arg1 = reinterpret_cast< btllib::DataSource * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_DataSource) /* defines _wrap_delete_DataSource_destructor_closure */ - -SWIGINTERN int _wrap_new_DataSink__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - bool arg2 ; - int res1 = SWIG_OLDOBJ ; - bool val2 ; - int ecode2 = 0 ; - btllib::DataSink *result = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecordIterator___next__" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); } - ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DataSink" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - result = (btllib::DataSink *)new btllib::DataSink((std::string const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSink, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; -} - - -SWIGINTERN int _wrap_new_DataSink__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::DataSink *result = 0 ; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); + result = (arg1)->next(); + if (!bool(result)) { + PyErr_SetNone(PyExc_StopIteration); + SWIG_fail; } - arg1 = ptr; } - result = (btllib::DataSink *)new btllib::DataSink((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSink, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; -} - - -SWIGINTERN int _wrap_new_DataSink(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_DataSink")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_DataSink", 0, 2, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int retval = _wrap_new_DataSink__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 2) { - int retval = _wrap_new_DataSink__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - + resultobj = SWIG_NewPointerObj((new btllib::Indexlr::Record(result)), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DataSink'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::DataSink::DataSink(std::string const &,bool)\n" - " btllib::DataSink::DataSink(std::string const &)\n"); - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_delete_DataSink(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_IndexlrRecordIterator(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::DataSink *arg1 = (btllib::DataSink *) 0 ; + btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_DataSink", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__DataSink, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrRecordIterator", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__RecordIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataSink" "', argument " "1"" of type '" "btllib::DataSink *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecordIterator" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); } - arg1 = reinterpret_cast< btllib::DataSink * >(argp1); + arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -28588,7 +27498,9 @@ SWIGINTERN PyObject *_wrap_delete_DataSink(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_DataSink) /* defines _wrap_delete_DataSink_destructor_closure */ +SWIGPY_ITERNEXTFUNC_CLOSURE(_wrap_IndexlrRecordIterator___next__) /* defines _wrap_IndexlrRecordIterator___next___iternextfunc_closure */ + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrRecordIterator) /* defines _wrap_delete_IndexlrRecordIterator_destructor_closure */ SWIGINTERN int Swig_var_BIT_MASKS_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable BIT_MASKS is read-only."); @@ -31577,6 +30489,38 @@ SWIGINTERN PyObject *_wrap_delete_SeedBloomFilter(PyObject *self, PyObject *args SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedBloomFilter) /* defines _wrap_delete_SeedBloomFilter_destructor_closure */ +SWIGINTERN int Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable COUNTING_BLOOM_FILTER_SIGNATURE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_FromCharPtr(btllib::COUNTING_BLOOM_FILTER_SIGNATURE); + return pyobj; +} + + +SWIGINTERN int Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable KMER_COUNTING_BLOOM_FILTER_SIGNATURE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_FromCharPtr(btllib::KMER_COUNTING_BLOOM_FILTER_SIGNATURE); + return pyobj; +} + + SWIGINTERN int _wrap_new_SeqReader__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; @@ -32431,1613 +31375,2354 @@ SWIGPY_ITERNEXTFUNC_CLOSURE(_wrap_SeqReaderRecordIterator___next__) /* defines _ SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderRecordIterator) /* defines _wrap_delete_SeqReaderRecordIterator_destructor_closure */ -SWIGINTERN PyObject *_wrap_Indexlr_output_id(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_split(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + std::string *arg1 = 0 ; + std::string *arg2 = 0 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; + std::vector< std::string,std::allocator< std::string > > result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_id", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_id" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + if (!SWIG_Python_UnpackTuple(args, "split", 2, 2, swig_obj)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "split" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_id(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "split" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + result = btllib::split((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_bx(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_join(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; + std::string *arg2 = 0 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; + std::string result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_bx", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_bx" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + if (!SWIG_Python_UnpackTuple(args, "join", 2, 2, swig_obj)) SWIG_fail; + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "join" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "join" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_bx(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "join" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "join" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + result = btllib::join((std::vector< std::string,std::allocator< std::string > > const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_seq(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ltrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_seq", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_seq" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_seq(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); + } + arg1 = reinterpret_cast< std::string * >(argp1); + btllib::ltrim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_qual(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ltrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_qual", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_qual" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_qual(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ltrim" "', argument " "1"" of type '" "btllib::CString &""'"); + } + arg1 = reinterpret_cast< btllib::CString * >(argp1); + btllib::ltrim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_filter_in(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; +SWIGINTERN PyObject *_wrap_ltrim(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_in", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_in" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "ltrim", 0, 1, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_ltrim__SWIG_0(self, argc, argv); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->filter_in(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; +check_1: + + if (argc == 1) { + PyObject *retobj = _wrap_ltrim__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ltrim'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::ltrim(std::string &)\n" + " btllib::ltrim(btllib::CString &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Indexlr_filter_out(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_rtrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_out", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_out" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->filter_out(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); + } + arg1 = reinterpret_cast< std::string * >(argp1); + btllib::rtrim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_short_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_rtrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_short_mode", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_short_mode" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->short_mode(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rtrim" "', argument " "1"" of type '" "btllib::CString &""'"); + } + arg1 = reinterpret_cast< btllib::CString * >(argp1); + btllib::rtrim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_long_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_rtrim(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "rtrim", 0, 1, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_rtrim__SWIG_0(self, argc, argv); + } +check_1: + + if (argc == 1) { + PyObject *retobj = _wrap_rtrim__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'rtrim'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::rtrim(std::string &)\n" + " btllib::rtrim(btllib::CString &)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_trim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_long_mode", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_long_mode" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->long_mode(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); + } + arg1 = reinterpret_cast< std::string * >(argp1); + btllib::trim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_read(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_trim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::Indexlr::Record result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_read", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_read" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (arg1)->read(); - resultobj = SWIG_NewPointerObj((new btllib::Indexlr::Record(result)), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_OWN | 0 ); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "btllib::CString &""'"); + } + arg1 = reinterpret_cast< btllib::CString * >(argp1); + btllib::trim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - unsigned int arg5 ; - bool arg6 ; - btllib::BloomFilter *arg7 = 0 ; - btllib::BloomFilter *arg8 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - bool val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - btllib::Indexlr *result = 0 ; +SWIGINTERN PyObject *_wrap_trim(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "trim", 0, 1, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); - } - arg6 = static_cast< bool >(val6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); - } - if (!argp7) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); - } - arg7 = reinterpret_cast< btllib::BloomFilter * >(argp7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + if (!_v) goto check_1; + return _wrap_trim__SWIG_0(self, argc, argv); } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); +check_1: + + if (argc == 1) { + PyObject *retobj = _wrap_trim__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7,(btllib::BloomFilter const &)*arg8); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + fail: - return -1; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'trim'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::trim(std::string &)\n" + " btllib::trim(btllib::CString &)\n"); + return 0; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_startswith(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - unsigned int arg5 ; - bool arg6 ; - btllib::BloomFilter *arg7 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - bool val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - btllib::Indexlr *result = 0 ; + std::string arg2 ; + PyObject *swig_obj[2] ; + bool result; (void)self; - if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "startswith", 2, 2, swig_obj)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "startswith" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); - } - arg6 = static_cast< bool >(val6); - res7 = SWIG_ConvertPtr(swig_obj[6], &argp7, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); - } - if (!argp7) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "7"" of type '" "btllib::BloomFilter const &""'"); + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "startswith" "', argument " "2"" of type '" "std::string""'"); + } + arg2 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - arg7 = reinterpret_cast< btllib::BloomFilter * >(argp7); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + result = (bool)btllib::startswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_endswith(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - unsigned int arg5 ; - bool arg6 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - bool val6 ; - int ecode6 = 0 ; - btllib::Indexlr *result = 0 ; + std::string arg2 ; + PyObject *swig_obj[2] ; + bool result; (void)self; - if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "endswith", 2, 2, swig_obj)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "endswith" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "bool""'"); - } - arg6 = static_cast< bool >(val6); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "endswith" "', argument " "2"" of type '" "std::string""'"); + } + arg2 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + result = (bool)btllib::endswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_get_basename(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - unsigned int arg5 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - btllib::Indexlr *result = 0 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::string result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_basename" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_basename" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + result = btllib::get_basename((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::Indexlr *result = 0 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::string result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_dirname" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_dirname" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + result = btllib::get_dirname((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; +} + + +SWIGINTERN int _wrap_new_Barrier(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + unsigned int arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject *swig_obj[1] ; + btllib::Barrier *result = 0 ; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Barrier")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_Barrier", 1, 1, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Barrier" "', argument " "1"" of type '" "unsigned int""'"); } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + arg1 = static_cast< unsigned int >(val1); + result = (btllib::Barrier *)new btllib::Barrier(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Barrier, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Barrier_wait(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t val2 ; + btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "Barrier_wait", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Barrier, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Barrier_wait" "', argument " "1"" of type '" "btllib::Barrier *""'"); + } + arg1 = reinterpret_cast< btllib::Barrier * >(argp1); + (arg1)->wait(); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_Barrier", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Barrier, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Barrier" "', argument " "1"" of type '" "btllib::Barrier *""'"); + } + arg1 = reinterpret_cast< btllib::Barrier * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Barrier) /* defines _wrap_delete_Barrier_destructor_closure */ + +SWIGINTERN int _wrap_new_SeqWriter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + btllib::SeqWriter::Format arg2 ; + bool arg3 ; + int res1 = SWIG_OLDOBJ ; + int val2 ; int ecode2 = 0 ; - size_t val3 ; + bool val3 ; int ecode3 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::SeqWriter *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqWriter" "', argument " "2"" of type '" "btllib::SeqWriter::Format""'"); } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + arg2 = static_cast< btllib::SeqWriter::Format >(val2); + ecode3 = SWIG_AsVal_bool(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeqWriter" "', argument " "3"" of type '" "bool""'"); } - arg3 = static_cast< size_t >(val3); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); + arg3 = static_cast< bool >(val3); + result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return -1; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_SeqWriter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - bool arg7 ; - btllib::BloomFilter *arg8 = 0 ; - btllib::BloomFilter *arg9 = 0 ; - size_t val2 ; + std::string *arg1 = 0 ; + btllib::SeqWriter::Format arg2 ; + int res1 = SWIG_OLDOBJ ; + int val2 ; int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - bool val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - void *argp9 = 0 ; - int res9 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::SeqWriter *result = 0 ; (void)self; - if ((nobjs < 9) || (nobjs > 9)) SWIG_fail; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqWriter" "', argument " "2"" of type '" "btllib::SeqWriter::Format""'"); } - arg7 = static_cast< bool >(val7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + arg2 = static_cast< btllib::SeqWriter::Format >(val2); + result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; +} + + +SWIGINTERN int _wrap_new_SeqWriter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::SeqWriter *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + result = (btllib::SeqWriter *)new btllib::SeqWriter((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; +} + + +SWIGINTERN int _wrap_new_SeqWriter(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqWriter")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeqWriter", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int retval = _wrap_new_SeqWriter__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); - res9 = SWIG_ConvertPtr(swig_obj[8], &argp9, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); + if (argc == 2) { + int retval = _wrap_new_SeqWriter__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - if (!argp9) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); + if (argc == 3) { + int retval = _wrap_new_SeqWriter__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - arg9 = reinterpret_cast< btllib::BloomFilter * >(argp9); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7,(btllib::BloomFilter const &)*arg8,(btllib::BloomFilter const &)*arg9); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeqWriter'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeqWriter::SeqWriter(std::string const &,btllib::SeqWriter::Format,bool)\n" + " btllib::SeqWriter::SeqWriter(std::string const &,btllib::SeqWriter::Format)\n" + " btllib::SeqWriter::SeqWriter(std::string const &)\n"); return -1; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_7(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqWriter_close(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - bool arg7 ; - btllib::BloomFilter *arg8 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - bool val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "SeqWriter_close", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_close" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + (arg1)->close(); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + std::string *arg2 = 0 ; + std::string *arg3 = 0 ; + std::string *arg4 = 0 ; + std::string *arg5 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + int res3 = SWIG_OLDOBJ ; + int res4 = SWIG_OLDOBJ ; + int res5 = SWIG_OLDOBJ ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_write" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + { + std::string *ptr = (std::string *)0; + res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); + } + arg3 = ptr; + } + { + std::string *ptr = (std::string *)0; + res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); + } + arg4 = ptr; + } + { + std::string *ptr = (std::string *)0; + res5 = SWIG_AsPtr_std_string(swig_obj[4], &ptr); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SeqWriter_write" "', argument " "5"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "5"" of type '" "std::string const &""'"); + } + arg5 = ptr; + } + (arg1)->write((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res4)) delete arg4; + if (SWIG_IsNewObj(res5)) delete arg5; + return resultobj; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res4)) delete arg4; + if (SWIG_IsNewObj(res5)) delete arg5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + std::string *arg2 = 0 ; + std::string *arg3 = 0 ; + std::string *arg4 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + int res3 = SWIG_OLDOBJ ; + int res4 = SWIG_OLDOBJ ; + + (void)self; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_write" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + { + std::string *ptr = (std::string *)0; + res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); + } + arg3 = ptr; + } + { + std::string *ptr = (std::string *)0; + res4 = SWIG_AsPtr_std_string(swig_obj[3], &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); + } + arg4 = ptr; + } + (arg1)->write((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res4)) delete arg4; + return resultobj; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res4)) delete arg4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeqWriter_write(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeqWriter_write", 0, 5, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 4) { + PyObject *retobj = _wrap_SeqWriter_write__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 5) { + PyObject *retobj = _wrap_SeqWriter_write__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeqWriter_write'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeqWriter::write(std::string const &,std::string const &,std::string const &,std::string const &)\n" + " btllib::SeqWriter::write(std::string const &,std::string const &,std::string const &)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SeqWriter___enter__(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::SeqWriter *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeqWriter___enter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter___enter__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + result = (btllib::SeqWriter *)btllib_SeqWriter___enter__(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeqWriter___exit__(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + PyObject *arg3 = (PyObject *) 0 ; + PyObject *arg4 = (PyObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[4] ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeqWriter___exit__", 3, 3, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter___exit__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + arg2 = swig_obj[0]; + arg3 = swig_obj[1]; + arg4 = swig_obj[2]; + btllib_SeqWriter___exit__(arg1,arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SeqWriter(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_SeqWriter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqWriter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqWriter" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); + } + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqWriter) /* defines _wrap_delete_SeqWriter_destructor_closure */ + +SWIGINTERN int Swig_var_COMPLEMENTS_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable COMPLEMENTS is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_COMPLEMENTS_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + { + size_t size = SWIG_strnlen(btllib::COMPLEMENTS, 256); + + + + pyobj = SWIG_FromCharPtrAndSize(btllib::COMPLEMENTS, size); + } + return pyobj; +} + + +SWIGINTERN int Swig_var_CAPITALS_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable CAPITALS is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_CAPITALS_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + { + size_t size = SWIG_strnlen(btllib::CAPITALS, 256); + + + + pyobj = SWIG_FromCharPtrAndSize(btllib::CAPITALS, size); + } + return pyobj; +} + + +SWIGINTERN PyObject *_wrap_reverse_complement(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + (void)self; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "reverse_complement" "', argument " "1"" of type '" "std::string &""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "reverse_complement" "', argument " "1"" of type '" "std::string &""'"); + } + arg1 = reinterpret_cast< std::string * >(argp1); + btllib::reverse_complement(*arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_get_reverse_complement(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::string result; + + (void)self; + if (!args) SWIG_fail; + swig_obj[0] = args; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_reverse_complement" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_reverse_complement" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; + } + result = btllib::get_reverse_complement((std::string const &)*arg1); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; +} + + +SWIGINTERN int Swig_var_CP_OFF_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable CP_OFF is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_CP_OFF_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(btllib::CP_OFF)); + return pyobj; +} + + +SWIGINTERN int Swig_var_MULTISHIFT_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable MULTISHIFT is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_MULTISHIFT_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_int(static_cast< int >(btllib::MULTISHIFT)); + return pyobj; +} + + +SWIGINTERN int Swig_var_MULTISEED_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable MULTISEED is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_MULTISEED_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::MULTISEED)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_A_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_A is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_A_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_A)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_C_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_C is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_C_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_C)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_G_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_G is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_G_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_G)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_T_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_T is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_T_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_T)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_N_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_N is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_N_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_N)); + return pyobj; +} + + +SWIGINTERN int Swig_var_ASCII_SIZE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable ASCII_SIZE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_ASCII_SIZE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_int(static_cast< int >(btllib::ASCII_SIZE)); + return pyobj; +} + + +SWIGINTERN int Swig_var_SEED_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_SEED_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::SEED_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_A33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable A33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_A33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_A31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable A31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_A31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_C33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable C33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_C33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::C33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_C31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable C31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_C31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::C31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_G33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable G33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_G33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::G33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_G31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable G31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_G31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::G31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_T33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable T33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_T33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::T33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_T31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable T31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_T31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::T31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_N33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable N33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_N33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::N33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_N31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable N31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_N31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::N31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_MS_TAB_33R_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable MS_TAB_33R is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_MS_TAB_33R_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::MS_TAB_33R), SWIGTYPE_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_MS_TAB_31L_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable MS_TAB_31L is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_MS_TAB_31L_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::MS_TAB_31L), SWIGTYPE_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_CONVERT_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable CONVERT_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_CONVERT_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::CONVERT_TAB), SWIGTYPE_p_unsigned_char, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_RC_CONVERT_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable RC_CONVERT_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_RC_CONVERT_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::RC_CONVERT_TAB), SWIGTYPE_p_unsigned_char, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_DIMER_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable DIMER_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_DIMER_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::DIMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_TRIMER_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable TRIMER_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_TRIMER_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::TRIMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_TETRAMER_TAB_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable TETRAMER_TAB is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_TETRAMER_TAB_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::TETRAMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN PyObject *_wrap_srol__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + uint64_t arg1 ; + uint64_t val1 ; + int ecode1 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "srol" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + result = (uint64_t)btllib::srol(arg1); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_srol__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + uint64_t arg1 ; + unsigned int arg2 ; + uint64_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "srol" "', argument " "1"" of type '" "uint64_t""'"); } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "srol" "', argument " "2"" of type '" "unsigned int""'"); } - arg7 = static_cast< bool >(val7); - res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_btllib__BloomFilter, 0 | 0); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)btllib::srol(arg1,arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_srol(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "srol", 0, 2, argv))) SWIG_fail; + --argc; + if (argc == 1) { + PyObject *retobj = _wrap_srol__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + if (argc == 2) { + PyObject *retobj = _wrap_srol__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg8 = reinterpret_cast< btllib::BloomFilter * >(argp8); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7,(btllib::BloomFilter const &)*arg8); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + fail: - return -1; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'srol'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::srol(uint64_t const)\n" + " btllib::srol(uint64_t const,unsigned int const)\n"); + return 0; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_sror(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - bool arg7 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - bool val7 ; - int ecode7 = 0 ; - btllib::Indexlr *result = 0 ; + uint64_t arg1 ; + uint64_t val1 ; + int ecode1 = 0 ; + PyObject *swig_obj[1] ; + uint64_t result; (void)self; - if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); - } - arg6 = static_cast< unsigned int >(val6); - ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Indexlr" "', argument " "7"" of type '" "bool""'"); + if (!args) SWIG_fail; + swig_obj[0] = args; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sror" "', argument " "1"" of type '" "uint64_t""'"); } - arg7 = static_cast< bool >(val7); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg1 = static_cast< uint64_t >(val1); + result = (uint64_t)btllib::sror(arg1); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_9(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntf64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; - size_t val2 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - unsigned int val6 ; - int ecode6 = 0 ; - btllib::Indexlr *result = 0 ; + uint64_t result; (void)self; - if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntf64" "', argument " "1"" of type '" "char const *""'"); } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Indexlr" "', argument " "6"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64" "', argument " "2"" of type '" "unsigned int""'"); } - arg6 = static_cast< unsigned int >(val6); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)btllib::ntf64((char const *)arg1,arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: - return -1; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_10(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntr64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - size_t val2 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - btllib::Indexlr *result = 0 ; + uint64_t result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntr64" "', argument " "1"" of type '" "char const *""'"); } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Indexlr" "', argument " "5"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64" "', argument " "2"" of type '" "unsigned int""'"); } - arg5 = static_cast< unsigned int >(val5); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)btllib::ntr64((char const *)arg1,arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; fail: - return -1; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_11(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntf64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - size_t val2 ; + uint64_t arg1 ; + unsigned int arg2 ; + unsigned char arg3 ; + unsigned char arg4 ; + uint64_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; + unsigned char val3 ; int ecode3 = 0 ; - size_t val4 ; + unsigned char val4 ; int ecode4 = 0 ; - btllib::Indexlr *result = 0 ; + uint64_t result; (void)self; if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Indexlr" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntf64" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Indexlr" "', argument " "2"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< size_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntf64" "', argument " "3"" of type '" "unsigned char""'"); } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + arg3 = static_cast< unsigned char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntf64" "', argument " "4"" of type '" "unsigned char""'"); } - arg4 = static_cast< size_t >(val4); - result = (btllib::Indexlr *)new btllib::Indexlr(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg4 = static_cast< unsigned char >(val4); + result = (uint64_t)btllib::ntf64(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_ntf64(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[10] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Indexlr")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_Indexlr", 0, 9, argv))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "ntf64", 0, 4, argv))) SWIG_fail; --argc; - if (argc == 3) { - int retval = _wrap_new_Indexlr__SWIG_5(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 2) { + PyObject *retobj = _wrap_ntf64__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 4) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_2; - return _wrap_new_Indexlr__SWIG_4(self, argc, argv); - } -check_2: - - if (argc == 4) { - int retval = _wrap_new_Indexlr__SWIG_11(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 5) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_4; - int retval = _wrap_new_Indexlr__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_4: - - if (argc == 5) { - int retval = _wrap_new_Indexlr__SWIG_10(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 6) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_6; - { - { - int res = SWIG_AsVal_bool(argv[5], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_6; - return _wrap_new_Indexlr__SWIG_2(self, argc, argv); - } -check_6: - - if (argc == 6) { - int retval = _wrap_new_Indexlr__SWIG_9(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 7) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_8; - { - { - int res = SWIG_AsVal_bool(argv[5], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_8; - { - int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_8; - return _wrap_new_Indexlr__SWIG_1(self, argc, argv); - } -check_8: - - if (argc == 7) { - int retval = _wrap_new_Indexlr__SWIG_8(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 8) { - int _v = 0; - { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_10; - { - { - int res = SWIG_AsVal_bool(argv[5], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_10; - { - int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_10; - int retval = _wrap_new_Indexlr__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_10: - - if (argc == 8) { - int retval = _wrap_new_Indexlr__SWIG_7(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 9) { - int retval = _wrap_new_Indexlr__SWIG_6(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_ntf64__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Indexlr'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,unsigned int)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t,unsigned int)\n" - " btllib::Indexlr::Indexlr(std::string,size_t,size_t,size_t)\n"); - return -1; -} - - -SWIGINTERN PyObject *_wrap_delete_Indexlr(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_Indexlr", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Indexlr" "', argument " "1"" of type '" "btllib::Indexlr *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntf64'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::ntf64(char const *,unsigned int)\n" + " btllib::ntf64(uint64_t,unsigned int,unsigned char,unsigned char)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Indexlr_close(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntr64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + uint64_t arg1 ; + unsigned int arg2 ; + unsigned char arg3 ; + unsigned char arg4 ; + uint64_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr_close", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_close" "', argument " "1"" of type '" "btllib::Indexlr *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - (arg1)->close(); - resultobj = SWIG_Py_Void(); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntr64" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntr64" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntr64" "', argument " "4"" of type '" "unsigned char""'"); + } + arg4 = static_cast< unsigned char >(val4); + result = (uint64_t)btllib::ntr64(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr___iter__(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - SwigValueWrapper< btllib::Indexlr::RecordIterator > result; +SWIGINTERN PyObject *_wrap_ntr64(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[5] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr___iter__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___iter__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "ntr64", 0, 4, argv))) SWIG_fail; + --argc; + if (argc == 2) { + PyObject *retobj = _wrap_ntr64__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (arg1)->begin(); - resultobj = SWIG_NewPointerObj((new btllib::Indexlr::RecordIterator(result)), SWIGTYPE_p_btllib__Indexlr__RecordIterator, SWIG_POINTER_OWN | 0 ); - return resultobj; + if (argc == 4) { + PyObject *retobj = _wrap_ntr64__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntr64'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::ntr64(char const *,unsigned int)\n" + " btllib::ntr64(uint64_t,unsigned int,unsigned char,unsigned char)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Indexlr___enter__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::Indexlr *result = 0 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr___enter__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___enter__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (btllib::Indexlr *)btllib_Indexlr___enter__(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)btllib::ntc64((char const *)arg1,arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr___exit__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject *swig_obj[4] ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + uint64_t *arg3 = 0 ; + uint64_t *arg4 = 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Indexlr___exit__", 3, 3, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr, 0 | 0 ); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___exit__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - arg2 = swig_obj[0]; - arg3 = swig_obj[1]; - arg4 = swig_obj[2]; - btllib_Indexlr___exit__(arg1,arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + arg3 = reinterpret_cast< uint64_t * >(argp3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + result = (uint64_t)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Indexlr) /* defines _wrap_delete_Indexlr_destructor_closure */ - -SWIGPY_GETITERFUNC_CLOSURE(_wrap_Indexlr___iter__) /* defines _wrap_Indexlr___iter___getiterfunc_closure */ - -SWIGINTERN int _wrap_new_IndexlrFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj = 0; - btllib::Indexlr::Flag *result = 0 ; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrFlag")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_IndexlrFlag", 0, 0, 0)) SWIG_fail; - result = (btllib::Indexlr::Flag *)new btllib::Indexlr::Flag(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Flag, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN PyObject *_wrap_delete_IndexlrFlag(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Flag *arg1 = (btllib::Indexlr::Flag *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + unsigned char arg1 ; + unsigned char arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + unsigned char val1 ; + int ecode1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrFlag", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Flag, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrFlag" "', argument " "1"" of type '" "btllib::Indexlr::Flag *""'"); + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntc64" "', argument " "1"" of type '" "unsigned char""'"); + } + arg1 = static_cast< unsigned char >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Flag * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + result = (uint64_t)btllib::ntc64(arg1,arg2,arg3,*arg4,*arg5); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrFlag) /* defines _wrap_delete_IndexlrFlag_destructor_closure */ - -SWIGINTERN int _wrap_new_Minimizer__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_Minimizer__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntf64l(PyObject *self, PyObject *args) { PyObject *resultobj = 0; uint64_t arg1 ; - uint64_t arg2 ; - size_t arg3 ; - bool arg4 ; - std::string arg5 ; + unsigned int arg2 ; + unsigned char arg3 ; + unsigned char arg4 ; uint64_t val1 ; int ecode1 = 0 ; - uint64_t val2 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; + unsigned char val3 ; int ecode3 = 0 ; - bool val4 ; + unsigned char val4 ; int ecode4 = 0 ; - btllib::Indexlr::Minimizer *result = 0 ; + PyObject *swig_obj[4] ; + uint64_t result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "ntf64l", 4, 4, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Minimizer" "', argument " "1"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntf64l" "', argument " "1"" of type '" "uint64_t""'"); } arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntf64l" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< uint64_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Minimizer" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntf64l" "', argument " "3"" of type '" "unsigned char""'"); } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4); + arg3 = static_cast< unsigned char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Minimizer" "', argument " "4"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntf64l" "', argument " "4"" of type '" "unsigned char""'"); } - arg4 = static_cast< bool >(val4); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "5"" of type '" "std::string""'"); - } - arg5 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg4 = static_cast< unsigned char >(val4); + result = (uint64_t)btllib::ntf64l(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Minimizer__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntr64l(PyObject *self, PyObject *args) { PyObject *resultobj = 0; uint64_t arg1 ; - uint64_t arg2 ; - size_t arg3 ; - bool arg4 ; - std::string arg5 ; - std::string arg6 ; + unsigned int arg2 ; + unsigned char arg3 ; + unsigned char arg4 ; uint64_t val1 ; int ecode1 = 0 ; - uint64_t val2 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; + unsigned char val3 ; int ecode3 = 0 ; - bool val4 ; + unsigned char val4 ; int ecode4 = 0 ; - btllib::Indexlr::Minimizer *result = 0 ; + PyObject *swig_obj[4] ; + uint64_t result; (void)self; - if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "ntr64l", 4, 4, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Minimizer" "', argument " "1"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntr64l" "', argument " "1"" of type '" "uint64_t""'"); } arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntr64l" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< uint64_t >(val2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Minimizer" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntr64l" "', argument " "3"" of type '" "unsigned char""'"); } - arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_bool(swig_obj[3], &val4); + arg3 = static_cast< unsigned char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Minimizer" "', argument " "4"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntr64l" "', argument " "4"" of type '" "unsigned char""'"); } - arg4 = static_cast< bool >(val4); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "5"" of type '" "std::string""'"); - } - arg5 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[5], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_Minimizer" "', argument " "6"" of type '" "std::string""'"); - } - arg6 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (btllib::Indexlr::Minimizer *)new btllib::Indexlr::Minimizer(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_Minimizer(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[7] = { - 0 - }; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Minimizer")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_Minimizer", 0, 6, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_Minimizer__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 5) { - int retval = _wrap_new_Minimizer__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 6) { - int retval = _wrap_new_Minimizer__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - + arg4 = static_cast< unsigned char >(val4); + result = (uint64_t)btllib::ntr64l(arg1,arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Minimizer'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::Indexlr::Minimizer::Minimizer()\n" - " btllib::Indexlr::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string)\n" - " btllib::Indexlr::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string,std::string)\n"); - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_min_hash_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64l(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t val2 ; + unsigned char arg1 ; + unsigned char arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + unsigned char val1 ; + int ecode1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + PyObject *swig_obj[5] ; + uint64_t result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val2); + if (!SWIG_Python_UnpackTuple(args, "ntc64l", 5, 5, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntc64l" "', argument " "1"" of type '" "unsigned char""'"); + } + arg1 = static_cast< unsigned char >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_min_hash_set" "', argument " "2"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64l" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->min_hash = arg2; - resultobj = SWIG_Py_Void(); + arg2 = static_cast< unsigned char >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntc64l" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64l" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64l" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64l" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64l" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + result = (uint64_t)btllib::ntc64l(arg1,arg2,arg3,*arg4,*arg5); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_min_hash_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_nte64(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; + uint64_t arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = (uint64_t *) 0 ; + uint64_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject *swig_obj[4] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_min_hash_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!SWIG_Python_UnpackTuple(args, "nte64", 4, 4, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "nte64" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "nte64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "nte64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "nte64" "', argument " "4"" of type '" "uint64_t *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (uint64_t) ((arg1)->min_hash); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg4 = reinterpret_cast< uint64_t * >(argp4); + btllib::nte64(arg1,arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_out_hash_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - uint64_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t val2 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_out_hash_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val2); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_out_hash_set" "', argument " "2"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->out_hash = arg2; + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t *""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + btllib::ntmc64((char const *)arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_out_hash_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + uint64_t *arg6 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_out_hash_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_out_hash_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (uint64_t) ((arg1)->out_hash); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t *""'"); + } + arg6 = reinterpret_cast< uint64_t * >(argp6); + btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,arg6); + resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_pos_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; + unsigned char arg1 ; + unsigned char arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + uint64_t *arg5 = 0 ; + uint64_t *arg6 = 0 ; + uint64_t *arg7 = (uint64_t *) 0 ; + unsigned char val1 ; + int ecode1 = 0 ; + unsigned char val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64" "', argument " "1"" of type '" "unsigned char""'"); + } + arg1 = static_cast< unsigned char >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_pos_set" "', argument " "2"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned char""'"); } - arg2 = static_cast< size_t >(val2); - if (arg1) (arg1)->pos = arg2; + arg2 = static_cast< unsigned char >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); + } + arg6 = reinterpret_cast< uint64_t * >(argp6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + btllib::ntmc64(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -34045,959 +33730,1637 @@ SWIGINTERN PyObject *_wrap_Minimizer_pos_set(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_Minimizer_pos_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64l(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; + unsigned char arg1 ; + unsigned char arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + uint64_t *arg5 = 0 ; + uint64_t *arg6 = 0 ; + uint64_t *arg7 = (uint64_t *) 0 ; + unsigned char val1 ; + int ecode1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + PyObject *swig_obj[7] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_pos_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!SWIG_Python_UnpackTuple(args, "ntmc64l", 7, 7, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64l" "', argument " "1"" of type '" "unsigned char""'"); + } + arg1 = static_cast< unsigned char >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64l" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64l" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64l" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64l" "', argument " "5"" of type '" "uint64_t &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = ((arg1)->pos); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64l" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64l" "', argument " "6"" of type '" "uint64_t &""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64l" "', argument " "6"" of type '" "uint64_t &""'"); + } + arg6 = reinterpret_cast< uint64_t * >(argp6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64l" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + btllib::ntmc64l(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_forward_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + uint64_t *arg3 = 0 ; + unsigned int *arg4 = 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_forward_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_forward_set" "', argument " "2"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); } - arg2 = static_cast< bool >(val2); - if (arg1) (arg1)->forward = arg2; - resultobj = SWIG_Py_Void(); + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + arg3 = reinterpret_cast< uint64_t * >(argp3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "unsigned int &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "unsigned int &""'"); + } + arg4 = reinterpret_cast< unsigned int * >(argp4); + result = (bool)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_forward_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int *arg4 = 0 ; + uint64_t *arg5 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_forward_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_forward_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (bool) ((arg1)->forward); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int &""'"); + } + arg4 = reinterpret_cast< unsigned int * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t *""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_seq_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntc64__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + uint64_t *arg3 = 0 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + unsigned int *arg6 = 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "3"" of type '" "uint64_t &""'"); + } + arg3 = reinterpret_cast< uint64_t * >(argp3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntc64" "', argument " "6"" of type '" "unsigned int &""'"); } - if (arg1) (arg1)->seq = *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_Minimizer_seq_get(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_seq_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntc64" "', argument " "6"" of type '" "unsigned int &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (std::string *) & ((arg1)->seq); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg6 = reinterpret_cast< unsigned int * >(argp6); + result = (bool)btllib::ntc64((char const *)arg1,arg2,*arg3,*arg4,*arg5,*arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_qual_set(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; +SWIGINTERN PyObject *_wrap_ntc64(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[7] = { + 0 + }; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "ntc64", 0, 6, argv))) SWIG_fail; + --argc; + if (argc == 2) { + PyObject *retobj = _wrap_ntc64__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + if (argc == 4) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); } - arg2 = ptr; + if (!_v) goto check_2; + return _wrap_ntc64__SWIG_1(self, argc, argv); } - if (arg1) (arg1)->qual = *arg2; - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; +check_2: + + if (argc == 4) { + PyObject *retobj = _wrap_ntc64__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 5) { + PyObject *retobj = _wrap_ntc64__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 6) { + PyObject *retobj = _wrap_ntc64__SWIG_4(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntc64'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::ntc64(char const *,unsigned int)\n" + " btllib::ntc64(char const *,unsigned int,uint64_t &,uint64_t &)\n" + " btllib::ntc64(unsigned char,unsigned char,unsigned int,uint64_t &,uint64_t &)\n" + " btllib::ntc64(char const *,unsigned int,uint64_t &,unsigned int &)\n" + " btllib::ntc64(char const *,unsigned int,uint64_t &,uint64_t &,uint64_t &,unsigned int &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Minimizer_qual_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + unsigned int *arg6 = 0 ; + uint64_t *arg7 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Minimizer_qual_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); + if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (std::string *) & ((arg1)->qual); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); + } + arg6 = reinterpret_cast< unsigned int * >(argp6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,*arg6,arg7); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_Minimizer(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + uint64_t *arg4 = 0 ; + uint64_t *arg5 = 0 ; + unsigned int *arg6 = 0 ; + uint64_t *arg7 = (uint64_t *) 0 ; + bool *arg8 = 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_Minimizer", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_DISOWN | 0 ); + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Minimizer" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmc64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "4"" of type '" "uint64_t &""'"); + } + arg4 = reinterpret_cast< uint64_t * >(argp4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "unsigned int &""'"); + } + arg6 = reinterpret_cast< unsigned int * >(argp6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_bool, 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); + } + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); + } + arg8 = reinterpret_cast< bool * >(argp8); + result = (bool)btllib::ntmc64((char const *)arg1,arg2,arg3,*arg4,*arg5,*arg6,arg7,*arg8); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Minimizer) /* defines _wrap_delete_Minimizer_destructor_closure */ - -SWIGINTERN int _wrap_new_IndexlrRecord__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::Indexlr::Record *)new btllib::Indexlr::Record(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_IndexlrRecord__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntmc64__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - size_t arg1 ; - std::string arg2 ; - std::string arg3 ; - size_t arg4 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > arg5 ; - size_t val1 ; + unsigned char arg1 ; + unsigned char arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + uint64_t *arg5 = 0 ; + uint64_t *arg6 = 0 ; + uint64_t *arg7 = (uint64_t *) 0 ; + bool *arg8 = 0 ; + unsigned char val1 ; int ecode1 = 0 ; - size_t val4 ; + unsigned char val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; int ecode4 = 0 ; - btllib::Indexlr::Record *result = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + void *argp6 = 0 ; + int res6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_char(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IndexlrRecord" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ntmc64" "', argument " "1"" of type '" "unsigned char""'"); } - arg1 = static_cast< size_t >(val1); - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "2"" of type '" "std::string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "3"" of type '" "std::string""'"); - } - arg3 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); + arg1 = static_cast< unsigned char >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmc64" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ntmc64" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_IndexlrRecord" "', argument " "4"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmc64" "', argument " "4"" of type '" "unsigned int""'"); } - arg4 = static_cast< size_t >(val4); - { - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *ptr = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)0; - int res = swig::asptr(swig_obj[4], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "5"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >""'"); - } - arg5 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + arg4 = static_cast< unsigned int >(val4); + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); } - result = (btllib::Indexlr::Record *)new btllib::Indexlr::Record(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "5"" of type '" "uint64_t &""'"); + } + arg5 = reinterpret_cast< uint64_t * >(argp5); + res6 = SWIG_ConvertPtr(swig_obj[5], &argp6, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res6)) { + SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); + } + if (!argp6) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "6"" of type '" "uint64_t &""'"); + } + arg6 = reinterpret_cast< uint64_t * >(argp6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmc64" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_bool, 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); + } + if (!argp8) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmc64" "', argument " "8"" of type '" "bool &""'"); + } + arg8 = reinterpret_cast< bool * >(argp8); + btllib::ntmc64(arg1,arg2,arg3,arg4,*arg5,*arg6,arg7,*arg8); + resultobj = SWIG_Py_Void(); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_IndexlrRecord(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_ntmc64(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[6] = { + PyObject *argv[9] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrRecord")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_IndexlrRecord", 0, 5, argv))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "ntmc64", 0, 8, argv))) SWIG_fail; --argc; - if (argc == 0) { - int retval = _wrap_new_IndexlrRecord__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 4) { + PyObject *retobj = _wrap_ntmc64__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 5) { + PyObject *retobj = _wrap_ntmc64__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 6) { + PyObject *retobj = _wrap_ntmc64__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 7) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_4; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_4; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_4; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + PyObject *retobj = _wrap_ntmc64__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } +check_4: + + if (argc == 7) { + PyObject *retobj = _wrap_ntmc64__SWIG_4(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 8) { + int _v = 0; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[0], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_6; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_6; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_6; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_6; + PyObject *retobj = _wrap_ntmc64__SWIG_6(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 5) { - int retval = _wrap_new_IndexlrRecord__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; +check_6: + + if (argc == 8) { + PyObject *retobj = _wrap_ntmc64__SWIG_5(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_IndexlrRecord'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmc64'.\n" " Possible C/C++ prototypes are:\n" - " btllib::Indexlr::Record::Record()\n" - " btllib::Indexlr::Record::Record(size_t,std::string,std::string,size_t,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >)\n"); - return -1; + " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t *)\n" + " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *)\n" + " btllib::ntmc64(unsigned char,unsigned char,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *)\n" + " btllib::ntmc64(char const *,unsigned int,unsigned int,unsigned int &,uint64_t *)\n" + " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,unsigned int &,uint64_t *)\n" + " btllib::ntmc64(char const *,unsigned int,unsigned int,uint64_t &,uint64_t &,unsigned int &,uint64_t *,bool &)\n" + " btllib::ntmc64(unsigned char,unsigned char,unsigned int,unsigned int,uint64_t &,uint64_t &,uint64_t *,bool &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_num_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_mask_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - size_t arg2 ; + uint64_t *arg1 = 0 ; + uint64_t *arg2 = 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + unsigned int arg5 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + void *argp2 = 0 ; + int res2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + PyObject *swig_obj[5] ; + uint64_t result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "mask_hash", 5, 5, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_unsigned_long_long, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mask_hash" "', argument " "1"" of type '" "uint64_t &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndexlrRecord_num_set" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - if (arg1) (arg1)->num = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IndexlrRecord_num_get(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_num_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mask_hash" "', argument " "1"" of type '" "uint64_t &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = ((arg1)->num); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< uint64_t * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_unsigned_long_long, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mask_hash" "', argument " "2"" of type '" "uint64_t &""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mask_hash" "', argument " "2"" of type '" "uint64_t &""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mask_hash" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(swig_obj[3], &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mask_hash" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mask_hash" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + result = (uint64_t)btllib::mask_hash(*arg1,*arg2,(char const *)arg3,(char const *)arg4,arg5); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; return resultobj; fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_sub_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + uint64_t arg1 ; + uint64_t arg2 ; + char *arg3 = (char *) 0 ; + std::vector< unsigned int,std::allocator< unsigned int > > *arg4 = 0 ; + std::vector< unsigned char,std::allocator< unsigned char > > *arg5 = 0 ; + unsigned int arg6 ; + unsigned int arg7 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t val1 ; + int ecode1 = 0 ; + uint64_t val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 = SWIG_OLDOBJ ; + void *argp5 = 0 ; + int res5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + unsigned int val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + PyObject *swig_obj[8] ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + if (!SWIG_Python_UnpackTuple(args, "sub_hash", 8, 8, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "sub_hash" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sub_hash" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sub_hash" "', argument " "3"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + arg3 = reinterpret_cast< char * >(buf3); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0; + res4 = swig::asptr(swig_obj[3], &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "sub_hash" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexlrRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sub_hash" "', argument " "4"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); } - arg2 = ptr; + arg4 = ptr; } - if (arg1) (arg1)->id = *arg2; + res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "sub_hash" "', argument " "5"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "sub_hash" "', argument " "5"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + } + arg5 = reinterpret_cast< std::vector< unsigned char,std::allocator< unsigned char > > * >(argp5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "sub_hash" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "sub_hash" "', argument " "7"" of type '" "unsigned int""'"); + } + arg7 = static_cast< unsigned int >(val7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "sub_hash" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + btllib::sub_hash(arg1,arg2,(char const *)arg3,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg4,(std::vector< unsigned char,std::allocator< unsigned char > > const &)*arg5,arg6,arg7,arg8); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_id_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + char *arg1 = (char *) 0 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; + unsigned int arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + uint64_t *arg7 = (uint64_t *) 0 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t *arg9 = (uint64_t *) 0 ; + uint64_t *arg10 = (uint64_t *) 0 ; + unsigned int *arg11 = 0 ; + uint64_t *arg12 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int res3 = SWIG_OLDOBJ ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; + void *argp12 = 0 ; + int res12 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_id_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (std::string *) & ((arg1)->id); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_set(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; - - (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res3 = swig::asptr(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); } - arg2 = ptr; + arg3 = ptr; } - if (arg1) (arg1)->barcode = *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_IndexlrRecord_barcode_get(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_barcode_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64" "', argument " "7"" of type '" "uint64_t *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (std::string *) & ((arg1)->barcode); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg7 = reinterpret_cast< uint64_t * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); + } + arg9 = reinterpret_cast< uint64_t * >(argp9); + res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); + } + arg10 = reinterpret_cast< uint64_t * >(argp10); + res11 = SWIG_ConvertPtr(swig_obj[10], &argp11, SWIGTYPE_p_unsigned_int, 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "unsigned int &""'"); + } + if (!argp11) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "11"" of type '" "unsigned int &""'"); + } + arg11 = reinterpret_cast< unsigned int * >(argp11); + res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res12)) { + SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64" "', argument " "12"" of type '" "uint64_t *""'"); + } + arg12 = reinterpret_cast< uint64_t * >(argp12); + result = (bool)btllib::ntmsm64((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,*arg11,arg12); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + char *arg1 = (char *) 0 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; + unsigned int arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + uint64_t *arg7 = (uint64_t *) 0 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t *arg9 = (uint64_t *) 0 ; + uint64_t *arg10 = (uint64_t *) 0 ; + uint64_t *arg11 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int res3 = SWIG_OLDOBJ ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + if ((nobjs < 11) || (nobjs > 11)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndexlrRecord_readlen_set" "', argument " "2"" of type '" "size_t""'"); + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res3 = swig::asptr(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + arg3 = ptr; + } + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64" "', argument " "4"" of type '" "unsigned int""'"); } - arg2 = static_cast< size_t >(val2); - if (arg1) (arg1)->readlen = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_get(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_readlen_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); + } + arg9 = reinterpret_cast< uint64_t * >(argp9); + res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); + } + arg10 = reinterpret_cast< uint64_t * >(argp10); + res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "uint64_t *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = ((arg1)->readlen); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg11 = reinterpret_cast< uint64_t * >(argp11); + btllib::ntmsm64((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); + resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmsm64l__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *arg2 = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + char *arg1 = (char *) 0 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; + unsigned int arg4 ; + unsigned int arg5 ; + unsigned int arg6 ; + uint64_t *arg7 = (uint64_t *) 0 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t *arg9 = (uint64_t *) 0 ; + uint64_t *arg10 = (uint64_t *) 0 ; + uint64_t *arg11 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - PyObject *swig_obj[2] ; + int res3 = SWIG_OLDOBJ ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + void *argp7 = 0 ; + int res7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + if ((nobjs < 11) || (nobjs > 11)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64l" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_minimizers_set" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ntmsm64l" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); } - arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > * >(argp2); - if (arg1) (arg1)->minimizers = *arg2; + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res3 = swig::asptr(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + arg3 = ptr; + } + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ntmsm64l" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64l" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64l" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + res7 = SWIG_ConvertPtr(swig_obj[6], &argp7,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res7)) { + SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ntmsm64l" "', argument " "7"" of type '" "uint64_t *""'"); + } + arg7 = reinterpret_cast< uint64_t * >(argp7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64l" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64l" "', argument " "9"" of type '" "uint64_t *""'"); + } + arg9 = reinterpret_cast< uint64_t * >(argp9); + res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64l" "', argument " "10"" of type '" "uint64_t *""'"); + } + arg10 = reinterpret_cast< uint64_t * >(argp10); + res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64l" "', argument " "11"" of type '" "uint64_t *""'"); + } + arg11 = reinterpret_cast< uint64_t * >(argp11); + btllib::ntmsm64l((char const *)arg1,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg2,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ntmsm64__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *result = 0 ; + char *arg1 = (char *) 0 ; + char arg2 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; + unsigned int arg5 ; + unsigned int arg6 ; + unsigned int arg7 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t *arg9 = (uint64_t *) 0 ; + uint64_t *arg10 = (uint64_t *) 0 ; + uint64_t *arg11 = (uint64_t *) 0 ; + uint64_t *arg12 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + char val2 ; + int ecode2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int res4 = SWIG_OLDOBJ ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + unsigned int val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; + void *argp12 = 0 ; + int res12 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_minimizers_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64" "', argument " "1"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)& ((arg1)->minimizers); - - resultobj = PyList_New(result->size()); - for (unsigned i = 0; i < result->size(); ++i) { - PyObject *item = SWIG_NewPointerObj(new btllib::Indexlr::Minimizer((*(result))[i]), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_OWN); - PyList_SetItem(resultobj, i, item); + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmsm64" "', argument " "2"" of type '" "char""'"); + } + arg2 = static_cast< char >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); } - - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IndexlrRecord___nonzero__(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord___nonzero__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord___nonzero__" "', argument " "1"" of type '" "btllib::Indexlr::Record const *""'"); + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (bool)((btllib::Indexlr::Record const *)arg1)->operator bool(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - PyErr_Clear(); - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -SWIGINTERN PyObject *_wrap_delete_IndexlrRecord(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrRecord", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecord" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res4 = swig::asptr(swig_obj[3], &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmsm64" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + arg4 = ptr; } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - delete arg1; + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ntmsm64" "', argument " "7"" of type '" "unsigned int""'"); + } + arg7 = static_cast< unsigned int >(val7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64" "', argument " "9"" of type '" "uint64_t *""'"); + } + arg9 = reinterpret_cast< uint64_t * >(argp9); + res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64" "', argument " "10"" of type '" "uint64_t *""'"); + } + arg10 = reinterpret_cast< uint64_t * >(argp10); + res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64" "', argument " "11"" of type '" "uint64_t *""'"); + } + arg11 = reinterpret_cast< uint64_t * >(argp11); + res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res12)) { + SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64" "', argument " "12"" of type '" "uint64_t *""'"); + } + arg12 = reinterpret_cast< uint64_t * >(argp12); + btllib::ntmsm64((char const *)arg1,arg2,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg3,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGPY_INQUIRY_CLOSURE(_wrap_IndexlrRecord___nonzero__) /* defines _wrap_IndexlrRecord___nonzero___inquiry_closure */ - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrRecord) /* defines _wrap_delete_IndexlrRecord_destructor_closure */ - -SWIGINTERN PyObject *_wrap_IndexlrRecordIterator___next__(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::Indexlr::Record result; +SWIGINTERN PyObject *_wrap_ntmsm64(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[13] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "IndexlrRecordIterator___next__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__RecordIterator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecordIterator___next__" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "ntmsm64", 0, 12, argv))) SWIG_fail; + --argc; + if (argc == 11) { + PyObject *retobj = _wrap_ntmsm64__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); - { - result = (arg1)->next(); - if (!bool(result)) { - PyErr_SetNone(PyExc_StopIteration); - SWIG_fail; + if (argc == 12) { + int _v = 0; + { + int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[10], &vptr, SWIGTYPE_p_unsigned_int, SWIG_POINTER_NO_NULL); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + PyObject *retobj = _wrap_ntmsm64__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - resultobj = SWIG_NewPointerObj((new btllib::Indexlr::Record(result)), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_IndexlrRecordIterator(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; +check_2: - (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrRecordIterator", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__RecordIterator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecordIterator" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); + if (argc == 12) { + PyObject *retobj = _wrap_ntmsm64__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; + fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmsm64'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::ntmsm64(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,unsigned int &,uint64_t *)\n" + " btllib::ntmsm64(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n" + " btllib::ntmsm64(char const *,char,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n"); + return 0; } -SWIGPY_ITERNEXTFUNC_CLOSURE(_wrap_IndexlrRecordIterator___next__) /* defines _wrap_IndexlrRecordIterator___next___iternextfunc_closure */ - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrRecordIterator) /* defines _wrap_delete_IndexlrRecordIterator_destructor_closure */ - -SWIGINTERN int _wrap_new_RandomSequenceGenerator__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_ntmsm64l__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::RandomSequenceGenerator::SequenceType arg1 ; - btllib::RandomSequenceGenerator::Masking arg2 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; + char *arg1 = (char *) 0 ; + char arg2 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; + unsigned int arg5 ; + unsigned int arg6 ; + unsigned int arg7 ; + uint64_t *arg8 = (uint64_t *) 0 ; + uint64_t *arg9 = (uint64_t *) 0 ; + uint64_t *arg10 = (uint64_t *) 0 ; + uint64_t *arg11 = (uint64_t *) 0 ; + uint64_t *arg12 = (uint64_t *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + char val2 ; int ecode2 = 0 ; - btllib::RandomSequenceGenerator *result = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int res4 = SWIG_OLDOBJ ; + unsigned int val5 ; + int ecode5 = 0 ; + unsigned int val6 ; + int ecode6 = 0 ; + unsigned int val7 ; + int ecode7 = 0 ; + void *argp8 = 0 ; + int res8 = 0 ; + void *argp9 = 0 ; + int res9 = 0 ; + void *argp10 = 0 ; + int res10 = 0 ; + void *argp11 = 0 ; + int res11 = 0 ; + void *argp12 = 0 ; + int res12 = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator::SequenceType""'"); - } - arg1 = static_cast< btllib::RandomSequenceGenerator::SequenceType >(val1); - ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); + if ((nobjs < 12) || (nobjs > 12)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ntmsm64l" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RandomSequenceGenerator" "', argument " "2"" of type '" "btllib::RandomSequenceGenerator::Masking""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ntmsm64l" "', argument " "2"" of type '" "char""'"); } - arg2 = static_cast< btllib::RandomSequenceGenerator::Masking >(val2); - result = (btllib::RandomSequenceGenerator *)new btllib::RandomSequenceGenerator(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_RandomSequenceGenerator__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::RandomSequenceGenerator::SequenceType arg1 ; - int val1 ; - int ecode1 = 0 ; - btllib::RandomSequenceGenerator *result = 0 ; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator::SequenceType""'"); + arg2 = static_cast< char >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &""'"); + } + arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res4 = swig::asptr(swig_obj[3], &ptr); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ntmsm64l" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ntmsm64l" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &""'"); + } + arg4 = ptr; + } + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ntmsm64l" "', argument " "5"" of type '" "unsigned int""'"); } - arg1 = static_cast< btllib::RandomSequenceGenerator::SequenceType >(val1); - result = (btllib::RandomSequenceGenerator *)new btllib::RandomSequenceGenerator(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg5 = static_cast< unsigned int >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ntmsm64l" "', argument " "6"" of type '" "unsigned int""'"); + } + arg6 = static_cast< unsigned int >(val6); + ecode7 = SWIG_AsVal_unsigned_SS_int(swig_obj[6], &val7); + if (!SWIG_IsOK(ecode7)) { + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ntmsm64l" "', argument " "7"" of type '" "unsigned int""'"); + } + arg7 = static_cast< unsigned int >(val7); + res8 = SWIG_ConvertPtr(swig_obj[7], &argp8,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res8)) { + SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ntmsm64l" "', argument " "8"" of type '" "uint64_t *""'"); + } + arg8 = reinterpret_cast< uint64_t * >(argp8); + res9 = SWIG_ConvertPtr(swig_obj[8], &argp9,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res9)) { + SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ntmsm64l" "', argument " "9"" of type '" "uint64_t *""'"); + } + arg9 = reinterpret_cast< uint64_t * >(argp9); + res10 = SWIG_ConvertPtr(swig_obj[9], &argp10,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res10)) { + SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "ntmsm64l" "', argument " "10"" of type '" "uint64_t *""'"); + } + arg10 = reinterpret_cast< uint64_t * >(argp10); + res11 = SWIG_ConvertPtr(swig_obj[10], &argp11,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res11)) { + SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "ntmsm64l" "', argument " "11"" of type '" "uint64_t *""'"); + } + arg11 = reinterpret_cast< uint64_t * >(argp11); + res12 = SWIG_ConvertPtr(swig_obj[11], &argp12,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res12)) { + SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "ntmsm64l" "', argument " "12"" of type '" "uint64_t *""'"); + } + arg12 = reinterpret_cast< uint64_t * >(argp12); + btllib::ntmsm64l((char const *)arg1,arg2,(std::vector< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > >,std::allocator< std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > > > const &)*arg3,(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); + resultobj = SWIG_Py_Void(); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res4)) delete arg4; + return resultobj; fail: - return -1; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res4)) delete arg4; + return NULL; } -SWIGINTERN int _wrap_new_RandomSequenceGenerator(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_ntmsm64l(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[13] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_RandomSequenceGenerator")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_RandomSequenceGenerator", 0, 2, argv))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "ntmsm64l", 0, 12, argv))) SWIG_fail; --argc; - if (argc == 1) { - int retval = _wrap_new_RandomSequenceGenerator__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 11) { + PyObject *retobj = _wrap_ntmsm64l__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - int retval = _wrap_new_RandomSequenceGenerator__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 12) { + PyObject *retobj = _wrap_ntmsm64l__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_RandomSequenceGenerator'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ntmsm64l'.\n" " Possible C/C++ prototypes are:\n" - " btllib::RandomSequenceGenerator::RandomSequenceGenerator(btllib::RandomSequenceGenerator::SequenceType,btllib::RandomSequenceGenerator::Masking)\n" - " btllib::RandomSequenceGenerator::RandomSequenceGenerator(btllib::RandomSequenceGenerator::SequenceType)\n"); - return -1; + " btllib::ntmsm64l(char const *,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n" + " btllib::ntmsm64l(char const *,char,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > const &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > const &,unsigned int,unsigned int,unsigned int,uint64_t *,uint64_t *,uint64_t *,uint64_t *,uint64_t *)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_RandomSequenceGenerator_generate(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Datatype_prefixes_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::RandomSequenceGenerator *arg1 = (btllib::RandomSequenceGenerator *) 0 ; - size_t arg2 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject *swig_obj[2] ; - std::string result; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__RandomSequenceGenerator, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RandomSequenceGenerator_generate" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_prefixes_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - arg1 = reinterpret_cast< btllib::RandomSequenceGenerator * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RandomSequenceGenerator_generate" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - result = (arg1)->generate(arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_prefixes_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + } + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->prefixes = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_RandomSequenceGenerator(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Datatype_prefixes_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::RandomSequenceGenerator *arg1 = (btllib::RandomSequenceGenerator *) 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_RandomSequenceGenerator", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Datatype_prefixes_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator *""'"); - } - arg1 = reinterpret_cast< btllib::RandomSequenceGenerator * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_RandomSequenceGenerator) /* defines _wrap_delete_RandomSequenceGenerator_destructor_closure */ - -SWIGINTERN PyObject *_wrap_split(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - std::string *arg2 = 0 ; - int res1 = SWIG_OLDOBJ ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; - std::vector< std::string,std::allocator< std::string > > result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "split", 2, 2, swig_obj)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "split" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "split" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = btllib::split((std::string const &)*arg1,(std::string const &)*arg2); - resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_join(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; - std::string *arg2 = 0 ; - int res1 = SWIG_OLDOBJ ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; - std::string result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "join", 2, 2, swig_obj)) SWIG_fail; - { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res1 = swig::asptr(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "join" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "join" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - arg1 = ptr; - } - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "join" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "join" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_prefixes_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - result = btllib::join((std::vector< std::string,std::allocator< std::string > > const &)*arg1,(std::string const &)*arg2); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->prefixes); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_ltrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_suffixes_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_suffixes_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_suffixes_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::ltrim(*arg1); + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->suffixes = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -35005,83 +35368,52 @@ SWIGINTERN PyObject *_wrap_ltrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObj } -SWIGINTERN PyObject *_wrap_ltrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_suffixes_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CString *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); + if (!SWIG_Python_UnpackTuple(args, "Datatype_suffixes_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "btllib::CString &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ltrim" "', argument " "1"" of type '" "btllib::CString &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_suffixes_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - arg1 = reinterpret_cast< btllib::CString * >(argp1); - btllib::ltrim(*arg1); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->suffixes); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_ltrim(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "ltrim", 0, 1, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_ltrim__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 1) { - PyObject *retobj = _wrap_ltrim__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ltrim'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::ltrim(std::string &)\n" - " btllib::ltrim(btllib::CString &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rtrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_cmds_check_existence_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_cmds_check_existence_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_cmds_check_existence_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::rtrim(*arg1); + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->cmds_check_existence = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -35089,83 +35421,52 @@ SWIGINTERN PyObject *_wrap_rtrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObj } -SWIGINTERN PyObject *_wrap_rtrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_cmds_check_existence_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CString *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); + if (!SWIG_Python_UnpackTuple(args, "Datatype_cmds_check_existence_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "btllib::CString &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rtrim" "', argument " "1"" of type '" "btllib::CString &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_cmds_check_existence_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - arg1 = reinterpret_cast< btllib::CString * >(argp1); - btllib::rtrim(*arg1); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->cmds_check_existence); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_rtrim(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "rtrim", 0, 1, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_rtrim__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 1) { - PyObject *retobj = _wrap_rtrim__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'rtrim'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::rtrim(std::string &)\n" - " btllib::rtrim(btllib::CString &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_trim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_read_cmds_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_read_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_read_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::trim(*arg1); + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->read_cmds = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -35173,256 +35474,162 @@ SWIGINTERN PyObject *_wrap_trim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObje } -SWIGINTERN PyObject *_wrap_trim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Datatype_read_cmds_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CString *arg1 = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); + if (!SWIG_Python_UnpackTuple(args, "Datatype_read_cmds_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "btllib::CString &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "btllib::CString &""'"); - } - arg1 = reinterpret_cast< btllib::CString * >(argp1); - btllib::trim(*arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_trim(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "trim", 0, 1, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__string, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_trim__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 1) { - PyObject *retobj = _wrap_trim__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'trim'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::trim(std::string &)\n" - " btllib::trim(btllib::CString &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_startswith(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string arg1 ; - std::string arg2 ; - PyObject *swig_obj[2] ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "startswith", 2, 2, swig_obj)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "startswith" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "startswith" "', argument " "2"" of type '" "std::string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_read_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - result = (bool)btllib::startswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->read_cmds); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_endswith(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Datatype_write_cmds_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - std::string arg2 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; PyObject *swig_obj[2] ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "endswith", 2, 2, swig_obj)) SWIG_fail; - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "endswith" "', argument " "1"" of type '" "std::string""'"); - } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_write_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "endswith" "', argument " "2"" of type '" "std::string""'"); - } - arg2 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_write_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); } - result = (bool)btllib::endswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->write_cmds = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_get_basename(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Datatype_write_cmds_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - std::string result; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_basename" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_basename" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if (!SWIG_Python_UnpackTuple(args, "Datatype_write_cmds_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_write_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - result = btllib::get_basename((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->write_cmds); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Datatype_append_cmds_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - std::string result; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = (std::vector< std::string,std::allocator< std::string > > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject *swig_obj[2] ; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_dirname" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_dirname" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_append_cmds_set" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - result = btllib::get_dirname((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Datatype_append_cmds_set" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > *""'"); + } + arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); + if (arg1) (arg1)->append_cmds = *arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN int _wrap_new_Barrier(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_Datatype_append_cmds_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - unsigned int arg1 ; - unsigned int val1 ; - int ecode1 = 0 ; - PyObject *swig_obj[1] ; - btllib::Barrier *result = 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Barrier")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_Barrier", 1, 1, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Barrier" "', argument " "1"" of type '" "unsigned int""'"); - } - arg1 = static_cast< unsigned int >(val1); - result = (btllib::Barrier *)new btllib::Barrier(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Barrier, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + if (!SWIG_Python_UnpackTuple(args, "Datatype_append_cmds_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Datatype_append_cmds_get" "', argument " "1"" of type '" "btllib::Datatype *""'"); + } + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *)& ((arg1)->append_cmds); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 ); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_Barrier_wait(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Datatype(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; - btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + btllib::Datatype *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "Barrier_wait", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Barrier, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Barrier_wait" "', argument " "1"" of type '" "btllib::Barrier *""'"); - } - arg1 = reinterpret_cast< btllib::Barrier * >(argp1); - (arg1)->wait(); - resultobj = SWIG_Py_Void(); - return resultobj; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_Datatype")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_Datatype", 0, 0, 0)) SWIG_fail; + result = (btllib::Datatype *)new btllib::Datatype(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Datatype, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_Datatype(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; + btllib::Datatype *arg1 = (btllib::Datatype *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_Barrier", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Barrier, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_Datatype", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Datatype, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Barrier" "', argument " "1"" of type '" "btllib::Barrier *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Datatype" "', argument " "1"" of type '" "btllib::Datatype *""'"); } - arg1 = reinterpret_cast< btllib::Barrier * >(argp1); + arg1 = reinterpret_cast< btllib::Datatype * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -35431,71 +35638,69 @@ SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Barrier) /* defines _wrap_delete_Barrier_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Datatype) /* defines _wrap_delete_Datatype_destructor_closure */ -SWIGINTERN int Swig_var_COMPLEMENTS_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable COMPLEMENTS is read-only."); +SWIGINTERN int Swig_var_DATATYPES_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable DATATYPES is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_COMPLEMENTS_get(void) { +SWIGINTERN PyObject *Swig_var_DATATYPES_get(void) { PyObject *pyobj = 0; PyObject *self = 0; (void)self; - { - size_t size = SWIG_strnlen(btllib::COMPLEMENTS, 256); - - - - pyobj = SWIG_FromCharPtrAndSize(btllib::COMPLEMENTS, size); - } + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::DATATYPES), SWIGTYPE_p_btllib__Datatype, 0 ); return pyobj; } -SWIGINTERN int Swig_var_CAPITALS_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable CAPITALS is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_CAPITALS_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_DataSource(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + btllib::DataSource *result = 0 ; (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_DataSource")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_DataSource", 1, 1, swig_obj)) SWIG_fail; { - size_t size = SWIG_strnlen(btllib::CAPITALS, 256); - - - - pyobj = SWIG_FromCharPtrAndSize(btllib::CAPITALS, size); + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSource" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSource" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - return pyobj; + result = (btllib::DataSource *)new btllib::DataSource((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSource, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_reverse_complement(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_DataSource(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::DataSource *arg1 = (btllib::DataSource *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - PyObject *swig_obj[1] ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_DataSource", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__DataSource, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "reverse_complement" "', argument " "1"" of type '" "std::string &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "reverse_complement" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataSource" "', argument " "1"" of type '" "btllib::DataSource *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::reverse_complement(*arg1); + arg1 = reinterpret_cast< btllib::DataSource * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -35503,243 +35708,226 @@ SWIGINTERN PyObject *_wrap_reverse_complement(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_get_reverse_complement(PyObject *self, PyObject *args) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_DataSource) /* defines _wrap_delete_DataSource_destructor_closure */ + +SWIGINTERN int _wrap_new_DataSink__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; + bool arg2 ; int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - std::string result; + bool val2 ; + int ecode2 = 0 ; + btllib::DataSink *result = 0 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; { std::string *ptr = (std::string *)0; res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_reverse_complement" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_reverse_complement" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = btllib::get_reverse_complement((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DataSink" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (btllib::DataSink *)new btllib::DataSink((std::string const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSink, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; +} + + +SWIGINTERN int _wrap_new_DataSink__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::DataSink *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DataSink" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; + } + result = (btllib::DataSink *)new btllib::DataSink((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__DataSink, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: if (SWIG_IsNewObj(res1)) delete arg1; + return -1; +} + + +SWIGINTERN int _wrap_new_DataSink(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_DataSink")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_DataSink", 0, 2, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int retval = _wrap_new_DataSink__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 2) { + int retval = _wrap_new_DataSink__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DataSink'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::DataSink::DataSink(std::string const &,bool)\n" + " btllib::DataSink::DataSink(std::string const &)\n"); + return -1; +} + + +SWIGINTERN PyObject *_wrap_delete_DataSink(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::DataSink *arg1 = (btllib::DataSink *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_DataSink", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__DataSink, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataSink" "', argument " "1"" of type '" "btllib::DataSink *""'"); + } + arg1 = reinterpret_cast< btllib::DataSink * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: return NULL; } -SWIGINTERN int Swig_var_NTHASH_FN_NAME_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable NTHASH_FN_NAME is read-only."); +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_DataSink) /* defines _wrap_delete_DataSink_destructor_closure */ + +SWIGINTERN int Swig_var_PRINT_COLOR_INFO_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_INFO is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_NTHASH_FN_NAME_get(void) { +SWIGINTERN PyObject *Swig_var_PRINT_COLOR_INFO_get(void) { PyObject *pyobj = 0; PyObject *self = 0; (void)self; - pyobj = SWIG_FromCharPtr(btllib::NTHASH_FN_NAME); + pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_INFO); return pyobj; } -SWIGINTERN int Swig_var_NTHASH_HASH_NUM_MAX_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable NTHASH_HASH_NUM_MAX is read-only."); +SWIGINTERN int Swig_var_PRINT_COLOR_WARNING_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_WARNING is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_NTHASH_HASH_NUM_MAX_get(void) { +SWIGINTERN PyObject *Swig_var_PRINT_COLOR_WARNING_get(void) { PyObject *pyobj = 0; PyObject *self = 0; (void)self; - pyobj = SWIG_From_int(static_cast< int >(btllib::NTHASH_HASH_NUM_MAX)); + pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_WARNING); return pyobj; } -SWIGINTERN int Swig_var_NTHASH_K_MAX_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable NTHASH_K_MAX is read-only."); +SWIGINTERN int Swig_var_PRINT_COLOR_ERROR_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_ERROR is read-only."); return 1; } -SWIGINTERN PyObject *Swig_var_NTHASH_K_MAX_get(void) { +SWIGINTERN PyObject *Swig_var_PRINT_COLOR_ERROR_get(void) { PyObject *pyobj = 0; PyObject *self = 0; (void)self; - pyobj = SWIG_From_int(static_cast< int >(btllib::NTHASH_K_MAX)); + pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_ERROR); return pyobj; } -SWIGINTERN PyObject *_wrap_parse_seeds__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res1 = swig::asptr(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - arg1 = ptr; - } - result = btllib::parse_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1); - resultobj = swig::from(static_cast< std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; +SWIGINTERN int Swig_var_PRINT_COLOR_END_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_END is read-only."); + return 1; } -SWIGINTERN PyObject *_wrap_parse_seeds__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; - int res1 = SWIG_OLDOBJ ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; +SWIGINTERN PyObject *Swig_var_PRINT_COLOR_END_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res1 = swig::asptr(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - arg1 = ptr; - } - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "parse_seeds" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); - } - arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t_t, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parse_seeds" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); - } - arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > * >(argp3); - btllib::parse_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1,*arg2,*arg3); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_END); + return pyobj; } -SWIGINTERN PyObject *_wrap_parse_seeds(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_get_time(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "parse_seeds", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 1) { - PyObject *retobj = _wrap_parse_seeds__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_parse_seeds__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - + if (!SWIG_Python_UnpackTuple(args, "get_time", 0, 0, 0)) SWIG_fail; + result = btllib::get_time(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'parse_seeds'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::parse_seeds(std::vector< std::string,std::allocator< std::string > > const &)\n" - " btllib::parse_seeds(std::vector< std::string,std::allocator< std::string > > const &,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &)\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_parsed_seeds_to_blocks(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_log_info(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg1 = 0 ; - unsigned int arg2 ; - std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; - std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - unsigned int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject *swig_obj[4] ; + PyObject *swig_obj[1] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "parsed_seeds_to_blocks", 4, 4, swig_obj)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res1 = swig::asptr(swig_obj[0], &ptr); + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parsed_seeds_to_blocks" "', argument " "1"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_info" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "1"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_info" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; - } - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "parsed_seeds_to_blocks" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parsed_seeds_to_blocks" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); - } - arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t_t, 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "parsed_seeds_to_blocks" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); - } - if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); - } - arg4 = reinterpret_cast< std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > * >(argp4); - btllib::parsed_seeds_to_blocks((std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg1,arg2,*arg3,*arg4); + } + btllib::log_info((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; @@ -35749,34 +35937,27 @@ SWIGINTERN PyObject *_wrap_parsed_seeds_to_blocks(PyObject *self, PyObject *args } -SWIGINTERN PyObject *_wrap_check_seeds(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_log_warning(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; - unsigned int arg2 ; + std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - unsigned int val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + PyObject *swig_obj[1] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "check_seeds", 2, 2, swig_obj)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res1 = swig::asptr(swig_obj[0], &ptr); + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_warning" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_warning" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "check_seeds" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - btllib::check_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1,arg2); + btllib::log_warning((std::string const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; @@ -35786,251 +35967,192 @@ SWIGINTERN PyObject *_wrap_check_seeds(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_NtHash_roll(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_roll", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_roll" "', argument " "1"" of type '" "btllib::NtHash *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (bool)(arg1)->roll(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_NtHash_roll_back(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_log_error(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_roll_back", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_roll_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); + if (!args) SWIG_fail; + swig_obj[0] = args; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_error" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_error" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (bool)(arg1)->roll_back(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + btllib::log_error((std::string const &)*arg1); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_NtHash_peek__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_check_info(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + bool arg1 ; + std::string *arg2 = 0 ; + bool val1 ; + int ecode1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek" "', argument " "1"" of type '" "btllib::NtHash *""'"); + if (!SWIG_Python_UnpackTuple(args, "check_info", 2, 2, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_info" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_info" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_info" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (bool)(arg1)->peek(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + btllib::check_info(arg1,(std::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_NtHash_peek_back__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_check_warning(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + bool arg1 ; + std::string *arg2 = 0 ; + bool val1 ; + int ecode1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); + if (!SWIG_Python_UnpackTuple(args, "check_warning", 2, 2, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_warning" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_warning" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_warning" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (bool)(arg1)->peek_back(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + btllib::check_warning(arg1,(std::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_NtHash_peek__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_check_error(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - bool result; + bool arg1 ; + std::string *arg2 = 0 ; + bool val1 ; + int ecode1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek" "', argument " "1"" of type '" "btllib::NtHash *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NtHash_peek" "', argument " "2"" of type '" "char""'"); + if (!SWIG_Python_UnpackTuple(args, "check_error", 2, 2, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_error" "', argument " "1"" of type '" "bool""'"); } - arg2 = static_cast< char >(val2); - result = (bool)(arg1)->peek(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = static_cast< bool >(val1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_error" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_error" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + btllib::check_error(arg1,(std::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_NtHash_peek(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_peek", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_NtHash_peek__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_NtHash_peek__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_peek'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::NtHash::peek()\n" - " btllib::NtHash::peek(char)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_NtHash_peek_back__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_get_strerror(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - bool result; + std::string result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NtHash_peek_back" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - result = (bool)(arg1)->peek_back(arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (!SWIG_Python_UnpackTuple(args, "get_strerror", 0, 0, 0)) SWIG_fail; + result = btllib::get_strerror(); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_NtHash_peek_back(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_peek_back", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_NtHash_peek_back__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_NtHash_peek_back__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_peek_back'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::NtHash::peek_back()\n" - " btllib::NtHash::peek_back(char)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_NtHash_sub(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_check_stream(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - std::vector< unsigned int,std::allocator< unsigned int > > *arg2 = 0 ; - std::vector< unsigned char,std::allocator< unsigned char > > *arg3 = 0 ; + std::ios *arg1 = 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject *swig_obj[3] ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_sub", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "check_stream", 2, 2, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__basic_iosT_char_std__char_traitsT_char_t_t, 0 | 0); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_sub" "', argument " "1"" of type '" "btllib::NtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_stream" "', argument " "1"" of type '" "std::ios const &""'"); } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_stream" "', argument " "1"" of type '" "std::ios const &""'"); + } + arg1 = reinterpret_cast< std::ios * >(argp1); { - std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0; - res2 = swig::asptr(swig_obj[0], &ptr); + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_stream" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_stream" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - res3 = SWIG_ConvertPtr(swig_obj[1], &argp3, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); - } - arg3 = reinterpret_cast< std::vector< unsigned char,std::allocator< unsigned char > > * >(argp3); - (arg1)->sub((std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg2,(std::vector< unsigned char,std::allocator< unsigned char > > const &)*arg3); + btllib::check_stream((std::basic_ios< char,std::char_traits< char > > const &)*arg1,(std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -36040,440 +36162,347 @@ SWIGINTERN PyObject *_wrap_NtHash_sub(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_NtHash_hashes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_check_file_accessibility(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t *result = 0 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_hashes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_hashes" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (uint64_t *)((btllib::NtHash const *)arg1)->hashes(); - - resultobj = PyTuple_New(arg1->get_hash_num()); - for (unsigned i = 0; i < arg1->get_hash_num(); ++i) { - PyTuple_SetItem(resultobj, i, PyLong_FromUnsignedLong(result[i])); + if (!args) SWIG_fail; + swig_obj[0] = args; + { + std::string *ptr = (std::string *)0; + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_file_accessibility" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_file_accessibility" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - + btllib::check_file_accessibility((std::string const &)*arg1); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_NtHash_get_pos(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_get_pos", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_pos" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = ((btllib::NtHash const *)arg1)->get_pos(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; +SWIGINTERN int Swig_var_NTHASH_FN_NAME_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable NTHASH_FN_NAME is read-only."); + return 1; } -SWIGINTERN PyObject *_wrap_NtHash_forward(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; +SWIGINTERN PyObject *Swig_var_NTHASH_FN_NAME_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_forward", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_forward" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (bool)((btllib::NtHash const *)arg1)->forward(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; + pyobj = SWIG_FromCharPtr(btllib::NTHASH_FN_NAME); + return pyobj; } -SWIGINTERN PyObject *_wrap_NtHash_get_hash_num(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_hash_num" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (unsigned int)((btllib::NtHash const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; +SWIGINTERN int Swig_var_NTHASH_HASH_NUM_MAX_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable NTHASH_HASH_NUM_MAX is read-only."); + return 1; } -SWIGINTERN PyObject *_wrap_NtHash_get_k(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int result; +SWIGINTERN PyObject *Swig_var_NTHASH_HASH_NUM_MAX_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_k" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (unsigned int)((btllib::NtHash const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; + pyobj = SWIG_From_int(static_cast< int >(btllib::NTHASH_HASH_NUM_MAX)); + return pyobj; } -SWIGINTERN PyObject *_wrap_NtHash_get_forward_hash(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (uint64_t)((btllib::NtHash const *)arg1)->get_forward_hash(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; +SWIGINTERN int Swig_var_NTHASH_K_MAX_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable NTHASH_K_MAX is read-only."); + return 1; } -SWIGINTERN PyObject *_wrap_NtHash_get_reverse_hash(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; +SWIGINTERN PyObject *Swig_var_NTHASH_K_MAX_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (void)self; - if (!SWIG_Python_UnpackTuple(args, "NtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::NtHash const *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - result = (uint64_t)((btllib::NtHash const *)arg1)->get_reverse_hash(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; + pyobj = SWIG_From_int(static_cast< int >(btllib::NTHASH_K_MAX)); + return pyobj; } -SWIGINTERN PyObject *_wrap_NtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_parse_seeds__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - std::string *arg2 = 0 ; - size_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - size_t val3 ; - int ecode3 = 0 ; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_change_seq" "', argument " "1"" of type '" "btllib::NtHash *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } - arg2 = ptr; + arg1 = ptr; } - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - (arg1)->change_seq((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + result = btllib::parse_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1); + resultobj = swig::from(static_cast< std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_NtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_parse_seeds__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg2 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg3 = 0 ; + int res1 = SWIG_OLDOBJ ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_change_seq" "', argument " "1"" of type '" "btllib::NtHash *""'"); - } - arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } - arg2 = ptr; + arg1 = ptr; } - (arg1)->change_seq((std::string const &)*arg2); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "parse_seeds" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); + } + arg2 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t_t, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parse_seeds" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parse_seeds" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); + } + arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > * >(argp3); + btllib::parse_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1,*arg2,*arg3); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_NtHash_change_seq(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_parse_seeds(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_change_seq", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - PyObject *retobj = _wrap_NtHash_change_seq__SWIG_1(self, argc, argv); + if (!(argc = SWIG_Python_UnpackTuple(args, "parse_seeds", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 1) { + PyObject *retobj = _wrap_parse_seeds__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_NtHash_change_seq__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_parse_seeds__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_change_seq'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'parse_seeds'.\n" " Possible C/C++ prototypes are:\n" - " btllib::NtHash::change_seq(std::string const &,size_t)\n" - " btllib::NtHash::change_seq(std::string const &)\n"); + " btllib::parse_seeds(std::vector< std::string,std::allocator< std::string > > const &)\n" + " btllib::parse_seeds(std::vector< std::string,std::allocator< std::string > > const &,std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &,std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &)\n"); return 0; } -SWIGINTERN int _wrap_new_NtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_parsed_seeds_to_blocks(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg1 = 0 ; unsigned int arg2 ; - unsigned int arg3 ; - size_t arg4 ; + std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > *arg3 = 0 ; + std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > *arg4 = 0 ; + int res1 = SWIG_OLDOBJ ; unsigned int val2 ; int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - btllib::NtHash *result = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject *swig_obj[4] ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "parsed_seeds_to_blocks", 4, 4, swig_obj)) SWIG_fail; { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_NtHash" "', argument " "1"" of type '" "std::string""'"); + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res1 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "parsed_seeds_to_blocks" "', argument " "1"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "1"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + } + arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NtHash" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "parsed_seeds_to_blocks" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NtHash" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NtHash" "', argument " "4"" of type '" "size_t""'"); - } - arg4 = static_cast< size_t >(val4); - result = (btllib::NtHash *)new_btllib_NtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3,SWIG_STD_MOVE(arg4)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__NtHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__vectorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_std__allocatorT_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t_t_t, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "parsed_seeds_to_blocks" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "3"" of type '" "std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > &""'"); + } + arg3 = reinterpret_cast< std::vector< btllib::SpacedSeedBlocks,std::allocator< btllib::SpacedSeedBlocks > > * >(argp3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t_t, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "parsed_seeds_to_blocks" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "parsed_seeds_to_blocks" "', argument " "4"" of type '" "std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > &""'"); + } + arg4 = reinterpret_cast< std::vector< btllib::SpacedSeedMonomers,std::allocator< btllib::SpacedSeedMonomers > > * >(argp4); + btllib::parsed_seeds_to_blocks((std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg1,arg2,*arg3,*arg4); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN int _wrap_new_NtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_check_seeds(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; unsigned int arg2 ; - unsigned int arg3 ; + int res1 = SWIG_OLDOBJ ; unsigned int val2 ; int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::NtHash *result = 0 ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "check_seeds", 2, 2, swig_obj)) SWIG_fail; { - std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_NtHash" "', argument " "1"" of type '" "std::string""'"); + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res1 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NtHash" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "check_seeds" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NtHash" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::NtHash *)new_btllib_NtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__NtHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + btllib::check_seeds((std::vector< std::string,std::allocator< std::string > > const &)*arg1,arg2); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN int _wrap_new_NtHash(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[5] = { - 0 - }; +SWIGINTERN PyObject *_wrap_NtHash_roll(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_NtHash")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_NtHash", 0, 4, argv))) SWIG_fail; - --argc; - if (argc == 3) { - int retval = _wrap_new_NtHash__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 4) { - int retval = _wrap_new_NtHash__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "NtHash_roll", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_roll" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (bool)(arg1)->roll(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_NtHash'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::NtHash::NtHash(std::string,unsigned int,unsigned int,size_t)\n" - " btllib::NtHash::NtHash(std::string,unsigned int,unsigned int)\n"); - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_delete_NtHash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_roll_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_NtHash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_roll_back", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NtHash" "', argument " "1"" of type '" "btllib::NtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_roll_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); } arg1 = reinterpret_cast< btllib::NtHash * >(argp1); - delete_btllib_NtHash(arg1); - resultobj = SWIG_Py_Void(); + result = (bool)(arg1)->roll_back(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_NtHash) /* defines _wrap_delete_NtHash_destructor_closure */ - -SWIGINTERN PyObject *_wrap_BlindNtHash_roll(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_peek__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; - char arg2 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_roll" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_roll" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - result = (bool)(arg1)->roll(arg2); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (bool)(arg1)->peek(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -36481,31 +36510,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_roll(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_roll_back(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_peek_back__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; - char arg2 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_roll_back" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_roll_back" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - result = (bool)(arg1)->roll_back(arg2); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (bool)(arg1)->peek_back(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -36513,28 +36532,26 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_roll_back(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_BlindNtHash_peek(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_peek__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_peek" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_peek" "', argument " "2"" of type '" "char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NtHash_peek" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)(arg1)->peek(arg2); @@ -36545,28 +36562,55 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_peek(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_peek_back(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_peek(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_peek", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_NtHash_peek__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_NtHash_peek__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_peek'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::NtHash::peek()\n" + " btllib::NtHash::peek(char)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_NtHash_peek_back__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_peek_back" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_peek_back" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_peek_back" "', argument " "2"" of type '" "char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NtHash_peek_back" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)(arg1)->peek_back(arg2); @@ -36577,9 +36621,38 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_peek_back(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_BlindNtHash_sub(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_peek_back(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_peek_back", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_NtHash_peek_back__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_NtHash_peek_back__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_peek_back'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::NtHash::peek_back()\n" + " btllib::NtHash::peek_back(char)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_NtHash_sub(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; std::vector< unsigned int,std::allocator< unsigned int > > *arg2 = 0 ; std::vector< unsigned char,std::allocator< unsigned char > > *arg3 = 0 ; void *argp1 = 0 ; @@ -36590,29 +36663,29 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_sub(PyObject *self, PyObject *args) { PyObject *swig_obj[3] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_sub", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_sub", 2, 2, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_sub" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_sub" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); { std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0; res2 = swig::asptr(swig_obj[0], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(swig_obj[1], &argp3, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlindNtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "NtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); } arg3 = reinterpret_cast< std::vector< unsigned char,std::allocator< unsigned char > > * >(argp3); (arg1)->sub((std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg2,(std::vector< unsigned char,std::allocator< unsigned char > > const &)*arg3); @@ -36625,21 +36698,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_sub(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_hashes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_hashes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_hashes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_hashes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_hashes" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_hashes" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (uint64_t *)((btllib::BlindNtHash const *)arg1)->hashes(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (uint64_t *)((btllib::NtHash const *)arg1)->hashes(); resultobj = PyTuple_New(arg1->get_hash_num()); for (unsigned i = 0; i < arg1->get_hash_num(); ++i) { @@ -36652,21 +36725,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_hashes(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_get_pos(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_get_pos(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_pos", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_get_pos", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_pos" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_pos" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = ((btllib::BlindNtHash const *)arg1)->get_pos(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = ((btllib::NtHash const *)arg1)->get_pos(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -36674,21 +36747,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_get_pos(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_forward(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_forward(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_forward", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_forward", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_forward" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_forward" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (bool)((btllib::BlindNtHash const *)arg1)->forward(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (bool)((btllib::NtHash const *)arg1)->forward(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -36696,21 +36769,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_forward(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_hash_num" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_hash_num" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (unsigned int)((btllib::BlindNtHash const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (unsigned int)((btllib::NtHash const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -36718,21 +36791,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_get_hash_num(PyObject *self, PyObject *ar } -SWIGINTERN PyObject *_wrap_BlindNtHash_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_k" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_k" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (unsigned int)((btllib::BlindNtHash const *)arg1)->get_k(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (unsigned int)((btllib::NtHash const *)arg1)->get_k(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -36740,21 +36813,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_get_k(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BlindNtHash_get_forward_hash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_get_forward_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (uint64_t)((btllib::BlindNtHash const *)arg1)->get_forward_hash(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (uint64_t)((btllib::NtHash const *)arg1)->get_forward_hash(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -36762,21 +36835,21 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_get_forward_hash(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_BlindNtHash_get_reverse_hash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_get_reverse_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "NtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::NtHash const *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - result = (uint64_t)((btllib::BlindNtHash const *)arg1)->get_reverse_hash(); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + result = (uint64_t)((btllib::NtHash const *)arg1)->get_reverse_hash(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -36784,9 +36857,9 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_get_reverse_hash(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_NtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; std::string *arg2 = 0 ; size_t arg3 ; void *argp1 = 0 ; @@ -36797,25 +36870,25 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_0(PyObject *self, Py_ssi (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_change_seq" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_change_seq" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlindNtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->change_seq((std::string const &)*arg2,arg3); @@ -36828,9 +36901,9 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_0(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_NtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -36838,19 +36911,19 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_1(PyObject *self, Py_ssi (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_change_seq" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NtHash_change_seq" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -36864,36 +36937,36 @@ SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_1(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_NtHash_change_seq(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "BlindNtHash_change_seq", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "NtHash_change_seq", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { - PyObject *retobj = _wrap_BlindNtHash_change_seq__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_NtHash_change_seq__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_BlindNtHash_change_seq__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_NtHash_change_seq__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'BlindNtHash_change_seq'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'NtHash_change_seq'.\n" " Possible C/C++ prototypes are:\n" - " btllib::BlindNtHash::change_seq(std::string const &,size_t)\n" - " btllib::BlindNtHash::change_seq(std::string const &)\n"); + " btllib::NtHash::change_seq(std::string const &,size_t)\n" + " btllib::NtHash::change_seq(std::string const &)\n"); return 0; } -SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_NtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string arg1 ; unsigned int arg2 ; @@ -36905,7 +36978,7 @@ SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, P int ecode3 = 0 ; size_t val4 ; int ecode4 = 0 ; - btllib::BlindNtHash *result = 0 ; + btllib::NtHash *result = 0 ; (void)self; if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; @@ -36913,35 +36986,35 @@ SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, P std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_BlindNtHash" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_NtHash" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NtHash" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NtHash" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindNtHash" "', argument " "4"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NtHash" "', argument " "4"" of type '" "size_t""'"); } arg4 = static_cast< size_t >(val4); - result = (btllib::BlindNtHash *)new_btllib_BlindNtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3,SWIG_STD_MOVE(arg4)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BlindNtHash, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::NtHash *)new_btllib_NtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3,SWIG_STD_MOVE(arg4)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__NtHash, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_BlindNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_NtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string arg1 ; unsigned int arg2 ; @@ -36950,7 +37023,7 @@ SWIGINTERN int _wrap_new_BlindNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, P int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; - btllib::BlindNtHash *result = 0 ; + btllib::NtHash *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; @@ -36958,73 +37031,73 @@ SWIGINTERN int _wrap_new_BlindNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, P std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_BlindNtHash" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_NtHash" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NtHash" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NtHash" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); - result = (btllib::BlindNtHash *)new_btllib_BlindNtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BlindNtHash, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::NtHash *)new_btllib_NtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__NtHash, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_BlindNtHash(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_NtHash(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[5] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_BlindNtHash")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_BlindNtHash", 0, 4, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_NtHash")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_NtHash", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int retval = _wrap_new_BlindNtHash__SWIG_1(self, argc, argv); + int retval = _wrap_new_NtHash__SWIG_1(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 4) { - int retval = _wrap_new_BlindNtHash__SWIG_0(self, argc, argv); + int retval = _wrap_new_NtHash__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BlindNtHash'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_NtHash'.\n" " Possible C/C++ prototypes are:\n" - " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int,size_t)\n" - " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int)\n"); + " btllib::NtHash::NtHash(std::string,unsigned int,unsigned int,size_t)\n" + " btllib::NtHash::NtHash(std::string,unsigned int,unsigned int)\n"); return -1; } -SWIGINTERN PyObject *_wrap_delete_BlindNtHash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_NtHash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + btllib::NtHash *arg1 = (btllib::NtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_BlindNtHash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_NtHash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__NtHash, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlindNtHash" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NtHash" "', argument " "1"" of type '" "btllib::NtHash *""'"); } - arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); - delete_btllib_BlindNtHash(arg1); + arg1 = reinterpret_cast< btllib::NtHash * >(argp1); + delete_btllib_NtHash(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -37032,67 +37105,33 @@ SWIGINTERN PyObject *_wrap_delete_BlindNtHash(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BlindNtHash) /* defines _wrap_delete_BlindNtHash_destructor_closure */ - -SWIGINTERN PyObject *_wrap_SeedNtHash_roll(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_roll", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_roll" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); - } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (bool)(arg1)->roll(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SeedNtHash_roll_back(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_roll_back", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_roll_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); - } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (bool)(arg1)->roll_back(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_NtHash) /* defines _wrap_delete_NtHash_destructor_closure */ -SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_BlindNtHash_roll(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + char val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; bool result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_roll" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (bool)(arg1)->peek(); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_roll" "', argument " "2"" of type '" "char""'"); + } + arg2 = static_cast< char >(val2); + result = (bool)(arg1)->roll(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -37100,21 +37139,31 @@ SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_0(PyObject *self, Py_ssize_t no } -SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_BlindNtHash_roll_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + char arg2 ; void *argp1 = 0 ; int res1 = 0 ; + char val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; bool result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_roll_back" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (bool)(arg1)->peek_back(); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_roll_back" "', argument " "2"" of type '" "char""'"); + } + arg2 = static_cast< char >(val2); + result = (bool)(arg1)->roll_back(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -37122,26 +37171,28 @@ SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_0(PyObject *self, Py_ssize } -SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_BlindNtHash_peek(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; + PyObject *swig_obj[2] ; bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_peek" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeedNtHash_peek" "', argument " "2"" of type '" "char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_peek" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)(arg1)->peek(arg2); @@ -37152,55 +37203,28 @@ SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_1(PyObject *self, Py_ssize_t no } -SWIGINTERN PyObject *_wrap_SeedNtHash_peek(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_peek", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_SeedNtHash_peek__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_SeedNtHash_peek__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_peek'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedNtHash::peek()\n" - " btllib::SeedNtHash::peek(char)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_BlindNtHash_peek_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; + PyObject *swig_obj[2] ; bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_peek_back" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeedNtHash_peek_back" "', argument " "2"" of type '" "char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BlindNtHash_peek_back" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)(arg1)->peek_back(arg2); @@ -37211,50 +37235,69 @@ SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_1(PyObject *self, Py_ssize } -SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; +SWIGINTERN PyObject *_wrap_BlindNtHash_sub(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + std::vector< unsigned int,std::allocator< unsigned int > > *arg2 = 0 ; + std::vector< unsigned char,std::allocator< unsigned char > > *arg3 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject *swig_obj[3] ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_peek_back", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_SeedNtHash_peek_back__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_sub", 2, 2, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_sub" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - if (argc == 2) { - PyObject *retobj = _wrap_SeedNtHash_peek_back__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + { + std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (std::vector< unsigned int,std::allocator< unsigned int > > *)0; + res2 = swig::asptr(swig_obj[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_sub" "', argument " "2"" of type '" "std::vector< unsigned int,std::allocator< unsigned int > > const &""'"); + } + arg2 = ptr; } - + res3 = SWIG_ConvertPtr(swig_obj[1], &argp3, SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t, 0 | 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BlindNtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_sub" "', argument " "3"" of type '" "std::vector< unsigned char,std::allocator< unsigned char > > const &""'"); + } + arg3 = reinterpret_cast< std::vector< unsigned char,std::allocator< unsigned char > > * >(argp3); + (arg1)->sub((std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg2,(std::vector< unsigned char,std::allocator< unsigned char > > const &)*arg3); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_peek_back'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedNtHash::peek_back()\n" - " btllib::SeedNtHash::peek_back(char)\n"); - return 0; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_hashes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_hashes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_hashes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_hashes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_hashes" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_hashes" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->hashes(); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (uint64_t *)((btllib::BlindNtHash const *)arg1)->hashes(); resultobj = PyTuple_New(arg1->get_hash_num()); for (unsigned i = 0; i < arg1->get_hash_num(); ++i) { @@ -37267,431 +37310,379 @@ SWIGINTERN PyObject *_wrap_SeedNtHash_hashes(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_BlindNtHash_get_pos(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; - std::string *arg2 = 0 ; - size_t arg3 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - size_t val3 ; - int ecode3 = 0 ; + size_t result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_pos", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_change_seq" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); - } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_pos" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedNtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - (arg1)->change_seq((std::string const &)*arg2,arg3); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = ((btllib::BlindNtHash const *)arg1)->get_pos(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_BlindNtHash_forward(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; - std::string *arg2 = 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_forward", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_change_seq" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); - } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_forward" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - (arg1)->change_seq((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (bool)((btllib::BlindNtHash const *)arg1)->forward(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_change_seq", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - PyObject *retobj = _wrap_SeedNtHash_change_seq__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_SeedNtHash_change_seq__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_change_seq'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedNtHash::change_seq(std::string const &,size_t)\n" - " btllib::SeedNtHash::change_seq(std::string const &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SeedNtHash_get_pos(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_pos", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_pos" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_hash_num" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = ((btllib::SeedNtHash const *)arg1)->get_pos(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (unsigned int)((btllib::BlindNtHash const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_forward(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_forward", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_forward" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_k" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (bool)((btllib::SeedNtHash const *)arg1)->forward(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (unsigned int)((btllib::BlindNtHash const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_get_forward_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_hash_num" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (uint64_t)((btllib::BlindNtHash const *)arg1)->get_forward_hash(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_get_hash_num_per_seed(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_get_reverse_hash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "BlindNtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::BlindNtHash const *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_hash_num_per_seed(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + result = (uint64_t)((btllib::BlindNtHash const *)arg1)->get_reverse_hash(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + std::string *arg2 = 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + size_t val3 ; + int ecode3 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_k" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_change_seq" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BlindNtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + (arg1)->change_seq((std::string const &)*arg2,arg3); + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedNtHash_get_forward_hash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t *result = 0 ; + int res2 = SWIG_OLDOBJ ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BlindNtHash_change_seq" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->get_forward_hash(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + { + std::string *ptr = (std::string *)0; + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BlindNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + (arg1)->change_seq((std::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_SeedNtHash_get_reverse_hash(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t *result = 0 ; +SWIGINTERN PyObject *_wrap_BlindNtHash_change_seq(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "BlindNtHash_change_seq", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + PyObject *retobj = _wrap_BlindNtHash_change_seq__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->get_reverse_hash(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - return resultobj; + if (argc == 3) { + PyObject *retobj = _wrap_BlindNtHash_change_seq__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'BlindNtHash_change_seq'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::BlindNtHash::change_seq(std::string const &,size_t)\n" + " btllib::BlindNtHash::change_seq(std::string const &)\n"); + return 0; } -SWIGINTERN int _wrap_new_SeedNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_BlindNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string arg1 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg2 ; unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - int res2 = SWIG_OLDOBJ ; + size_t arg4 ; + unsigned int val2 ; + int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; - unsigned int val4 ; + size_t val4 ; int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::SeedNtHash *result = 0 ; + btllib::BlindNtHash *result = 0 ; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_SeedNtHash" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_BlindNtHash" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - arg2 = ptr; - } + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedNtHash" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + ecode4 = SWIG_AsVal_size_t(swig_obj[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SeedNtHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - ecode5 = SWIG_AsVal_size_t(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SeedNtHash" "', argument " "5"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BlindNtHash" "', argument " "4"" of type '" "size_t""'"); } - arg5 = static_cast< size_t >(val5); - result = (btllib::SeedNtHash *)new_btllib_SeedNtHash__SWIG_0(SWIG_STD_MOVE(arg1),(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg2,arg3,arg4,SWIG_STD_MOVE(arg5)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedNtHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res2)) delete arg2; + arg4 = static_cast< size_t >(val4); + result = (btllib::BlindNtHash *)new_btllib_BlindNtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3,SWIG_STD_MOVE(arg4)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BlindNtHash, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return -1; } -SWIGINTERN int _wrap_new_SeedNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_BlindNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string arg1 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg2 ; unsigned int arg3 ; - unsigned int arg4 ; - int res2 = SWIG_OLDOBJ ; + unsigned int val2 ; + int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedNtHash *result = 0 ; + btllib::BlindNtHash *result = 0 ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; { std::string *ptr = (std::string *)0; int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); if (!SWIG_IsOK(res) || !ptr) { - SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_SeedNtHash" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_BlindNtHash" "', argument " "1"" of type '" "std::string""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - { - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - arg2 = ptr; - } + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BlindNtHash" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedNtHash" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BlindNtHash" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SeedNtHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedNtHash *)new_btllib_SeedNtHash__SWIG_0(SWIG_STD_MOVE(arg1),(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedNtHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (btllib::BlindNtHash *)new_btllib_BlindNtHash__SWIG_0(SWIG_STD_MOVE(arg1),arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BlindNtHash, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return -1; } -SWIGINTERN int _wrap_new_SeedNtHash(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_BlindNtHash(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[6] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedNtHash")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedNtHash", 0, 5, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_BlindNtHash")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_BlindNtHash", 0, 4, argv))) SWIG_fail; --argc; - if (argc == 4) { - int retval = _wrap_new_SeedNtHash__SWIG_1(self, argc, argv); + if (argc == 3) { + int retval = _wrap_new_BlindNtHash__SWIG_1(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } - if (argc == 5) { - int retval = _wrap_new_SeedNtHash__SWIG_0(self, argc, argv); + if (argc == 4) { + int retval = _wrap_new_BlindNtHash__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeedNtHash'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BlindNtHash'.\n" " Possible C/C++ prototypes are:\n" - " btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" - " btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n"); + " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int,size_t)\n" + " btllib::BlindNtHash::BlindNtHash(std::string,unsigned int,unsigned int)\n"); return -1; } -SWIGINTERN PyObject *_wrap_delete_SeedNtHash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_BlindNtHash(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + btllib::BlindNtHash *arg1 = (btllib::BlindNtHash *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeedNtHash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_BlindNtHash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BlindNtHash, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedNtHash" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BlindNtHash" "', argument " "1"" of type '" "btllib::BlindNtHash *""'"); } - arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); - delete_btllib_SeedNtHash(arg1); + arg1 = reinterpret_cast< btllib::BlindNtHash * >(argp1); + delete_btllib_BlindNtHash(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -37699,332 +37690,276 @@ SWIGINTERN PyObject *_wrap_delete_SeedNtHash(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedNtHash) /* defines _wrap_delete_SeedNtHash_destructor_closure */ - -SWIGINTERN int Swig_var_PRINT_COLOR_INFO_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_INFO is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_PRINT_COLOR_INFO_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_INFO); - return pyobj; -} - - -SWIGINTERN int Swig_var_PRINT_COLOR_WARNING_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_WARNING is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_PRINT_COLOR_WARNING_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_WARNING); - return pyobj; -} - - -SWIGINTERN int Swig_var_PRINT_COLOR_ERROR_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_ERROR is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_PRINT_COLOR_ERROR_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_ERROR); - return pyobj; -} - - -SWIGINTERN int Swig_var_PRINT_COLOR_END_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable PRINT_COLOR_END is read-only."); - return 1; -} - +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BlindNtHash) /* defines _wrap_delete_BlindNtHash_destructor_closure */ -SWIGINTERN PyObject *Swig_var_PRINT_COLOR_END_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_roll(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - pyobj = SWIG_FromCharPtr(btllib::PRINT_COLOR_END); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_roll", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_roll" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (bool)(arg1)->roll(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *_wrap_get_time(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_roll_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string result; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "get_time", 0, 0, 0)) SWIG_fail; - result = btllib::get_time(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_roll_back", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_roll_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (bool)(arg1)->roll_back(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_log_info(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_info" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_info" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); } - btllib::log_info((std::string const &)*arg1); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (bool)(arg1)->peek(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_log_warning(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_warning" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_warning" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); } - btllib::log_warning((std::string const &)*arg1); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (bool)(arg1)->peek_back(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_log_error(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_peek__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + char arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char val2 ; + int ecode2 = 0 ; + bool result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "log_error" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "log_error" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); } - btllib::log_error((std::string const &)*arg1); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeedNtHash_peek" "', argument " "2"" of type '" "char""'"); + } + arg2 = static_cast< char >(val2); + result = (bool)(arg1)->peek(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_check_info(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - bool arg1 ; - std::string *arg2 = 0 ; - bool val1 ; - int ecode1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; +SWIGINTERN PyObject *_wrap_SeedNtHash_peek(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "check_info", 2, 2, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_info" "', argument " "1"" of type '" "bool""'"); - } - arg1 = static_cast< bool >(val1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_info" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_info" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_peek", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_SeedNtHash_peek__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - btllib::check_info(arg1,(std::string const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + if (argc == 2) { + PyObject *retobj = _wrap_SeedNtHash_peek__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_peek'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeedNtHash::peek()\n" + " btllib::SeedNtHash::peek(char)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_check_warning(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - bool arg1 ; - std::string *arg2 = 0 ; - bool val1 ; - int ecode1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + char arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + char val2 ; + int ecode2 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "check_warning", 2, 2, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_warning" "', argument " "1"" of type '" "bool""'"); - } - arg1 = static_cast< bool >(val1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_warning" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_warning" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_peek_back" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); } - btllib::check_warning(arg1,(std::string const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + ecode2 = SWIG_AsVal_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeedNtHash_peek_back" "', argument " "2"" of type '" "char""'"); + } + arg2 = static_cast< char >(val2); + result = (bool)(arg1)->peek_back(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_check_error(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - bool arg1 ; - std::string *arg2 = 0 ; - bool val1 ; - int ecode1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; +SWIGINTERN PyObject *_wrap_SeedNtHash_peek_back(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "check_error", 2, 2, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_bool(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "check_error" "', argument " "1"" of type '" "bool""'"); - } - arg1 = static_cast< bool >(val1); - { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_error" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_error" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_peek_back", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_SeedNtHash_peek_back__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - btllib::check_error(arg1,(std::string const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + if (argc == 2) { + PyObject *retobj = _wrap_SeedNtHash_peek_back__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_peek_back'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeedNtHash::peek_back()\n" + " btllib::SeedNtHash::peek_back(char)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_get_strerror(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_hashes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string result; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "get_strerror", 0, 0, 0)) SWIG_fail; - result = btllib::get_strerror(); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_hashes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_hashes" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->hashes(); + + resultobj = PyTuple_New(arg1->get_hash_num()); + for (unsigned i = 0; i < arg1->get_hash_num(); ++i) { + PyTuple_SetItem(resultobj, i, PyLong_FromUnsignedLong(result[i])); + } + return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_check_stream(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::ios *arg1 = 0 ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; std::string *arg2 = 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + size_t val3 ; + int ecode3 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "check_stream", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__basic_iosT_char_std__char_traitsT_char_t_t, 0 | 0); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_stream" "', argument " "1"" of type '" "std::ios const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_stream" "', argument " "1"" of type '" "std::ios const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_change_seq" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); } - arg1 = reinterpret_cast< std::ios * >(argp1); + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); { std::string *ptr = (std::string *)0; res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "check_stream" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_stream" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - btllib::check_stream((std::basic_ios< char,std::char_traits< char > > const &)*arg1,(std::string const &)*arg2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedNtHash_change_seq" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + (arg1)->change_seq((std::string const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -38034,468 +37969,533 @@ SWIGINTERN PyObject *_wrap_check_stream(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_check_file_accessibility(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_change_seq" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); { std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "check_file_accessibility" "', argument " "1"" of type '" "std::string const &""'"); + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "check_file_accessibility" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedNtHash_change_seq" "', argument " "2"" of type '" "std::string const &""'"); } - arg1 = ptr; + arg2 = ptr; } - btllib::check_file_accessibility((std::string const &)*arg1); + (arg1)->change_seq((std::string const &)*arg2); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN int Swig_var_CP_OFF_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable CP_OFF is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_CP_OFF_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(btllib::CP_OFF)); - return pyobj; -} - - -SWIGINTERN int Swig_var_MULTISHIFT_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable MULTISHIFT is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_MULTISHIFT_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_int(static_cast< int >(btllib::MULTISHIFT)); - return pyobj; -} - - -SWIGINTERN int Swig_var_MULTISEED_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable MULTISEED is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_MULTISEED_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::MULTISEED)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_A_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_A is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_A_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_A)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_C_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_C is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_C_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_C)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_G_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_G is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_G_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_G)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_T_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_T is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_T_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_T)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_N_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_N is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_N_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_N)); - return pyobj; -} - - -SWIGINTERN int Swig_var_ASCII_SIZE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable ASCII_SIZE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_ASCII_SIZE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_From_int(static_cast< int >(btllib::ASCII_SIZE)); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_TAB is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::SEED_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_A33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable A33R is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_A33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A33R), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_A31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable A31L is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_A31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A31L), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_C33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable C33R is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_C33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::C33R), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_C31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable C31L is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_C31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::C31L), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_G33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable G33R is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_G33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::G33R), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_G31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable G31L is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_G31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_change_seq(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::G31L), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_T33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable T33R is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_T33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedNtHash_change_seq", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + PyObject *retobj = _wrap_SeedNtHash_change_seq__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_SeedNtHash_change_seq__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::T33R), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_T31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable T31L is read-only."); - return 1; +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedNtHash_change_seq'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeedNtHash::change_seq(std::string const &,size_t)\n" + " btllib::SeedNtHash::change_seq(std::string const &)\n"); + return 0; } -SWIGINTERN PyObject *Swig_var_T31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_pos(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::T31L), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_N33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable N33R is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_pos", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_pos" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = ((btllib::SeedNtHash const *)arg1)->get_pos(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_N33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_forward(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::N33R), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_N31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable N31L is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_forward", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_forward" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (bool)((btllib::SeedNtHash const *)arg1)->forward(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_N31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::N31L), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_hash_num" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN int Swig_var_MS_TAB_33R_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable MS_TAB_33R is read-only."); - return 1; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_hash_num_per_seed(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_hash_num_per_seed(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_MS_TAB_33R_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_k(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::MS_TAB_33R), SWIGTYPE_p_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_k" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (unsigned int)((btllib::SeedNtHash const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN int Swig_var_MS_TAB_31L_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable MS_TAB_31L is read-only."); - return 1; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_forward_hash(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_forward_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_forward_hash" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->get_forward_hash(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_MS_TAB_31L_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedNtHash_get_reverse_hash(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::MS_TAB_31L), SWIGTYPE_p_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "SeedNtHash_get_reverse_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedNtHash_get_reverse_hash" "', argument " "1"" of type '" "btllib::SeedNtHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + result = (uint64_t *)((btllib::SeedNtHash const *)arg1)->get_reverse_hash(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + return resultobj; +fail: + return NULL; } -SWIGINTERN int Swig_var_CONVERT_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable CONVERT_TAB is read-only."); - return 1; +SWIGINTERN int _wrap_new_SeedNtHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string arg1 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::SeedNtHash *result = 0 ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_SeedNtHash" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + } + arg2 = ptr; + } + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedNtHash" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SeedNtHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_size_t(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SeedNtHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::SeedNtHash *)new_btllib_SeedNtHash__SWIG_0(SWIG_STD_MOVE(arg1),(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg2,arg3,arg4,SWIG_STD_MOVE(arg5)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedNtHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; } -SWIGINTERN PyObject *Swig_var_CONVERT_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_SeedNtHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string arg1 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedNtHash *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::CONVERT_TAB), SWIGTYPE_p_unsigned_char, 0 ); - return pyobj; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + { + std::string *ptr = (std::string *)0; + int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res) || !ptr) { + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_SeedNtHash" "', argument " "1"" of type '" "std::string""'"); + } + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + { + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *ptr = (std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedNtHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + } + arg2 = ptr; + } + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedNtHash" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SeedNtHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedNtHash *)new_btllib_SeedNtHash__SWIG_0(SWIG_STD_MOVE(arg1),(std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedNtHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; } -SWIGINTERN int Swig_var_RC_CONVERT_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable RC_CONVERT_TAB is read-only."); - return 1; +SWIGINTERN int _wrap_new_SeedNtHash(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedNtHash")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedNtHash", 0, 5, argv))) SWIG_fail; + --argc; + if (argc == 4) { + int retval = _wrap_new_SeedNtHash__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 5) { + int retval = _wrap_new_SeedNtHash__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeedNtHash'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" + " btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n"); + return -1; } -SWIGINTERN PyObject *Swig_var_RC_CONVERT_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_delete_SeedNtHash(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedNtHash *arg1 = (btllib::SeedNtHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::RC_CONVERT_TAB), SWIGTYPE_p_unsigned_char, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "delete_SeedNtHash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedNtHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedNtHash" "', argument " "1"" of type '" "btllib::SeedNtHash *""'"); + } + arg1 = reinterpret_cast< btllib::SeedNtHash * >(argp1); + delete_btllib_SeedNtHash(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; } -SWIGINTERN int Swig_var_DIMER_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable DIMER_TAB is read-only."); - return 1; -} - +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedNtHash) /* defines _wrap_delete_SeedNtHash_destructor_closure */ -SWIGINTERN PyObject *Swig_var_DIMER_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_RandomSequenceGenerator__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::RandomSequenceGenerator::SequenceType arg1 ; + btllib::RandomSequenceGenerator::Masking arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + btllib::RandomSequenceGenerator *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::DIMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator::SequenceType""'"); + } + arg1 = static_cast< btllib::RandomSequenceGenerator::SequenceType >(val1); + ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RandomSequenceGenerator" "', argument " "2"" of type '" "btllib::RandomSequenceGenerator::Masking""'"); + } + arg2 = static_cast< btllib::RandomSequenceGenerator::Masking >(val2); + result = (btllib::RandomSequenceGenerator *)new btllib::RandomSequenceGenerator(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; } -SWIGINTERN int Swig_var_TRIMER_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable TRIMER_TAB is read-only."); - return 1; +SWIGINTERN int _wrap_new_RandomSequenceGenerator__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::RandomSequenceGenerator::SequenceType arg1 ; + int val1 ; + int ecode1 = 0 ; + btllib::RandomSequenceGenerator *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator::SequenceType""'"); + } + arg1 = static_cast< btllib::RandomSequenceGenerator::SequenceType >(val1); + result = (btllib::RandomSequenceGenerator *)new btllib::RandomSequenceGenerator(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; } -SWIGINTERN PyObject *Swig_var_TRIMER_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_RandomSequenceGenerator(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::TRIMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_RandomSequenceGenerator")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_RandomSequenceGenerator", 0, 2, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int retval = _wrap_new_RandomSequenceGenerator__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 2) { + int retval = _wrap_new_RandomSequenceGenerator__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_RandomSequenceGenerator'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::RandomSequenceGenerator::RandomSequenceGenerator(btllib::RandomSequenceGenerator::SequenceType,btllib::RandomSequenceGenerator::Masking)\n" + " btllib::RandomSequenceGenerator::RandomSequenceGenerator(btllib::RandomSequenceGenerator::SequenceType)\n"); + return -1; } -SWIGINTERN int Swig_var_TETRAMER_TAB_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable TETRAMER_TAB is read-only."); - return 1; +SWIGINTERN PyObject *_wrap_RandomSequenceGenerator_generate(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::RandomSequenceGenerator *arg1 = (btllib::RandomSequenceGenerator *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; + std::string result; + + (void)self; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__RandomSequenceGenerator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RandomSequenceGenerator_generate" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator *""'"); + } + arg1 = reinterpret_cast< btllib::RandomSequenceGenerator * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RandomSequenceGenerator_generate" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + result = (arg1)->generate(arg2); + resultobj = SWIG_From_std_string(static_cast< std::string >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_TETRAMER_TAB_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_delete_RandomSequenceGenerator(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::RandomSequenceGenerator *arg1 = (btllib::RandomSequenceGenerator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::TETRAMER_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "delete_RandomSequenceGenerator", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__RandomSequenceGenerator, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RandomSequenceGenerator" "', argument " "1"" of type '" "btllib::RandomSequenceGenerator *""'"); + } + arg1 = reinterpret_cast< btllib::RandomSequenceGenerator * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; } +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_RandomSequenceGenerator) /* defines _wrap_delete_RandomSequenceGenerator_destructor_closure */ + SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint8_t > *result = 0 ; @@ -49403,6 +49403,17 @@ static PyMethodDef SwigMethods[] = { { "endl", _wrap_endl, METH_O, "swig_ptr: endl_cb_ptr"}, { "ends", _wrap_ends, METH_O, "swig_ptr: ends_cb_ptr"}, { "flush", _wrap_flush, METH_O, "swig_ptr: flush_cb_ptr"}, + { "split", _wrap_split, METH_VARARGS, NULL}, + { "join", _wrap_join, METH_VARARGS, NULL}, + { "ltrim", _wrap_ltrim, METH_VARARGS, NULL}, + { "rtrim", _wrap_rtrim, METH_VARARGS, NULL}, + { "trim", _wrap_trim, METH_VARARGS, NULL}, + { "startswith", _wrap_startswith, METH_VARARGS, NULL}, + { "endswith", _wrap_endswith, METH_VARARGS, NULL}, + { "get_basename", _wrap_get_basename, METH_O, NULL}, + { "get_dirname", _wrap_get_dirname, METH_O, NULL}, + { "reverse_complement", _wrap_reverse_complement, METH_O, NULL}, + { "get_reverse_complement", _wrap_get_reverse_complement, METH_O, NULL}, { "srol", _wrap_srol, METH_VARARGS, NULL}, { "sror", _wrap_sror, METH_O, NULL}, { "ntf64", _wrap_ntf64, METH_VARARGS, NULL}, @@ -49418,20 +49429,6 @@ static PyMethodDef SwigMethods[] = { { "sub_hash", _wrap_sub_hash, METH_VARARGS, NULL}, { "ntmsm64", _wrap_ntmsm64, METH_VARARGS, NULL}, { "ntmsm64l", _wrap_ntmsm64l, METH_VARARGS, NULL}, - { "split", _wrap_split, METH_VARARGS, NULL}, - { "join", _wrap_join, METH_VARARGS, NULL}, - { "ltrim", _wrap_ltrim, METH_VARARGS, NULL}, - { "rtrim", _wrap_rtrim, METH_VARARGS, NULL}, - { "trim", _wrap_trim, METH_VARARGS, NULL}, - { "startswith", _wrap_startswith, METH_VARARGS, NULL}, - { "endswith", _wrap_endswith, METH_VARARGS, NULL}, - { "get_basename", _wrap_get_basename, METH_O, NULL}, - { "get_dirname", _wrap_get_dirname, METH_O, NULL}, - { "reverse_complement", _wrap_reverse_complement, METH_O, NULL}, - { "get_reverse_complement", _wrap_get_reverse_complement, METH_O, NULL}, - { "parse_seeds", _wrap_parse_seeds, METH_VARARGS, NULL}, - { "parsed_seeds_to_blocks", _wrap_parsed_seeds_to_blocks, METH_VARARGS, NULL}, - { "check_seeds", _wrap_check_seeds, METH_VARARGS, NULL}, { "get_time", _wrap_get_time, METH_NOARGS, NULL}, { "log_info", _wrap_log_info, METH_O, NULL}, { "log_warning", _wrap_log_warning, METH_O, NULL}, @@ -49442,6 +49439,9 @@ static PyMethodDef SwigMethods[] = { { "get_strerror", _wrap_get_strerror, METH_NOARGS, NULL}, { "check_stream", _wrap_check_stream, METH_VARARGS, NULL}, { "check_file_accessibility", _wrap_check_file_accessibility, METH_O, NULL}, + { "parse_seeds", _wrap_parse_seeds, METH_VARARGS, NULL}, + { "parsed_seeds_to_blocks", _wrap_parsed_seeds_to_blocks, METH_VARARGS, NULL}, + { "check_seeds", _wrap_check_seeds, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; @@ -49480,6 +49480,17 @@ static PyMethodDef SwigMethods_proxydocs[] = { { "endl", _wrap_endl, METH_O, "swig_ptr: endl_cb_ptr"}, { "ends", _wrap_ends, METH_O, "swig_ptr: ends_cb_ptr"}, { "flush", _wrap_flush, METH_O, "swig_ptr: flush_cb_ptr"}, + { "split", _wrap_split, METH_VARARGS, NULL}, + { "join", _wrap_join, METH_VARARGS, NULL}, + { "ltrim", _wrap_ltrim, METH_VARARGS, NULL}, + { "rtrim", _wrap_rtrim, METH_VARARGS, NULL}, + { "trim", _wrap_trim, METH_VARARGS, NULL}, + { "startswith", _wrap_startswith, METH_VARARGS, NULL}, + { "endswith", _wrap_endswith, METH_VARARGS, NULL}, + { "get_basename", _wrap_get_basename, METH_O, NULL}, + { "get_dirname", _wrap_get_dirname, METH_O, NULL}, + { "reverse_complement", _wrap_reverse_complement, METH_O, NULL}, + { "get_reverse_complement", _wrap_get_reverse_complement, METH_O, NULL}, { "srol", _wrap_srol, METH_VARARGS, NULL}, { "sror", _wrap_sror, METH_O, NULL}, { "ntf64", _wrap_ntf64, METH_VARARGS, NULL}, @@ -49495,20 +49506,6 @@ static PyMethodDef SwigMethods_proxydocs[] = { { "sub_hash", _wrap_sub_hash, METH_VARARGS, NULL}, { "ntmsm64", _wrap_ntmsm64, METH_VARARGS, NULL}, { "ntmsm64l", _wrap_ntmsm64l, METH_VARARGS, NULL}, - { "split", _wrap_split, METH_VARARGS, NULL}, - { "join", _wrap_join, METH_VARARGS, NULL}, - { "ltrim", _wrap_ltrim, METH_VARARGS, NULL}, - { "rtrim", _wrap_rtrim, METH_VARARGS, NULL}, - { "trim", _wrap_trim, METH_VARARGS, NULL}, - { "startswith", _wrap_startswith, METH_VARARGS, NULL}, - { "endswith", _wrap_endswith, METH_VARARGS, NULL}, - { "get_basename", _wrap_get_basename, METH_O, NULL}, - { "get_dirname", _wrap_get_dirname, METH_O, NULL}, - { "reverse_complement", _wrap_reverse_complement, METH_O, NULL}, - { "get_reverse_complement", _wrap_get_reverse_complement, METH_O, NULL}, - { "parse_seeds", _wrap_parse_seeds, METH_VARARGS, NULL}, - { "parsed_seeds_to_blocks", _wrap_parsed_seeds_to_blocks, METH_VARARGS, NULL}, - { "check_seeds", _wrap_check_seeds, METH_VARARGS, NULL}, { "get_time", _wrap_get_time, METH_NOARGS, NULL}, { "log_info", _wrap_log_info, METH_O, NULL}, { "log_warning", _wrap_log_warning, METH_O, NULL}, @@ -49519,6 +49516,9 @@ static PyMethodDef SwigMethods_proxydocs[] = { { "get_strerror", _wrap_get_strerror, METH_NOARGS, NULL}, { "check_stream", _wrap_check_stream, METH_VARARGS, NULL}, { "check_file_accessibility", _wrap_check_file_accessibility, METH_O, NULL}, + { "parse_seeds", _wrap_parse_seeds, METH_VARARGS, NULL}, + { "parsed_seeds_to_blocks", _wrap_parsed_seeds_to_blocks, METH_VARARGS, NULL}, + { "check_seeds", _wrap_check_seeds, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; @@ -52312,16 +52312,275 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_uint64_t_t_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_uint64_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_uint64_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_uint64_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_uint64_t_t_type}; + +static SwigPyGetSet VectorMinimizer___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &VectorMinimizer___dict___getset }, + { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ +}; + +SWIGINTERN PyObject * +SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare(PyObject *self, PyObject *other, int op) { + PyObject *result = NULL; + if (!result) { + if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { + result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op); + } else { + result = Py_NotImplemented; + Py_INCREF(result); + } + } + return result; +} + +SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_methods[] = { + { "iterator", _wrap_VectorMinimizer_iterator, METH_NOARGS, "" }, + { "__nonzero__", _wrap_VectorMinimizer___nonzero__, METH_NOARGS, "" }, + { "__bool__", _wrap_VectorMinimizer___bool__, METH_NOARGS, "" }, + { "__len__", _wrap_VectorMinimizer___len__, METH_NOARGS, "" }, + { "__getslice__", _wrap_VectorMinimizer___getslice__, METH_VARARGS, "" }, + { "__setslice__", _wrap_VectorMinimizer___setslice__, METH_VARARGS, "" }, + { "__delslice__", _wrap_VectorMinimizer___delslice__, METH_VARARGS, "" }, + { "__delitem__", _wrap_VectorMinimizer___delitem__, METH_VARARGS, "" }, + { "__getitem__", _wrap_VectorMinimizer___getitem__, METH_VARARGS, "" }, + { "__setitem__", _wrap_VectorMinimizer___setitem__, METH_VARARGS, "" }, + { "pop", _wrap_VectorMinimizer_pop, METH_NOARGS, "" }, + { "append", _wrap_VectorMinimizer_append, METH_O, "" }, + { "empty", _wrap_VectorMinimizer_empty, METH_NOARGS, "" }, + { "size", _wrap_VectorMinimizer_size, METH_NOARGS, "" }, + { "swap", _wrap_VectorMinimizer_swap, METH_O, "" }, + { "begin", _wrap_VectorMinimizer_begin, METH_NOARGS, "" }, + { "end", _wrap_VectorMinimizer_end, METH_NOARGS, "" }, + { "rbegin", _wrap_VectorMinimizer_rbegin, METH_NOARGS, "" }, + { "rend", _wrap_VectorMinimizer_rend, METH_NOARGS, "" }, + { "clear", _wrap_VectorMinimizer_clear, METH_NOARGS, "" }, + { "get_allocator", _wrap_VectorMinimizer_get_allocator, METH_NOARGS, "" }, + { "pop_back", _wrap_VectorMinimizer_pop_back, METH_NOARGS, "" }, + { "resize", _wrap_VectorMinimizer_resize, METH_VARARGS, "" }, + { "erase", _wrap_VectorMinimizer_erase, METH_VARARGS, "" }, + { "push_back", _wrap_VectorMinimizer_push_back, METH_O, "" }, + { "front", _wrap_VectorMinimizer_front, METH_NOARGS, "" }, + { "back", _wrap_VectorMinimizer_back, METH_NOARGS, "" }, + { "assign", _wrap_VectorMinimizer_assign, METH_VARARGS, "" }, + { "insert", _wrap_VectorMinimizer_insert, METH_VARARGS, "" }, + { "reserve", _wrap_VectorMinimizer_reserve, METH_O, "" }, + { "capacity", _wrap_VectorMinimizer_capacity, METH_NOARGS, "" }, + { NULL, NULL, 0, NULL } /* Sentinel */ +}; + +static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type = { + { +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + "btllib.VectorMinimizer", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + _wrap_delete_VectorMinimizer_destructor_closure, /* tp_dealloc */ +#if PY_VERSION_HEX < 0x030800b4 + (printfunc) 0, /* tp_print */ +#else + (Py_ssize_t) 0, /* tp_vectorcall_offset */ +#endif + (getattrfunc) 0, /* tp_getattr */ + (setattrfunc) 0, /* tp_setattr */ +#if PY_VERSION_HEX >= 0x03000000 + 0, /* tp_compare */ +#else + (cmpfunc) 0, /* tp_compare */ +#endif + (reprfunc) 0, /* tp_repr */ + &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_mapping,/* tp_as_mapping */ + SwigPyObject_hash, /* tp_hash */ + (ternaryfunc) 0, /* tp_call */ + (reprfunc) 0, /* tp_str */ + (getattrofunc) 0, /* tp_getattro */ + (setattrofunc) 0, /* tp_setattro */ + &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_buffer,/* tp_as_buffer */ +#if PY_VERSION_HEX >= 0x03000000 + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ +#else + Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ +#endif + "std::vector< btllib::Indexlr::Minimizer >", /* tp_doc */ + (traverseproc) 0, /* tp_traverse */ + (inquiry) 0, /* tp_clear */ + SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare,/* tp_richcompare */ + 0, /* tp_weaklistoffset */ + _wrap_VectorMinimizer_iterator_getiterfunc_closure, /* tp_iter */ + (iternextfunc) 0, /* tp_iternext */ + SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_methods,/* tp_methods */ + 0, /* tp_members */ + SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_getset,/* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + (descrgetfunc) 0, /* tp_descr_get */ + (descrsetfunc) 0, /* tp_descr_set */ + offsetof(SwigPyObject, dict), /* tp_dictoffset */ + _wrap_new_VectorMinimizer, /* tp_init */ + (allocfunc) 0, /* tp_alloc */ + (newfunc) 0, /* tp_new */ + (freefunc) 0, /* tp_free */ + (inquiry) 0, /* tp_is_gc */ + (PyObject *) 0, /* tp_bases */ + (PyObject *) 0, /* tp_mro */ + (PyObject *) 0, /* tp_cache */ + (PyObject *) 0, /* tp_subclasses */ + (PyObject *) 0, /* tp_weaklist */ + (destructor) 0, /* tp_del */ + (int) 0, /* tp_version_tag */ +#if PY_VERSION_HEX >= 0x03040000 + (destructor) 0, /* tp_finalize */ +#endif +#if PY_VERSION_HEX >= 0x03080000 + (vectorcallfunc) 0, /* tp_vectorcall */ +#endif +#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) + 0, /* tp_print */ +#endif +#ifdef COUNT_ALLOCS + (Py_ssize_t) 0, /* tp_allocs */ + (Py_ssize_t) 0, /* tp_frees */ + (Py_ssize_t) 0, /* tp_maxalloc */ + 0, /* tp_prev */ + 0, /* tp_next */ +#endif + }, +#if PY_VERSION_HEX >= 0x03050000 + { + (unaryfunc) 0, /* am_await */ + (unaryfunc) 0, /* am_aiter */ + (unaryfunc) 0, /* am_anext */ +# if PY_VERSION_HEX >= 0x030a0000 + (sendfunc) 0, /* am_send */ +# endif + }, +#endif + { + (binaryfunc) 0, /* nb_add */ + (binaryfunc) 0, /* nb_subtract */ + (binaryfunc) 0, /* nb_multiply */ +#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 */ + _wrap_VectorMinimizer___nonzero___inquiry_closure, /* nb_nonzero */ + (unaryfunc) 0, /* nb_invert */ + (binaryfunc) 0, /* nb_lshift */ + (binaryfunc) 0, /* nb_rshift */ + (binaryfunc) 0, /* nb_and */ + (binaryfunc) 0, /* nb_xor */ + (binaryfunc) 0, /* nb_or */ +#if PY_VERSION_HEX < 0x03000000 + (coercion) 0, /* nb_coerce */ +#endif + (unaryfunc) 0, /* nb_int */ +#if PY_VERSION_HEX >= 0x03000000 + (void *) 0, /* nb_reserved */ +#else + (unaryfunc) 0, /* nb_long */ +#endif + (unaryfunc) 0, /* nb_float */ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc) 0, /* nb_oct */ + (unaryfunc) 0, /* nb_hex */ +#endif + (binaryfunc) 0, /* nb_inplace_add */ + (binaryfunc) 0, /* nb_inplace_subtract */ + (binaryfunc) 0, /* nb_inplace_multiply */ +#if PY_VERSION_HEX < 0x03000000 + (binaryfunc) 0, /* nb_inplace_divide */ +#endif + (binaryfunc) 0, /* nb_inplace_remainder */ + (ternaryfunc) 0, /* nb_inplace_power */ + (binaryfunc) 0, /* nb_inplace_lshift */ + (binaryfunc) 0, /* nb_inplace_rshift */ + (binaryfunc) 0, /* nb_inplace_and */ + (binaryfunc) 0, /* nb_inplace_xor */ + (binaryfunc) 0, /* nb_inplace_or */ + (binaryfunc) 0, /* nb_floor_divide */ + (binaryfunc) 0, /* nb_true_divide */ + (binaryfunc) 0, /* nb_inplace_floor_divide */ + (binaryfunc) 0, /* nb_inplace_true_divide */ + (unaryfunc) 0, /* nb_index */ +#if PY_VERSION_HEX >= 0x03050000 + (binaryfunc) 0, /* nb_matrix_multiply */ + (binaryfunc) 0, /* nb_inplace_matrix_multiply */ +#endif + }, + { + (lenfunc) 0, /* mp_length */ + _wrap_VectorMinimizer___getitem___binaryfunc_closure, /* mp_subscript */ + _wrap_VectorMinimizer___setitem___objobjargproc_closure, /* mp_ass_subscript */ + }, + { + _wrap_VectorMinimizer___len___lenfunc_closure, /* sq_length */ + (binaryfunc) 0, /* sq_concat */ + (ssizeargfunc) 0, /* sq_repeat */ + (ssizeargfunc) 0, /* sq_item */ +#if PY_VERSION_HEX >= 0x03000000 + (void *) 0, /* was_sq_slice */ +#else + (ssizessizeargfunc) 0, /* sq_slice */ +#endif + (ssizeobjargproc) 0, /* sq_ass_item */ +#if PY_VERSION_HEX >= 0x03000000 + (void *) 0, /* was_sq_ass_slice */ +#else + (ssizessizeobjargproc) 0, /* sq_ass_slice */ +#endif + (objobjproc) 0, /* sq_contains */ + (binaryfunc) 0, /* sq_inplace_concat */ + (ssizeargfunc) 0, /* sq_inplace_repeat */ + }, + { +#if PY_VERSION_HEX < 0x03000000 + (readbufferproc) 0, /* bf_getreadbuffer */ + (writebufferproc) 0, /* bf_getwritebuffer */ + (segcountproc) 0, /* bf_getsegcount */ + (charbufferproc) 0, /* bf_getcharbuffer */ +#endif + (getbufferproc) 0, /* bf_getbuffer */ + (releasebufferproc) 0, /* bf_releasebuffer */ + }, + (PyObject *) 0, /* ht_name */ + (PyObject *) 0, /* ht_slots */ +#if PY_VERSION_HEX >= 0x03030000 + (PyObject *) 0, /* ht_qualname */ + 0, /* ht_cached_keys */ +#endif +#if PY_VERSION_HEX >= 0x03090000 + (PyObject *) 0, /* ht_module */ +#endif +#if PY_VERSION_HEX >= 0x030b0000 + (char *) 0, /* _ht_tpname */ + { + (PyObject *) 0, /* getitem */ + } +#endif +}; + +SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type}; -static SwigPyGetSet VectorMinimizer___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &VectorMinimizer___dict___getset }, +static SwigPyGetSet VectorSpacedSeed___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &VectorSpacedSeed___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -52334,42 +52593,42 @@ SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare(PyObject *s return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_methods[] = { - { "iterator", _wrap_VectorMinimizer_iterator, METH_NOARGS, "" }, - { "__nonzero__", _wrap_VectorMinimizer___nonzero__, METH_NOARGS, "" }, - { "__bool__", _wrap_VectorMinimizer___bool__, METH_NOARGS, "" }, - { "__len__", _wrap_VectorMinimizer___len__, METH_NOARGS, "" }, - { "__getslice__", _wrap_VectorMinimizer___getslice__, METH_VARARGS, "" }, - { "__setslice__", _wrap_VectorMinimizer___setslice__, METH_VARARGS, "" }, - { "__delslice__", _wrap_VectorMinimizer___delslice__, METH_VARARGS, "" }, - { "__delitem__", _wrap_VectorMinimizer___delitem__, METH_VARARGS, "" }, - { "__getitem__", _wrap_VectorMinimizer___getitem__, METH_VARARGS, "" }, - { "__setitem__", _wrap_VectorMinimizer___setitem__, METH_VARARGS, "" }, - { "pop", _wrap_VectorMinimizer_pop, METH_NOARGS, "" }, - { "append", _wrap_VectorMinimizer_append, METH_O, "" }, - { "empty", _wrap_VectorMinimizer_empty, METH_NOARGS, "" }, - { "size", _wrap_VectorMinimizer_size, METH_NOARGS, "" }, - { "swap", _wrap_VectorMinimizer_swap, METH_O, "" }, - { "begin", _wrap_VectorMinimizer_begin, METH_NOARGS, "" }, - { "end", _wrap_VectorMinimizer_end, METH_NOARGS, "" }, - { "rbegin", _wrap_VectorMinimizer_rbegin, METH_NOARGS, "" }, - { "rend", _wrap_VectorMinimizer_rend, METH_NOARGS, "" }, - { "clear", _wrap_VectorMinimizer_clear, METH_NOARGS, "" }, - { "get_allocator", _wrap_VectorMinimizer_get_allocator, METH_NOARGS, "" }, - { "pop_back", _wrap_VectorMinimizer_pop_back, METH_NOARGS, "" }, - { "resize", _wrap_VectorMinimizer_resize, METH_VARARGS, "" }, - { "erase", _wrap_VectorMinimizer_erase, METH_VARARGS, "" }, - { "push_back", _wrap_VectorMinimizer_push_back, METH_O, "" }, - { "front", _wrap_VectorMinimizer_front, METH_NOARGS, "" }, - { "back", _wrap_VectorMinimizer_back, METH_NOARGS, "" }, - { "assign", _wrap_VectorMinimizer_assign, METH_VARARGS, "" }, - { "insert", _wrap_VectorMinimizer_insert, METH_VARARGS, "" }, - { "reserve", _wrap_VectorMinimizer_reserve, METH_O, "" }, - { "capacity", _wrap_VectorMinimizer_capacity, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_methods[] = { + { "iterator", _wrap_VectorSpacedSeed_iterator, METH_NOARGS, "" }, + { "__nonzero__", _wrap_VectorSpacedSeed___nonzero__, METH_NOARGS, "" }, + { "__bool__", _wrap_VectorSpacedSeed___bool__, METH_NOARGS, "" }, + { "__len__", _wrap_VectorSpacedSeed___len__, METH_NOARGS, "" }, + { "__getslice__", _wrap_VectorSpacedSeed___getslice__, METH_VARARGS, "" }, + { "__setslice__", _wrap_VectorSpacedSeed___setslice__, METH_VARARGS, "" }, + { "__delslice__", _wrap_VectorSpacedSeed___delslice__, METH_VARARGS, "" }, + { "__delitem__", _wrap_VectorSpacedSeed___delitem__, METH_VARARGS, "" }, + { "__getitem__", _wrap_VectorSpacedSeed___getitem__, METH_VARARGS, "" }, + { "__setitem__", _wrap_VectorSpacedSeed___setitem__, METH_VARARGS, "" }, + { "pop", _wrap_VectorSpacedSeed_pop, METH_NOARGS, "" }, + { "append", _wrap_VectorSpacedSeed_append, METH_O, "" }, + { "empty", _wrap_VectorSpacedSeed_empty, METH_NOARGS, "" }, + { "size", _wrap_VectorSpacedSeed_size, METH_NOARGS, "" }, + { "swap", _wrap_VectorSpacedSeed_swap, METH_O, "" }, + { "begin", _wrap_VectorSpacedSeed_begin, METH_NOARGS, "" }, + { "end", _wrap_VectorSpacedSeed_end, METH_NOARGS, "" }, + { "rbegin", _wrap_VectorSpacedSeed_rbegin, METH_NOARGS, "" }, + { "rend", _wrap_VectorSpacedSeed_rend, METH_NOARGS, "" }, + { "clear", _wrap_VectorSpacedSeed_clear, METH_NOARGS, "" }, + { "get_allocator", _wrap_VectorSpacedSeed_get_allocator, METH_NOARGS, "" }, + { "pop_back", _wrap_VectorSpacedSeed_pop_back, METH_NOARGS, "" }, + { "resize", _wrap_VectorSpacedSeed_resize, METH_VARARGS, "" }, + { "erase", _wrap_VectorSpacedSeed_erase, METH_VARARGS, "" }, + { "push_back", _wrap_VectorSpacedSeed_push_back, METH_O, "" }, + { "front", _wrap_VectorSpacedSeed_front, METH_NOARGS, "" }, + { "back", _wrap_VectorSpacedSeed_back, METH_NOARGS, "" }, + { "assign", _wrap_VectorSpacedSeed_assign, METH_VARARGS, "" }, + { "insert", _wrap_VectorSpacedSeed_insert, METH_VARARGS, "" }, + { "reserve", _wrap_VectorSpacedSeed_reserve, METH_O, "" }, + { "capacity", _wrap_VectorSpacedSeed_capacity, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type = { +static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -52377,10 +52636,10 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.VectorMinimizer", /* tp_name */ + "btllib.VectorSpacedSeed", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_VectorMinimizer_destructor_closure, /* tp_dealloc */ + _wrap_delete_VectorSpacedSeed_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -52394,36 +52653,36 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_mapping,/* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_buffer,/* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "std::vector< btllib::Indexlr::Minimizer >", /* tp_doc */ + "std::vector< btllib::SpacedSeed >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - _wrap_VectorMinimizer_iterator_getiterfunc_closure, /* tp_iter */ + _wrap_VectorSpacedSeed_iterator_getiterfunc_closure, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_methods,/* tp_methods */ + SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_getset,/* tp_getset */ + SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_VectorMinimizer, /* tp_init */ + _wrap_new_VectorSpacedSeed, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -52475,7 +52734,7 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - _wrap_VectorMinimizer___nonzero___inquiry_closure, /* nb_nonzero */ + _wrap_VectorSpacedSeed___nonzero___inquiry_closure, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -52521,11 +52780,11 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t }, { (lenfunc) 0, /* mp_length */ - _wrap_VectorMinimizer___getitem___binaryfunc_closure, /* mp_subscript */ - _wrap_VectorMinimizer___setitem___objobjargproc_closure, /* mp_ass_subscript */ + _wrap_VectorSpacedSeed___getitem___binaryfunc_closure, /* mp_subscript */ + _wrap_VectorSpacedSeed___setitem___objobjargproc_closure, /* mp_ass_subscript */ }, { - _wrap_VectorMinimizer___len___lenfunc_closure, /* sq_length */ + _wrap_VectorSpacedSeed___len___lenfunc_closure, /* sq_length */ (binaryfunc) 0, /* sq_concat */ (ssizeargfunc) 0, /* sq_repeat */ (ssizeargfunc) 0, /* sq_item */ @@ -52571,16 +52830,16 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type}; -static SwigPyGetSet VectorSpacedSeed___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &VectorSpacedSeed___dict___getset }, +static SwigPyGetSet Indexlr___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Indexlr___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Indexlr_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -52593,42 +52852,24 @@ SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_richcompare(PyObject *self, PyO return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_methods[] = { - { "iterator", _wrap_VectorSpacedSeed_iterator, METH_NOARGS, "" }, - { "__nonzero__", _wrap_VectorSpacedSeed___nonzero__, METH_NOARGS, "" }, - { "__bool__", _wrap_VectorSpacedSeed___bool__, METH_NOARGS, "" }, - { "__len__", _wrap_VectorSpacedSeed___len__, METH_NOARGS, "" }, - { "__getslice__", _wrap_VectorSpacedSeed___getslice__, METH_VARARGS, "" }, - { "__setslice__", _wrap_VectorSpacedSeed___setslice__, METH_VARARGS, "" }, - { "__delslice__", _wrap_VectorSpacedSeed___delslice__, METH_VARARGS, "" }, - { "__delitem__", _wrap_VectorSpacedSeed___delitem__, METH_VARARGS, "" }, - { "__getitem__", _wrap_VectorSpacedSeed___getitem__, METH_VARARGS, "" }, - { "__setitem__", _wrap_VectorSpacedSeed___setitem__, METH_VARARGS, "" }, - { "pop", _wrap_VectorSpacedSeed_pop, METH_NOARGS, "" }, - { "append", _wrap_VectorSpacedSeed_append, METH_O, "" }, - { "empty", _wrap_VectorSpacedSeed_empty, METH_NOARGS, "" }, - { "size", _wrap_VectorSpacedSeed_size, METH_NOARGS, "" }, - { "swap", _wrap_VectorSpacedSeed_swap, METH_O, "" }, - { "begin", _wrap_VectorSpacedSeed_begin, METH_NOARGS, "" }, - { "end", _wrap_VectorSpacedSeed_end, METH_NOARGS, "" }, - { "rbegin", _wrap_VectorSpacedSeed_rbegin, METH_NOARGS, "" }, - { "rend", _wrap_VectorSpacedSeed_rend, METH_NOARGS, "" }, - { "clear", _wrap_VectorSpacedSeed_clear, METH_NOARGS, "" }, - { "get_allocator", _wrap_VectorSpacedSeed_get_allocator, METH_NOARGS, "" }, - { "pop_back", _wrap_VectorSpacedSeed_pop_back, METH_NOARGS, "" }, - { "resize", _wrap_VectorSpacedSeed_resize, METH_VARARGS, "" }, - { "erase", _wrap_VectorSpacedSeed_erase, METH_VARARGS, "" }, - { "push_back", _wrap_VectorSpacedSeed_push_back, METH_O, "" }, - { "front", _wrap_VectorSpacedSeed_front, METH_NOARGS, "" }, - { "back", _wrap_VectorSpacedSeed_back, METH_NOARGS, "" }, - { "assign", _wrap_VectorSpacedSeed_assign, METH_VARARGS, "" }, - { "insert", _wrap_VectorSpacedSeed_insert, METH_VARARGS, "" }, - { "reserve", _wrap_VectorSpacedSeed_reserve, METH_O, "" }, - { "capacity", _wrap_VectorSpacedSeed_capacity, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr_methods[] = { + { "output_id", _wrap_Indexlr_output_id, METH_NOARGS, "" }, + { "output_bx", _wrap_Indexlr_output_bx, METH_NOARGS, "" }, + { "output_seq", _wrap_Indexlr_output_seq, METH_NOARGS, "" }, + { "output_qual", _wrap_Indexlr_output_qual, METH_NOARGS, "" }, + { "filter_in", _wrap_Indexlr_filter_in, METH_NOARGS, "" }, + { "filter_out", _wrap_Indexlr_filter_out, METH_NOARGS, "" }, + { "short_mode", _wrap_Indexlr_short_mode, METH_NOARGS, "" }, + { "long_mode", _wrap_Indexlr_long_mode, METH_NOARGS, "" }, + { "read", _wrap_Indexlr_read, METH_NOARGS, "" }, + { "close", _wrap_Indexlr_close, METH_NOARGS, "" }, + { "__iter__", _wrap_Indexlr___iter__, METH_NOARGS, "" }, + { "__enter__", _wrap_Indexlr___enter__, METH_NOARGS, "" }, + { "__exit__", _wrap_Indexlr___exit__, METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -52636,10 +52877,10 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.VectorSpacedSeed", /* tp_name */ + "btllib.Indexlr", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_VectorSpacedSeed_destructor_closure, /* tp_dealloc */ + _wrap_delete_Indexlr_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -52653,36 +52894,36 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__Indexlr_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Indexlr_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Indexlr_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__Indexlr_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "std::vector< btllib::SpacedSeed >", /* tp_doc */ + "btllib::Indexlr", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Indexlr_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - _wrap_VectorSpacedSeed_iterator_getiterfunc_closure, /* tp_iter */ + _wrap_Indexlr___iter___getiterfunc_closure, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Indexlr_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Indexlr_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_VectorSpacedSeed, /* tp_init */ + _wrap_new_Indexlr, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -52734,7 +52975,7 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - _wrap_VectorSpacedSeed___nonzero___inquiry_closure, /* nb_nonzero */ + (inquiry) 0, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -52780,11 +53021,11 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = }, { (lenfunc) 0, /* mp_length */ - _wrap_VectorSpacedSeed___getitem___binaryfunc_closure, /* mp_subscript */ - _wrap_VectorSpacedSeed___setitem___objobjargproc_closure, /* mp_ass_subscript */ + (binaryfunc) 0, /* mp_subscript */ + (objobjargproc) 0, /* mp_ass_subscript */ }, { - _wrap_VectorSpacedSeed___len___lenfunc_closure, /* sq_length */ + (lenfunc) 0, /* sq_length */ (binaryfunc) 0, /* sq_concat */ (ssizeargfunc) 0, /* sq_repeat */ (ssizeargfunc) 0, /* sq_item */ @@ -52830,16 +53071,16 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type = #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr_type}; -static SwigPyGetSet SeqWriter___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqWriter_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqWriter___dict___getset }, +static SwigPyGetSet IndexlrFlag___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Flag_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrFlag___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeqWriter_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Indexlr__Flag_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -52852,15 +53093,11 @@ SwigPyBuiltin__btllib__SeqWriter_richcompare(PyObject *self, PyObject *other, in return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqWriter_methods[] = { - { "close", _wrap_SeqWriter_close, METH_NOARGS, "" }, - { "write", _wrap_SeqWriter_write, METH_VARARGS, "" }, - { "__enter__", _wrap_SeqWriter___enter__, METH_NOARGS, "" }, - { "__exit__", _wrap_SeqWriter___exit__, METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Flag_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -52868,10 +53105,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqWriter", /* tp_name */ + "btllib.IndexlrFlag", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqWriter_destructor_closure,/* tp_dealloc */ + _wrap_delete_IndexlrFlag_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -52885,36 +53122,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeqWriter_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeqWriter_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeqWriter_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__SeqWriter_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::SeqWriter", /* tp_doc */ + "btllib::Indexlr::Flag", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqWriter_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Indexlr__Flag_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqWriter_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Indexlr__Flag_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqWriter_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Indexlr__Flag_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_SeqWriter, /* tp_init */ + _wrap_new_IndexlrFlag, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -53062,28 +53299,28 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqWriter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqWriter_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Flag_type}; -static SwigPyGetSet Datatype_read_cmds_getset = { _wrap_Datatype_read_cmds_get, _wrap_Datatype_read_cmds_set }; -static SwigPyGetSet Datatype___dict___getset = { SwigPyObject_get___dict__, 0 }; -static SwigPyGetSet Datatype_write_cmds_getset = { _wrap_Datatype_write_cmds_get, _wrap_Datatype_write_cmds_set }; -static SwigPyGetSet Datatype_append_cmds_getset = { _wrap_Datatype_append_cmds_get, _wrap_Datatype_append_cmds_set }; -static SwigPyGetSet Datatype_cmds_check_existence_getset = { _wrap_Datatype_cmds_check_existence_get, _wrap_Datatype_cmds_check_existence_set }; -static SwigPyGetSet Datatype_suffixes_getset = { _wrap_Datatype_suffixes_get, _wrap_Datatype_suffixes_set }; -static SwigPyGetSet Datatype_prefixes_getset = { _wrap_Datatype_prefixes_get, _wrap_Datatype_prefixes_set }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Datatype_getset[] = { - { (char *)"read_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_read_cmds_getset }, - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Datatype___dict___getset }, - { (char *)"write_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_write_cmds_getset }, - { (char *)"append_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_append_cmds_getset }, - { (char *)"cmds_check_existence", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_cmds_check_existence_getset }, - { (char *)"suffixes", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_suffixes_getset }, - { (char *)"prefixes", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_prefixes_getset }, +static SwigPyGetSet Minimizer___dict___getset = { SwigPyObject_get___dict__, 0 }; +static SwigPyGetSet Minimizer_min_hash_getset = { _wrap_Minimizer_min_hash_get, _wrap_Minimizer_min_hash_set }; +static SwigPyGetSet Minimizer_seq_getset = { _wrap_Minimizer_seq_get, _wrap_Minimizer_seq_set }; +static SwigPyGetSet Minimizer_out_hash_getset = { _wrap_Minimizer_out_hash_get, _wrap_Minimizer_out_hash_set }; +static SwigPyGetSet Minimizer_forward_getset = { _wrap_Minimizer_forward_get, _wrap_Minimizer_forward_set }; +static SwigPyGetSet Minimizer_pos_getset = { _wrap_Minimizer_pos_get, _wrap_Minimizer_pos_set }; +static SwigPyGetSet Minimizer_qual_getset = { _wrap_Minimizer_qual_get, _wrap_Minimizer_qual_set }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Minimizer_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Minimizer___dict___getset }, + { (char *)"min_hash", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_min_hash_getset }, + { (char *)"seq", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_seq_getset }, + { (char *)"out_hash", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_out_hash_getset }, + { (char *)"forward", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_forward_getset }, + { (char *)"pos", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_pos_getset }, + { (char *)"qual", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_qual_getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Datatype_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -53096,11 +53333,11 @@ SwigPyBuiltin__btllib__Datatype_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Datatype_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Minimizer_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -53108,10 +53345,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Datatype", /* tp_name */ + "btllib.Minimizer", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Datatype_destructor_closure, /* tp_dealloc */ + _wrap_delete_Minimizer_destructor_closure,/* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -53125,36 +53362,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Datatype_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Datatype_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Datatype_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Datatype_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Datatype", /* tp_doc */ + "btllib::Indexlr::Minimizer", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Datatype_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Datatype_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Indexlr__Minimizer_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Datatype_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Indexlr__Minimizer_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_Datatype, /* tp_init */ + _wrap_new_Minimizer, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -53302,16 +53539,26 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Datatype_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Datatype_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Minimizer_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Minimizer_type}; -static SwigPyGetSet DataSource___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__DataSource_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &DataSource___dict___getset }, +static SwigPyGetSet IndexlrRecord_num_getset = { _wrap_IndexlrRecord_num_get, _wrap_IndexlrRecord_num_set }; +static SwigPyGetSet IndexlrRecord___dict___getset = { SwigPyObject_get___dict__, 0 }; +static SwigPyGetSet IndexlrRecord_minimizers_getset = { _wrap_IndexlrRecord_minimizers_get, _wrap_IndexlrRecord_minimizers_set }; +static SwigPyGetSet IndexlrRecord_readlen_getset = { _wrap_IndexlrRecord_readlen_get, _wrap_IndexlrRecord_readlen_set }; +static SwigPyGetSet IndexlrRecord_id_getset = { _wrap_IndexlrRecord_id_get, _wrap_IndexlrRecord_id_set }; +static SwigPyGetSet IndexlrRecord_barcode_getset = { _wrap_IndexlrRecord_barcode_get, _wrap_IndexlrRecord_barcode_set }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Record_getset[] = { + { (char *)"num", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_num_getset }, + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrRecord___dict___getset }, + { (char *)"minimizers", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_minimizers_getset }, + { (char *)"readlen", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_readlen_getset }, + { (char *)"id", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_id_getset }, + { (char *)"barcode", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_barcode_getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__DataSource_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Indexlr__Record_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -53324,11 +53571,12 @@ SwigPyBuiltin__btllib__DataSource_richcompare(PyObject *self, PyObject *other, i return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSource_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Record_methods[] = { + { "__nonzero__", _wrap_IndexlrRecord___nonzero__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -53336,10 +53584,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.DataSource", /* tp_name */ + "btllib.IndexlrRecord", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_DataSource_destructor_closure, /* tp_dealloc */ + _wrap_delete_IndexlrRecord_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -53353,36 +53601,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__DataSource_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__DataSource_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__DataSource_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Indexlr__Record_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Indexlr__Record_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Indexlr__Record_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__DataSource_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Indexlr__Record_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::DataSource", /* tp_doc */ + "btllib::Indexlr::Record", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__DataSource_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Indexlr__Record_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__DataSource_methods,/* tp_methods */ + SwigPyBuiltin__btllib__Indexlr__Record_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__DataSource_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Indexlr__Record_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_DataSource, /* tp_init */ + _wrap_new_IndexlrRecord, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -53434,7 +53682,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - (inquiry) 0, /* nb_nonzero */ + _wrap_IndexlrRecord___nonzero___inquiry_closure, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -53530,16 +53778,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__DataSource_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSource_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_type}; -static SwigPyGetSet DataSink___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__DataSink_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &DataSink___dict___getset }, +static SwigPyGetSet IndexlrRecordIterator___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__RecordIterator_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrRecordIterator___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__DataSink_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -53552,11 +53800,12 @@ SwigPyBuiltin__btllib__DataSink_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSink_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__RecordIterator_methods[] = { + { "__next__", _wrap_IndexlrRecordIterator___next__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -53564,10 +53813,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.DataSink", /* tp_name */ + "btllib.IndexlrRecordIterator", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_DataSink_destructor_closure, /* tp_dealloc */ + _wrap_delete_IndexlrRecordIterator_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -53581,36 +53830,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__DataSink_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__DataSink_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__DataSink_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_mapping,/* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__DataSink_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_buffer,/* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::DataSink", /* tp_doc */ + "btllib::Indexlr::RecordIterator", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__DataSink_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ - (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__DataSink_methods, /* tp_methods */ + _wrap_IndexlrRecordIterator___next___iternextfunc_closure, /* tp_iternext */ + SwigPyBuiltin__btllib__Indexlr__RecordIterator_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__DataSink_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Indexlr__RecordIterator_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_DataSink, /* tp_init */ + SwigPyBuiltin_BadInit, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -53758,7 +54007,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__DataSink_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSink_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__RecordIterator_type}; static SwigPyGetSet BloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__BloomFilter_getset[] = { @@ -54952,255 +55201,26 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Flag_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Flag_type}; - -static SwigPyGetSet SeqReaderRecord_num_getset = { _wrap_SeqReaderRecord_num_get, _wrap_SeqReaderRecord_num_set }; -static SwigPyGetSet SeqReaderRecord___dict___getset = { SwigPyObject_get___dict__, 0 }; -static SwigPyGetSet SeqReaderRecord_comment_getset = { _wrap_SeqReaderRecord_comment_get, _wrap_SeqReaderRecord_comment_set }; -static SwigPyGetSet SeqReaderRecord_seq_getset = { _wrap_SeqReaderRecord_seq_get, _wrap_SeqReaderRecord_seq_set }; -static SwigPyGetSet SeqReaderRecord_id_getset = { _wrap_SeqReaderRecord_id_get, _wrap_SeqReaderRecord_id_set }; -static SwigPyGetSet SeqReaderRecord_qual_getset = { _wrap_SeqReaderRecord_qual_get, _wrap_SeqReaderRecord_qual_set }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__Record_getset[] = { - { (char *)"num", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_num_getset }, - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderRecord___dict___getset }, - { (char *)"comment", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_comment_getset }, - { (char *)"seq", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_seq_getset }, - { (char *)"id", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_id_getset }, - { (char *)"qual", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_qual_getset }, - { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ -}; - -SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeqReader__Record_richcompare(PyObject *self, PyObject *other, int op) { - PyObject *result = NULL; - if (!result) { - if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { - result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op); - } else { - result = Py_NotImplemented; - Py_INCREF(result); - } - } - return result; -} - -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Record_methods[] = { - { "__nonzero__", _wrap_SeqReaderRecord___nonzero__, METH_NOARGS, "" }, - { NULL, NULL, 0, NULL } /* Sentinel */ -}; - -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { - { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - "btllib.SeqReaderRecord", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - _wrap_delete_SeqReaderRecord_destructor_closure, /* tp_dealloc */ -#if PY_VERSION_HEX < 0x030800b4 - (printfunc) 0, /* tp_print */ -#else - (Py_ssize_t) 0, /* tp_vectorcall_offset */ -#endif - (getattrfunc) 0, /* tp_getattr */ - (setattrfunc) 0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_compare */ -#else - (cmpfunc) 0, /* tp_compare */ -#endif - (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeqReader__Record_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeqReader__Record_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeqReader__Record_type.as_mapping, /* tp_as_mapping */ - SwigPyObject_hash, /* tp_hash */ - (ternaryfunc) 0, /* tp_call */ - (reprfunc) 0, /* tp_str */ - (getattrofunc) 0, /* tp_getattro */ - (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__SeqReader__Record_type.as_buffer, /* tp_as_buffer */ -#if PY_VERSION_HEX >= 0x03000000 - Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ -#else - Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ -#endif - "btllib::SeqReader::Record", /* tp_doc */ - (traverseproc) 0, /* tp_traverse */ - (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader__Record_richcompare, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - (getiterfunc) 0, /* tp_iter */ - (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqReader__Record_methods, /* tp_methods */ - 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqReader__Record_getset, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - (descrgetfunc) 0, /* tp_descr_get */ - (descrsetfunc) 0, /* tp_descr_set */ - offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_SeqReaderRecord, /* tp_init */ - (allocfunc) 0, /* tp_alloc */ - (newfunc) 0, /* tp_new */ - (freefunc) 0, /* tp_free */ - (inquiry) 0, /* tp_is_gc */ - (PyObject *) 0, /* tp_bases */ - (PyObject *) 0, /* tp_mro */ - (PyObject *) 0, /* tp_cache */ - (PyObject *) 0, /* tp_subclasses */ - (PyObject *) 0, /* tp_weaklist */ - (destructor) 0, /* tp_del */ - (int) 0, /* tp_version_tag */ -#if PY_VERSION_HEX >= 0x03040000 - (destructor) 0, /* tp_finalize */ -#endif -#if PY_VERSION_HEX >= 0x03080000 - (vectorcallfunc) 0, /* tp_vectorcall */ -#endif -#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000) - 0, /* tp_print */ -#endif -#ifdef COUNT_ALLOCS - (Py_ssize_t) 0, /* tp_allocs */ - (Py_ssize_t) 0, /* tp_frees */ - (Py_ssize_t) 0, /* tp_maxalloc */ - 0, /* tp_prev */ - 0, /* tp_next */ -#endif - }, -#if PY_VERSION_HEX >= 0x03050000 - { - (unaryfunc) 0, /* am_await */ - (unaryfunc) 0, /* am_aiter */ - (unaryfunc) 0, /* am_anext */ -# if PY_VERSION_HEX >= 0x030a0000 - (sendfunc) 0, /* am_send */ -# endif - }, -#endif - { - (binaryfunc) 0, /* nb_add */ - (binaryfunc) 0, /* nb_subtract */ - (binaryfunc) 0, /* nb_multiply */ -#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 */ - _wrap_SeqReaderRecord___nonzero___inquiry_closure, /* nb_nonzero */ - (unaryfunc) 0, /* nb_invert */ - (binaryfunc) 0, /* nb_lshift */ - (binaryfunc) 0, /* nb_rshift */ - (binaryfunc) 0, /* nb_and */ - (binaryfunc) 0, /* nb_xor */ - (binaryfunc) 0, /* nb_or */ -#if PY_VERSION_HEX < 0x03000000 - (coercion) 0, /* nb_coerce */ -#endif - (unaryfunc) 0, /* nb_int */ -#if PY_VERSION_HEX >= 0x03000000 - (void *) 0, /* nb_reserved */ -#else - (unaryfunc) 0, /* nb_long */ -#endif - (unaryfunc) 0, /* nb_float */ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc) 0, /* nb_oct */ - (unaryfunc) 0, /* nb_hex */ -#endif - (binaryfunc) 0, /* nb_inplace_add */ - (binaryfunc) 0, /* nb_inplace_subtract */ - (binaryfunc) 0, /* nb_inplace_multiply */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc) 0, /* nb_inplace_divide */ -#endif - (binaryfunc) 0, /* nb_inplace_remainder */ - (ternaryfunc) 0, /* nb_inplace_power */ - (binaryfunc) 0, /* nb_inplace_lshift */ - (binaryfunc) 0, /* nb_inplace_rshift */ - (binaryfunc) 0, /* nb_inplace_and */ - (binaryfunc) 0, /* nb_inplace_xor */ - (binaryfunc) 0, /* nb_inplace_or */ - (binaryfunc) 0, /* nb_floor_divide */ - (binaryfunc) 0, /* nb_true_divide */ - (binaryfunc) 0, /* nb_inplace_floor_divide */ - (binaryfunc) 0, /* nb_inplace_true_divide */ - (unaryfunc) 0, /* nb_index */ -#if PY_VERSION_HEX >= 0x03050000 - (binaryfunc) 0, /* nb_matrix_multiply */ - (binaryfunc) 0, /* nb_inplace_matrix_multiply */ -#endif - }, - { - (lenfunc) 0, /* mp_length */ - (binaryfunc) 0, /* mp_subscript */ - (objobjargproc) 0, /* mp_ass_subscript */ - }, - { - (lenfunc) 0, /* sq_length */ - (binaryfunc) 0, /* sq_concat */ - (ssizeargfunc) 0, /* sq_repeat */ - (ssizeargfunc) 0, /* sq_item */ -#if PY_VERSION_HEX >= 0x03000000 - (void *) 0, /* was_sq_slice */ -#else - (ssizessizeargfunc) 0, /* sq_slice */ -#endif - (ssizeobjargproc) 0, /* sq_ass_item */ -#if PY_VERSION_HEX >= 0x03000000 - (void *) 0, /* was_sq_ass_slice */ -#else - (ssizessizeobjargproc) 0, /* sq_ass_slice */ -#endif - (objobjproc) 0, /* sq_contains */ - (binaryfunc) 0, /* sq_inplace_concat */ - (ssizeargfunc) 0, /* sq_inplace_repeat */ - }, - { -#if PY_VERSION_HEX < 0x03000000 - (readbufferproc) 0, /* bf_getreadbuffer */ - (writebufferproc) 0, /* bf_getwritebuffer */ - (segcountproc) 0, /* bf_getsegcount */ - (charbufferproc) 0, /* bf_getcharbuffer */ -#endif - (getbufferproc) 0, /* bf_getbuffer */ - (releasebufferproc) 0, /* bf_releasebuffer */ - }, - (PyObject *) 0, /* ht_name */ - (PyObject *) 0, /* ht_slots */ -#if PY_VERSION_HEX >= 0x03030000 - (PyObject *) 0, /* ht_qualname */ - 0, /* ht_cached_keys */ -#endif -#if PY_VERSION_HEX >= 0x03090000 - (PyObject *) 0, /* ht_module */ -#endif -#if PY_VERSION_HEX >= 0x030b0000 - (char *) 0, /* _ht_tpname */ - { - (PyObject *) 0, /* getitem */ - } -#endif -}; - -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Record_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Flag_type}; -static SwigPyGetSet SeqReaderRecordIterator___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__RecordIterator_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderRecordIterator___dict___getset }, +static SwigPyGetSet SeqReaderRecord_num_getset = { _wrap_SeqReaderRecord_num_get, _wrap_SeqReaderRecord_num_set }; +static SwigPyGetSet SeqReaderRecord___dict___getset = { SwigPyObject_get___dict__, 0 }; +static SwigPyGetSet SeqReaderRecord_comment_getset = { _wrap_SeqReaderRecord_comment_get, _wrap_SeqReaderRecord_comment_set }; +static SwigPyGetSet SeqReaderRecord_seq_getset = { _wrap_SeqReaderRecord_seq_get, _wrap_SeqReaderRecord_seq_set }; +static SwigPyGetSet SeqReaderRecord_id_getset = { _wrap_SeqReaderRecord_id_get, _wrap_SeqReaderRecord_id_set }; +static SwigPyGetSet SeqReaderRecord_qual_getset = { _wrap_SeqReaderRecord_qual_get, _wrap_SeqReaderRecord_qual_set }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__Record_getset[] = { + { (char *)"num", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_num_getset }, + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderRecord___dict___getset }, + { (char *)"comment", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_comment_getset }, + { (char *)"seq", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_seq_getset }, + { (char *)"id", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_id_getset }, + { (char *)"qual", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &SeqReaderRecord_qual_getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeqReader__Record_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -55213,12 +55233,12 @@ SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare(PyObject *self, PyO return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__RecordIterator_methods[] = { - { "__next__", _wrap_SeqReaderRecordIterator___next__, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Record_methods[] = { + { "__nonzero__", _wrap_SeqReaderRecord___nonzero__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -55226,10 +55246,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqReaderRecordIterator", /* tp_name */ + "btllib.SeqReaderRecord", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqReaderRecordIterator_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqReaderRecord_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -55243,36 +55263,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeqReader__Record_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeqReader__Record_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeqReader__Record_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeqReader__Record_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::SeqReader::RecordIterator", /* tp_doc */ + "btllib::SeqReader::Record", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader__Record_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ - _wrap_SeqReaderRecordIterator___next___iternextfunc_closure, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqReader__RecordIterator_methods, /* tp_methods */ + (iternextfunc) 0, /* tp_iternext */ + SwigPyBuiltin__btllib__SeqReader__Record_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqReader__RecordIterator_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeqReader__Record_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - SwigPyBuiltin_BadInit, /* tp_init */ + _wrap_new_SeqReaderRecord, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -55324,7 +55344,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - (inquiry) 0, /* nb_nonzero */ + _wrap_SeqReaderRecord___nonzero___inquiry_closure, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -55420,16 +55440,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__RecordIterator_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Record_type}; -static SwigPyGetSet Indexlr___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Indexlr___dict___getset }, +static SwigPyGetSet SeqReaderRecordIterator___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__RecordIterator_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderRecordIterator___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -55442,24 +55462,12 @@ SwigPyBuiltin__btllib__Indexlr_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr_methods[] = { - { "output_id", _wrap_Indexlr_output_id, METH_NOARGS, "" }, - { "output_bx", _wrap_Indexlr_output_bx, METH_NOARGS, "" }, - { "output_seq", _wrap_Indexlr_output_seq, METH_NOARGS, "" }, - { "output_qual", _wrap_Indexlr_output_qual, METH_NOARGS, "" }, - { "filter_in", _wrap_Indexlr_filter_in, METH_NOARGS, "" }, - { "filter_out", _wrap_Indexlr_filter_out, METH_NOARGS, "" }, - { "short_mode", _wrap_Indexlr_short_mode, METH_NOARGS, "" }, - { "long_mode", _wrap_Indexlr_long_mode, METH_NOARGS, "" }, - { "read", _wrap_Indexlr_read, METH_NOARGS, "" }, - { "close", _wrap_Indexlr_close, METH_NOARGS, "" }, - { "__iter__", _wrap_Indexlr___iter__, METH_NOARGS, "" }, - { "__enter__", _wrap_Indexlr___enter__, METH_NOARGS, "" }, - { "__exit__", _wrap_Indexlr___exit__, METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__RecordIterator_methods[] = { + { "__next__", _wrap_SeqReaderRecordIterator___next__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -55467,10 +55475,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Indexlr", /* tp_name */ + "btllib.SeqReaderRecordIterator", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Indexlr_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqReaderRecordIterator_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -55484,36 +55492,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Indexlr_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Indexlr_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Indexlr_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_mapping,/* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Indexlr_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeqReader__RecordIterator_type.as_buffer,/* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Indexlr", /* tp_doc */ + "btllib::SeqReader::RecordIterator", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - _wrap_Indexlr___iter___getiterfunc_closure, /* tp_iter */ - (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr_methods, /* tp_methods */ + (getiterfunc) 0, /* tp_iter */ + _wrap_SeqReaderRecordIterator___next___iternextfunc_closure, /* tp_iternext */ + SwigPyBuiltin__btllib__SeqReader__RecordIterator_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeqReader__RecordIterator_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_Indexlr, /* tp_init */ + SwigPyBuiltin_BadInit, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -55661,16 +55669,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__RecordIterator_type}; -static SwigPyGetSet IndexlrFlag___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Flag_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrFlag___dict___getset }, +static SwigPyGetSet Barrier___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Barrier_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Barrier___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Flag_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Barrier_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -55683,11 +55691,12 @@ SwigPyBuiltin__btllib__Indexlr__Flag_richcompare(PyObject *self, PyObject *other return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Flag_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Barrier_methods[] = { + { "wait", _wrap_Barrier_wait, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -55695,10 +55704,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.IndexlrFlag", /* tp_name */ + "btllib.Barrier", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_IndexlrFlag_destructor_closure, /* tp_dealloc */ + _wrap_delete_Barrier_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -55712,36 +55721,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Barrier_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Barrier_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Barrier_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Indexlr__Flag_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Barrier_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Indexlr::Flag", /* tp_doc */ + "btllib::Barrier", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Flag_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Barrier_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Flag_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Barrier_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__Flag_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Barrier_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_IndexlrFlag, /* tp_init */ + _wrap_new_Barrier, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -55889,28 +55898,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Flag_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Barrier_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Barrier_type}; -static SwigPyGetSet Minimizer___dict___getset = { SwigPyObject_get___dict__, 0 }; -static SwigPyGetSet Minimizer_min_hash_getset = { _wrap_Minimizer_min_hash_get, _wrap_Minimizer_min_hash_set }; -static SwigPyGetSet Minimizer_seq_getset = { _wrap_Minimizer_seq_get, _wrap_Minimizer_seq_set }; -static SwigPyGetSet Minimizer_out_hash_getset = { _wrap_Minimizer_out_hash_get, _wrap_Minimizer_out_hash_set }; -static SwigPyGetSet Minimizer_forward_getset = { _wrap_Minimizer_forward_get, _wrap_Minimizer_forward_set }; -static SwigPyGetSet Minimizer_pos_getset = { _wrap_Minimizer_pos_get, _wrap_Minimizer_pos_set }; -static SwigPyGetSet Minimizer_qual_getset = { _wrap_Minimizer_qual_get, _wrap_Minimizer_qual_set }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Minimizer_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Minimizer___dict___getset }, - { (char *)"min_hash", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_min_hash_getset }, - { (char *)"seq", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_seq_getset }, - { (char *)"out_hash", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_out_hash_getset }, - { (char *)"forward", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_forward_getset }, - { (char *)"pos", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_pos_getset }, - { (char *)"qual", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Minimizer_qual_getset }, +static SwigPyGetSet SeqWriter___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqWriter_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqWriter___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeqWriter_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -55923,11 +55920,15 @@ SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare(PyObject *self, PyObject * return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Minimizer_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqWriter_methods[] = { + { "close", _wrap_SeqWriter_close, METH_NOARGS, "" }, + { "write", _wrap_SeqWriter_write, METH_VARARGS, "" }, + { "__enter__", _wrap_SeqWriter___enter__, METH_NOARGS, "" }, + { "__exit__", _wrap_SeqWriter___exit__, METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -55935,10 +55936,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Minimizer", /* tp_name */ + "btllib.SeqWriter", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Minimizer_destructor_closure,/* tp_dealloc */ + _wrap_delete_SeqWriter_destructor_closure,/* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -55952,36 +55953,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeqWriter_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeqWriter_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeqWriter_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Indexlr__Minimizer_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeqWriter_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Indexlr::Minimizer", /* tp_doc */ + "btllib::SeqWriter", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqWriter_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeqWriter_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeqWriter_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_Minimizer, /* tp_init */ + _wrap_new_SeqWriter, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -56129,26 +56130,28 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Minimizer_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Minimizer_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqWriter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqWriter_type}; -static SwigPyGetSet IndexlrRecord_num_getset = { _wrap_IndexlrRecord_num_get, _wrap_IndexlrRecord_num_set }; -static SwigPyGetSet IndexlrRecord___dict___getset = { SwigPyObject_get___dict__, 0 }; -static SwigPyGetSet IndexlrRecord_minimizers_getset = { _wrap_IndexlrRecord_minimizers_get, _wrap_IndexlrRecord_minimizers_set }; -static SwigPyGetSet IndexlrRecord_readlen_getset = { _wrap_IndexlrRecord_readlen_get, _wrap_IndexlrRecord_readlen_set }; -static SwigPyGetSet IndexlrRecord_id_getset = { _wrap_IndexlrRecord_id_get, _wrap_IndexlrRecord_id_set }; -static SwigPyGetSet IndexlrRecord_barcode_getset = { _wrap_IndexlrRecord_barcode_get, _wrap_IndexlrRecord_barcode_set }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__Record_getset[] = { - { (char *)"num", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_num_getset }, - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrRecord___dict___getset }, - { (char *)"minimizers", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_minimizers_getset }, - { (char *)"readlen", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_readlen_getset }, - { (char *)"id", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_id_getset }, - { (char *)"barcode", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &IndexlrRecord_barcode_getset }, +static SwigPyGetSet Datatype_read_cmds_getset = { _wrap_Datatype_read_cmds_get, _wrap_Datatype_read_cmds_set }; +static SwigPyGetSet Datatype___dict___getset = { SwigPyObject_get___dict__, 0 }; +static SwigPyGetSet Datatype_write_cmds_getset = { _wrap_Datatype_write_cmds_get, _wrap_Datatype_write_cmds_set }; +static SwigPyGetSet Datatype_append_cmds_getset = { _wrap_Datatype_append_cmds_get, _wrap_Datatype_append_cmds_set }; +static SwigPyGetSet Datatype_cmds_check_existence_getset = { _wrap_Datatype_cmds_check_existence_get, _wrap_Datatype_cmds_check_existence_set }; +static SwigPyGetSet Datatype_suffixes_getset = { _wrap_Datatype_suffixes_get, _wrap_Datatype_suffixes_set }; +static SwigPyGetSet Datatype_prefixes_getset = { _wrap_Datatype_prefixes_get, _wrap_Datatype_prefixes_set }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Datatype_getset[] = { + { (char *)"read_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_read_cmds_getset }, + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Datatype___dict___getset }, + { (char *)"write_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_write_cmds_getset }, + { (char *)"append_cmds", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_append_cmds_getset }, + { (char *)"cmds_check_existence", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_cmds_check_existence_getset }, + { (char *)"suffixes", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_suffixes_getset }, + { (char *)"prefixes", SwigPyBuiltin_FunpackGetterClosure, SwigPyBuiltin_FunpackSetterClosure, (char *)"", &Datatype_prefixes_getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Record_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Datatype_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -56161,12 +56164,11 @@ SwigPyBuiltin__btllib__Indexlr__Record_richcompare(PyObject *self, PyObject *oth return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Record_methods[] = { - { "__nonzero__", _wrap_IndexlrRecord___nonzero__, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Datatype_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -56174,10 +56176,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.IndexlrRecord", /* tp_name */ + "btllib.Datatype", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_IndexlrRecord_destructor_closure, /* tp_dealloc */ + _wrap_delete_Datatype_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -56191,36 +56193,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Indexlr__Record_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Indexlr__Record_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Indexlr__Record_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__Datatype_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Datatype_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__Datatype_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Indexlr__Record_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__Datatype_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Indexlr::Record", /* tp_doc */ + "btllib::Datatype", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Record_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Datatype_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Record_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Datatype_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__Record_getset, /* tp_getset */ + SwigPyBuiltin__btllib__Datatype_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_IndexlrRecord, /* tp_init */ + _wrap_new_Datatype, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -56272,7 +56274,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - _wrap_IndexlrRecord___nonzero___inquiry_closure, /* nb_nonzero */ + (inquiry) 0, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -56368,16 +56370,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Datatype_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Datatype_type}; -static SwigPyGetSet IndexlrRecordIterator___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr__RecordIterator_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrRecordIterator___dict___getset }, +static SwigPyGetSet DataSource___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__DataSource_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &DataSource___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__DataSource_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -56390,12 +56392,11 @@ SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare(PyObject *self, PyObj return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__RecordIterator_methods[] = { - { "__next__", _wrap_IndexlrRecordIterator___next__, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSource_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -56403,10 +56404,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.IndexlrRecordIterator", /* tp_name */ + "btllib.DataSource", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_IndexlrRecordIterator_destructor_closure, /* tp_dealloc */ + _wrap_delete_DataSource_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -56420,36 +56421,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__DataSource_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__DataSource_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__DataSource_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Indexlr__RecordIterator_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__DataSource_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Indexlr::RecordIterator", /* tp_doc */ + "btllib::DataSource", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__DataSource_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ - _wrap_IndexlrRecordIterator___next___iternextfunc_closure, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_methods, /* tp_methods */ + (iternextfunc) 0, /* tp_iternext */ + SwigPyBuiltin__btllib__DataSource_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_getset, /* tp_getset */ + SwigPyBuiltin__btllib__DataSource_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - SwigPyBuiltin_BadInit, /* tp_init */ + _wrap_new_DataSource, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -56597,16 +56598,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Indexlr__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__RecordIterator_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__DataSource_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSource_type}; -static SwigPyGetSet RandomSequenceGenerator___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__RandomSequenceGenerator_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &RandomSequenceGenerator___dict___getset }, +static SwigPyGetSet DataSink___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__DataSink_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &DataSink___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__RandomSequenceGenerator_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__DataSink_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -56619,12 +56620,11 @@ SwigPyBuiltin__btllib__RandomSequenceGenerator_richcompare(PyObject *self, PyObj return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__RandomSequenceGenerator_methods[] = { - { "generate", _wrap_RandomSequenceGenerator_generate, METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSink_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__RandomSequenceGenerator_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -56632,10 +56632,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandomSequenceGenerator_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.RandomSequenceGenerator", /* tp_name */ + "btllib.DataSink", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_RandomSequenceGenerator_destructor_closure, /* tp_dealloc */ + _wrap_delete_DataSink_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -56649,36 +56649,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandomSequenceGenerator_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__DataSink_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__DataSink_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__DataSink_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__DataSink_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::RandomSequenceGenerator", /* tp_doc */ + "btllib::DataSink", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__RandomSequenceGenerator_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__DataSink_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__RandomSequenceGenerator_methods, /* tp_methods */ + SwigPyBuiltin__btllib__DataSink_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__RandomSequenceGenerator_getset, /* tp_getset */ + SwigPyBuiltin__btllib__DataSink_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_RandomSequenceGenerator, /* tp_init */ + _wrap_new_DataSink, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -56826,16 +56826,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandomSequenceGenerator_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__RandomSequenceGenerator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__RandomSequenceGenerator_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__DataSink_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSink_type}; -static SwigPyGetSet Barrier___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Barrier_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Barrier___dict___getset }, +static SwigPyGetSet NtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__NtHash_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &NtHash___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Barrier_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__NtHash_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -56848,12 +56848,24 @@ SwigPyBuiltin__btllib__Barrier_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Barrier_methods[] = { - { "wait", _wrap_Barrier_wait, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__NtHash_methods[] = { + { "roll", _wrap_NtHash_roll, METH_NOARGS, "" }, + { "roll_back", _wrap_NtHash_roll_back, METH_NOARGS, "" }, + { "peek", _wrap_NtHash_peek, METH_VARARGS, "" }, + { "peek_back", _wrap_NtHash_peek_back, METH_VARARGS, "" }, + { "sub", _wrap_NtHash_sub, METH_VARARGS, "" }, + { "hashes", _wrap_NtHash_hashes, METH_NOARGS, "" }, + { "get_pos", _wrap_NtHash_get_pos, METH_NOARGS, "" }, + { "forward", _wrap_NtHash_forward, METH_NOARGS, "" }, + { "get_hash_num", _wrap_NtHash_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_NtHash_get_k, METH_NOARGS, "" }, + { "get_forward_hash", _wrap_NtHash_get_forward_hash, METH_NOARGS, "" }, + { "get_reverse_hash", _wrap_NtHash_get_reverse_hash, METH_NOARGS, "" }, + { "change_seq", _wrap_NtHash_change_seq, METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -56861,10 +56873,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Barrier", /* tp_name */ + "btllib.NtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Barrier_destructor_closure, /* tp_dealloc */ + _wrap_delete_NtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -56878,36 +56890,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__Barrier_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__Barrier_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__Barrier_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__NtHash_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__NtHash_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__NtHash_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__Barrier_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__NtHash_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::Barrier", /* tp_doc */ + "btllib::NtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Barrier_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__NtHash_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Barrier_methods, /* tp_methods */ + SwigPyBuiltin__btllib__NtHash_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Barrier_getset, /* tp_getset */ + SwigPyBuiltin__btllib__NtHash_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_Barrier, /* tp_init */ + _wrap_new_NtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -57055,16 +57067,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Barrier_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Barrier_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__NtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__NtHash_type}; -static SwigPyGetSet NtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__NtHash_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &NtHash___dict___getset }, +static SwigPyGetSet BlindNtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__BlindNtHash_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &BlindNtHash___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__NtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__BlindNtHash_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -57077,24 +57089,24 @@ SwigPyBuiltin__btllib__NtHash_richcompare(PyObject *self, PyObject *other, int o return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__NtHash_methods[] = { - { "roll", _wrap_NtHash_roll, METH_NOARGS, "" }, - { "roll_back", _wrap_NtHash_roll_back, METH_NOARGS, "" }, - { "peek", _wrap_NtHash_peek, METH_VARARGS, "" }, - { "peek_back", _wrap_NtHash_peek_back, METH_VARARGS, "" }, - { "sub", _wrap_NtHash_sub, METH_VARARGS, "" }, - { "hashes", _wrap_NtHash_hashes, METH_NOARGS, "" }, - { "get_pos", _wrap_NtHash_get_pos, METH_NOARGS, "" }, - { "forward", _wrap_NtHash_forward, METH_NOARGS, "" }, - { "get_hash_num", _wrap_NtHash_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_NtHash_get_k, METH_NOARGS, "" }, - { "get_forward_hash", _wrap_NtHash_get_forward_hash, METH_NOARGS, "" }, - { "get_reverse_hash", _wrap_NtHash_get_reverse_hash, METH_NOARGS, "" }, - { "change_seq", _wrap_NtHash_change_seq, METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__BlindNtHash_methods[] = { + { "roll", _wrap_BlindNtHash_roll, METH_O, "" }, + { "roll_back", _wrap_BlindNtHash_roll_back, METH_O, "" }, + { "peek", _wrap_BlindNtHash_peek, METH_O, "" }, + { "peek_back", _wrap_BlindNtHash_peek_back, METH_O, "" }, + { "sub", _wrap_BlindNtHash_sub, METH_VARARGS, "" }, + { "hashes", _wrap_BlindNtHash_hashes, METH_NOARGS, "" }, + { "get_pos", _wrap_BlindNtHash_get_pos, METH_NOARGS, "" }, + { "forward", _wrap_BlindNtHash_forward, METH_NOARGS, "" }, + { "get_hash_num", _wrap_BlindNtHash_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_BlindNtHash_get_k, METH_NOARGS, "" }, + { "get_forward_hash", _wrap_BlindNtHash_get_forward_hash, METH_NOARGS, "" }, + { "get_reverse_hash", _wrap_BlindNtHash_get_reverse_hash, METH_NOARGS, "" }, + { "change_seq", _wrap_BlindNtHash_change_seq, METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -57102,10 +57114,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.NtHash", /* tp_name */ + "btllib.BlindNtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_NtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_BlindNtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -57119,36 +57131,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__NtHash_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__NtHash_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__NtHash_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__BlindNtHash_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__BlindNtHash_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__BlindNtHash_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__NtHash_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__BlindNtHash_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::NtHash", /* tp_doc */ + "btllib::BlindNtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__NtHash_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__BlindNtHash_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__NtHash_methods, /* tp_methods */ + SwigPyBuiltin__btllib__BlindNtHash_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__NtHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__BlindNtHash_getset,/* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_NtHash, /* tp_init */ + _wrap_new_BlindNtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -57296,16 +57308,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__NtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__NtHash_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__BlindNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__BlindNtHash_type}; -static SwigPyGetSet BlindNtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__BlindNtHash_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &BlindNtHash___dict___getset }, +static SwigPyGetSet SeedNtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedNtHash_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedNtHash___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__BlindNtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeedNtHash_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -57318,24 +57330,24 @@ SwigPyBuiltin__btllib__BlindNtHash_richcompare(PyObject *self, PyObject *other, return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__BlindNtHash_methods[] = { - { "roll", _wrap_BlindNtHash_roll, METH_O, "" }, - { "roll_back", _wrap_BlindNtHash_roll_back, METH_O, "" }, - { "peek", _wrap_BlindNtHash_peek, METH_O, "" }, - { "peek_back", _wrap_BlindNtHash_peek_back, METH_O, "" }, - { "sub", _wrap_BlindNtHash_sub, METH_VARARGS, "" }, - { "hashes", _wrap_BlindNtHash_hashes, METH_NOARGS, "" }, - { "get_pos", _wrap_BlindNtHash_get_pos, METH_NOARGS, "" }, - { "forward", _wrap_BlindNtHash_forward, METH_NOARGS, "" }, - { "get_hash_num", _wrap_BlindNtHash_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_BlindNtHash_get_k, METH_NOARGS, "" }, - { "get_forward_hash", _wrap_BlindNtHash_get_forward_hash, METH_NOARGS, "" }, - { "get_reverse_hash", _wrap_BlindNtHash_get_reverse_hash, METH_NOARGS, "" }, - { "change_seq", _wrap_BlindNtHash_change_seq, METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeedNtHash_methods[] = { + { "roll", _wrap_SeedNtHash_roll, METH_NOARGS, "" }, + { "roll_back", _wrap_SeedNtHash_roll_back, METH_NOARGS, "" }, + { "peek", _wrap_SeedNtHash_peek, METH_VARARGS, "" }, + { "peek_back", _wrap_SeedNtHash_peek_back, METH_VARARGS, "" }, + { "hashes", _wrap_SeedNtHash_hashes, METH_NOARGS, "" }, + { "change_seq", _wrap_SeedNtHash_change_seq, METH_VARARGS, "" }, + { "get_pos", _wrap_SeedNtHash_get_pos, METH_NOARGS, "" }, + { "forward", _wrap_SeedNtHash_forward, METH_NOARGS, "" }, + { "get_hash_num", _wrap_SeedNtHash_get_hash_num, METH_NOARGS, "" }, + { "get_hash_num_per_seed", _wrap_SeedNtHash_get_hash_num_per_seed, METH_NOARGS, "" }, + { "get_k", _wrap_SeedNtHash_get_k, METH_NOARGS, "" }, + { "get_forward_hash", _wrap_SeedNtHash_get_forward_hash, METH_NOARGS, "" }, + { "get_reverse_hash", _wrap_SeedNtHash_get_reverse_hash, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -57343,10 +57355,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.BlindNtHash", /* tp_name */ + "btllib.SeedNtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_BlindNtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeedNtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -57360,36 +57372,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__BlindNtHash_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__BlindNtHash_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__BlindNtHash_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeedNtHash_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeedNtHash_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeedNtHash_type.as_mapping, /* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__BlindNtHash_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeedNtHash_type.as_buffer, /* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::BlindNtHash", /* tp_doc */ + "btllib::SeedNtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__BlindNtHash_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeedNtHash_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__BlindNtHash_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeedNtHash_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__BlindNtHash_getset,/* tp_getset */ + SwigPyBuiltin__btllib__SeedNtHash_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_BlindNtHash, /* tp_init */ + _wrap_new_SeedNtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -57537,16 +57549,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__BlindNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__BlindNtHash_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeedNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedNtHash_type}; -static SwigPyGetSet SeedNtHash___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedNtHash_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedNtHash___dict___getset }, +static SwigPyGetSet RandomSequenceGenerator___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__RandomSequenceGenerator_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &RandomSequenceGenerator___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeedNtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__RandomSequenceGenerator_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -57559,24 +57571,12 @@ SwigPyBuiltin__btllib__SeedNtHash_richcompare(PyObject *self, PyObject *other, i return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeedNtHash_methods[] = { - { "roll", _wrap_SeedNtHash_roll, METH_NOARGS, "" }, - { "roll_back", _wrap_SeedNtHash_roll_back, METH_NOARGS, "" }, - { "peek", _wrap_SeedNtHash_peek, METH_VARARGS, "" }, - { "peek_back", _wrap_SeedNtHash_peek_back, METH_VARARGS, "" }, - { "hashes", _wrap_SeedNtHash_hashes, METH_NOARGS, "" }, - { "change_seq", _wrap_SeedNtHash_change_seq, METH_VARARGS, "" }, - { "get_pos", _wrap_SeedNtHash_get_pos, METH_NOARGS, "" }, - { "forward", _wrap_SeedNtHash_forward, METH_NOARGS, "" }, - { "get_hash_num", _wrap_SeedNtHash_get_hash_num, METH_NOARGS, "" }, - { "get_hash_num_per_seed", _wrap_SeedNtHash_get_hash_num_per_seed, METH_NOARGS, "" }, - { "get_k", _wrap_SeedNtHash_get_k, METH_NOARGS, "" }, - { "get_forward_hash", _wrap_SeedNtHash_get_forward_hash, METH_NOARGS, "" }, - { "get_reverse_hash", _wrap_SeedNtHash_get_reverse_hash, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__RandomSequenceGenerator_methods[] = { + { "generate", _wrap_RandomSequenceGenerator_generate, METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__RandomSequenceGenerator_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -57584,10 +57584,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeedNtHash", /* tp_name */ + "btllib.RandomSequenceGenerator", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeedNtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_RandomSequenceGenerator_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -57601,36 +57601,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeedNtHash_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeedNtHash_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeedNtHash_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_mapping,/* tp_as_mapping */ SwigPyObject_hash, /* tp_hash */ (ternaryfunc) 0, /* tp_call */ (reprfunc) 0, /* tp_str */ (getattrofunc) 0, /* tp_getattro */ (setattrofunc) 0, /* tp_setattro */ - &SwigPyBuiltin__btllib__SeedNtHash_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__RandomSequenceGenerator_type.as_buffer,/* tp_as_buffer */ #if PY_VERSION_HEX >= 0x03000000 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ #else Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */ #endif - "btllib::SeedNtHash", /* tp_doc */ + "btllib::RandomSequenceGenerator", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeedNtHash_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__RandomSequenceGenerator_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeedNtHash_methods,/* tp_methods */ + SwigPyBuiltin__btllib__RandomSequenceGenerator_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeedNtHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__RandomSequenceGenerator_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ (descrsetfunc) 0, /* tp_descr_set */ offsetof(SwigPyObject, dict), /* tp_dictoffset */ - _wrap_new_SeedNtHash, /* tp_init */ + _wrap_new_RandomSequenceGenerator, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -57778,7 +57778,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeedNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedNtHash_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__RandomSequenceGenerator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__RandomSequenceGenerator_type}; static SwigPyGetSet CountingBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_getset[] = { @@ -60734,11 +60734,10 @@ SWIG_init(void) { SwigPyBuiltin_AddPublicSymbol(public_interface, "VectorSpacedSeed"); d = md; - /* type 'btllib::SeqWriter' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__SeqWriter_type; + /* type 'btllib::Indexlr' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr_type; builtin_pytype->tp_dict = d = PyDict_New(); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FASTA",SWIG_From_int(static_cast< int >(btllib::SeqWriter::FASTA))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FASTQ",SWIG_From_int(static_cast< int >(btllib::SeqWriter::FASTQ))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "MAX_SIMULTANEOUS_INDEXLRS",SWIG_From_size_t(static_cast< size_t >(btllib::Indexlr::MAX_SIMULTANEOUS_INDEXLRS))); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; builtin_base_count = 0; @@ -60747,7 +60746,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'SeqWriter'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'Indexlr'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -60755,19 +60754,21 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "SeqWriter", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SeqWriter"); + PyModule_AddObject(m, "Indexlr", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "Indexlr"); d = md; - SWIG_addvarlink(globals, "COUNTING_BLOOM_FILTER_SIGNATURE", Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_get, Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_set); - PyDict_SetItemString(md, "COUNTING_BLOOM_FILTER_SIGNATURE", PyObject_GetAttrString(globals, "COUNTING_BLOOM_FILTER_SIGNATURE")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "COUNTING_BLOOM_FILTER_SIGNATURE"); - SWIG_addvarlink(globals, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE", Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_get, Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_set); - PyDict_SetItemString(md, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE", PyObject_GetAttrString(globals, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE"); - /* type 'btllib::Datatype' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Datatype_type; + /* type 'btllib::Indexlr::Flag' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Flag_type; builtin_pytype->tp_dict = d = PyDict_New(); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NO_ID",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::NO_ID))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BX",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::BX))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SEQ",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::SEQ))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FILTER_IN",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::FILTER_IN))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FILTER_OUT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::FILTER_OUT))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SHORT_MODE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::SHORT_MODE))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "LONG_MODE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::LONG_MODE))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "QUAL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::QUAL))); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; builtin_base_count = 0; @@ -60776,7 +60777,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'Datatype'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrFlag'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -60784,15 +60785,12 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "Datatype", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "Datatype"); + PyModule_AddObject(m, "IndexlrFlag", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrFlag"); d = md; - SWIG_addvarlink(globals, "DATATYPES", Swig_var_DATATYPES_get, Swig_var_DATATYPES_set); - PyDict_SetItemString(md, "DATATYPES", PyObject_GetAttrString(globals, "DATATYPES")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "DATATYPES"); - /* type 'btllib::DataSource' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__DataSource_type; + /* type 'btllib::Indexlr::Minimizer' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Minimizer_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -60802,7 +60800,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'DataSource'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'Minimizer'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -60810,12 +60808,12 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "DataSource", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "DataSource"); + PyModule_AddObject(m, "Minimizer", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "Minimizer"); d = md; - /* type 'btllib::DataSink' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__DataSink_type; + /* type 'btllib::Indexlr::Record' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -60825,7 +60823,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'DataSink'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrRecord'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -60833,8 +60831,31 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "DataSink", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "DataSink"); + PyModule_AddObject(m, "IndexlrRecord", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrRecord"); + d = md; + + /* type 'btllib::Indexlr::RecordIterator' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__RecordIterator_type; + builtin_pytype->tp_dict = d = PyDict_New(); + SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); + builtin_pytype->tp_new = PyType_GenericNew; + builtin_base_count = 0; + builtin_bases[builtin_base_count] = NULL; + SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases); + PyDict_SetItemString(d, "this", this_descr); + PyDict_SetItemString(d, "thisown", thisown_descr); + if (PyType_Ready(builtin_pytype) < 0) { + PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrRecordIterator'."); +#if PY_VERSION_HEX >= 0x03000000 + return NULL; +#else + return; +#endif + } + Py_INCREF(builtin_pytype); + PyModule_AddObject(m, "IndexlrRecordIterator", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrRecordIterator"); d = md; SWIG_addvarlink(globals, "BIT_MASKS", Swig_var_BIT_MASKS_get, Swig_var_BIT_MASKS_set); PyDict_SetItemString(md, "BIT_MASKS", PyObject_GetAttrString(globals, "BIT_MASKS")); @@ -60926,6 +60947,12 @@ SWIG_init(void) { PyModule_AddObject(m, "SeedBloomFilter", (PyObject *)builtin_pytype); SwigPyBuiltin_AddPublicSymbol(public_interface, "SeedBloomFilter"); d = md; + SWIG_addvarlink(globals, "COUNTING_BLOOM_FILTER_SIGNATURE", Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_get, Swig_var_COUNTING_BLOOM_FILTER_SIGNATURE_set); + PyDict_SetItemString(md, "COUNTING_BLOOM_FILTER_SIGNATURE", PyObject_GetAttrString(globals, "COUNTING_BLOOM_FILTER_SIGNATURE")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "COUNTING_BLOOM_FILTER_SIGNATURE"); + SWIG_addvarlink(globals, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE", Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_get, Swig_var_KMER_COUNTING_BLOOM_FILTER_SIGNATURE_set); + PyDict_SetItemString(md, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE", PyObject_GetAttrString(globals, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "KMER_COUNTING_BLOOM_FILTER_SIGNATURE"); /* type 'btllib::SeqReader' */ builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader_type; @@ -61035,63 +61062,8 @@ SWIG_init(void) { SwigPyBuiltin_AddPublicSymbol(public_interface, "SeqReaderRecordIterator"); d = md; - /* type 'btllib::Indexlr' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr_type; - builtin_pytype->tp_dict = d = PyDict_New(); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "MAX_SIMULTANEOUS_INDEXLRS",SWIG_From_size_t(static_cast< size_t >(btllib::Indexlr::MAX_SIMULTANEOUS_INDEXLRS))); - SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); - builtin_pytype->tp_new = PyType_GenericNew; - builtin_base_count = 0; - builtin_bases[builtin_base_count] = NULL; - SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases); - PyDict_SetItemString(d, "this", this_descr); - PyDict_SetItemString(d, "thisown", thisown_descr); - if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'Indexlr'."); -#if PY_VERSION_HEX >= 0x03000000 - return NULL; -#else - return; -#endif - } - Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "Indexlr", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "Indexlr"); - d = md; - - /* type 'btllib::Indexlr::Flag' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Flag_type; - builtin_pytype->tp_dict = d = PyDict_New(); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NO_ID",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::NO_ID))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BX",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::BX))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SEQ",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::SEQ))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FILTER_IN",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::FILTER_IN))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FILTER_OUT",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::FILTER_OUT))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SHORT_MODE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::SHORT_MODE))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "LONG_MODE",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::LONG_MODE))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "QUAL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr::Flag::QUAL))); - SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); - builtin_pytype->tp_new = PyType_GenericNew; - builtin_base_count = 0; - builtin_bases[builtin_base_count] = NULL; - SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases); - PyDict_SetItemString(d, "this", this_descr); - PyDict_SetItemString(d, "thisown", thisown_descr); - if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrFlag'."); -#if PY_VERSION_HEX >= 0x03000000 - return NULL; -#else - return; -#endif - } - Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "IndexlrFlag", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrFlag"); - d = md; - - /* type 'btllib::Indexlr::Minimizer' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Minimizer_type; + /* type 'btllib::Barrier' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Barrier_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -61101,7 +61073,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'Minimizer'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'Barrier'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -61109,13 +61081,15 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "Minimizer", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "Minimizer"); + PyModule_AddObject(m, "Barrier", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "Barrier"); d = md; - /* type 'btllib::Indexlr::Record' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_type; + /* type 'btllib::SeqWriter' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__SeqWriter_type; builtin_pytype->tp_dict = d = PyDict_New(); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FASTA",SWIG_From_int(static_cast< int >(btllib::SeqWriter::FASTA))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FASTQ",SWIG_From_int(static_cast< int >(btllib::SeqWriter::FASTQ))); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; builtin_base_count = 0; @@ -61124,7 +61098,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrRecord'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'SeqWriter'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -61132,12 +61106,99 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "IndexlrRecord", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrRecord"); + PyModule_AddObject(m, "SeqWriter", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SeqWriter"); d = md; + SWIG_addvarlink(globals, "COMPLEMENTS", Swig_var_COMPLEMENTS_get, Swig_var_COMPLEMENTS_set); + PyDict_SetItemString(md, "COMPLEMENTS", PyObject_GetAttrString(globals, "COMPLEMENTS")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "COMPLEMENTS"); + SWIG_addvarlink(globals, "CAPITALS", Swig_var_CAPITALS_get, Swig_var_CAPITALS_set); + PyDict_SetItemString(md, "CAPITALS", PyObject_GetAttrString(globals, "CAPITALS")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "CAPITALS"); + SWIG_addvarlink(globals, "CP_OFF", Swig_var_CP_OFF_get, Swig_var_CP_OFF_set); + PyDict_SetItemString(md, "CP_OFF", PyObject_GetAttrString(globals, "CP_OFF")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "CP_OFF"); + SWIG_addvarlink(globals, "MULTISHIFT", Swig_var_MULTISHIFT_get, Swig_var_MULTISHIFT_set); + PyDict_SetItemString(md, "MULTISHIFT", PyObject_GetAttrString(globals, "MULTISHIFT")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "MULTISHIFT"); + SWIG_addvarlink(globals, "MULTISEED", Swig_var_MULTISEED_get, Swig_var_MULTISEED_set); + PyDict_SetItemString(md, "MULTISEED", PyObject_GetAttrString(globals, "MULTISEED")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "MULTISEED"); + SWIG_addvarlink(globals, "SEED_A", Swig_var_SEED_A_get, Swig_var_SEED_A_set); + PyDict_SetItemString(md, "SEED_A", PyObject_GetAttrString(globals, "SEED_A")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_A"); + SWIG_addvarlink(globals, "SEED_C", Swig_var_SEED_C_get, Swig_var_SEED_C_set); + PyDict_SetItemString(md, "SEED_C", PyObject_GetAttrString(globals, "SEED_C")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_C"); + SWIG_addvarlink(globals, "SEED_G", Swig_var_SEED_G_get, Swig_var_SEED_G_set); + PyDict_SetItemString(md, "SEED_G", PyObject_GetAttrString(globals, "SEED_G")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_G"); + SWIG_addvarlink(globals, "SEED_T", Swig_var_SEED_T_get, Swig_var_SEED_T_set); + PyDict_SetItemString(md, "SEED_T", PyObject_GetAttrString(globals, "SEED_T")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_T"); + SWIG_addvarlink(globals, "SEED_N", Swig_var_SEED_N_get, Swig_var_SEED_N_set); + PyDict_SetItemString(md, "SEED_N", PyObject_GetAttrString(globals, "SEED_N")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_N"); + SWIG_addvarlink(globals, "ASCII_SIZE", Swig_var_ASCII_SIZE_get, Swig_var_ASCII_SIZE_set); + PyDict_SetItemString(md, "ASCII_SIZE", PyObject_GetAttrString(globals, "ASCII_SIZE")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "ASCII_SIZE"); + SWIG_addvarlink(globals, "SEED_TAB", Swig_var_SEED_TAB_get, Swig_var_SEED_TAB_set); + PyDict_SetItemString(md, "SEED_TAB", PyObject_GetAttrString(globals, "SEED_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_TAB"); + SWIG_addvarlink(globals, "A33R", Swig_var_A33R_get, Swig_var_A33R_set); + PyDict_SetItemString(md, "A33R", PyObject_GetAttrString(globals, "A33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "A33R"); + SWIG_addvarlink(globals, "A31L", Swig_var_A31L_get, Swig_var_A31L_set); + PyDict_SetItemString(md, "A31L", PyObject_GetAttrString(globals, "A31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "A31L"); + SWIG_addvarlink(globals, "C33R", Swig_var_C33R_get, Swig_var_C33R_set); + PyDict_SetItemString(md, "C33R", PyObject_GetAttrString(globals, "C33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "C33R"); + SWIG_addvarlink(globals, "C31L", Swig_var_C31L_get, Swig_var_C31L_set); + PyDict_SetItemString(md, "C31L", PyObject_GetAttrString(globals, "C31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "C31L"); + SWIG_addvarlink(globals, "G33R", Swig_var_G33R_get, Swig_var_G33R_set); + PyDict_SetItemString(md, "G33R", PyObject_GetAttrString(globals, "G33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "G33R"); + SWIG_addvarlink(globals, "G31L", Swig_var_G31L_get, Swig_var_G31L_set); + PyDict_SetItemString(md, "G31L", PyObject_GetAttrString(globals, "G31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "G31L"); + SWIG_addvarlink(globals, "T33R", Swig_var_T33R_get, Swig_var_T33R_set); + PyDict_SetItemString(md, "T33R", PyObject_GetAttrString(globals, "T33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "T33R"); + SWIG_addvarlink(globals, "T31L", Swig_var_T31L_get, Swig_var_T31L_set); + PyDict_SetItemString(md, "T31L", PyObject_GetAttrString(globals, "T31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "T31L"); + SWIG_addvarlink(globals, "N33R", Swig_var_N33R_get, Swig_var_N33R_set); + PyDict_SetItemString(md, "N33R", PyObject_GetAttrString(globals, "N33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "N33R"); + SWIG_addvarlink(globals, "N31L", Swig_var_N31L_get, Swig_var_N31L_set); + PyDict_SetItemString(md, "N31L", PyObject_GetAttrString(globals, "N31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "N31L"); + SWIG_addvarlink(globals, "MS_TAB_33R", Swig_var_MS_TAB_33R_get, Swig_var_MS_TAB_33R_set); + PyDict_SetItemString(md, "MS_TAB_33R", PyObject_GetAttrString(globals, "MS_TAB_33R")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "MS_TAB_33R"); + SWIG_addvarlink(globals, "MS_TAB_31L", Swig_var_MS_TAB_31L_get, Swig_var_MS_TAB_31L_set); + PyDict_SetItemString(md, "MS_TAB_31L", PyObject_GetAttrString(globals, "MS_TAB_31L")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "MS_TAB_31L"); + SWIG_addvarlink(globals, "CONVERT_TAB", Swig_var_CONVERT_TAB_get, Swig_var_CONVERT_TAB_set); + PyDict_SetItemString(md, "CONVERT_TAB", PyObject_GetAttrString(globals, "CONVERT_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "CONVERT_TAB"); + SWIG_addvarlink(globals, "RC_CONVERT_TAB", Swig_var_RC_CONVERT_TAB_get, Swig_var_RC_CONVERT_TAB_set); + PyDict_SetItemString(md, "RC_CONVERT_TAB", PyObject_GetAttrString(globals, "RC_CONVERT_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "RC_CONVERT_TAB"); + SWIG_addvarlink(globals, "DIMER_TAB", Swig_var_DIMER_TAB_get, Swig_var_DIMER_TAB_set); + PyDict_SetItemString(md, "DIMER_TAB", PyObject_GetAttrString(globals, "DIMER_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "DIMER_TAB"); + SWIG_addvarlink(globals, "TRIMER_TAB", Swig_var_TRIMER_TAB_get, Swig_var_TRIMER_TAB_set); + PyDict_SetItemString(md, "TRIMER_TAB", PyObject_GetAttrString(globals, "TRIMER_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "TRIMER_TAB"); + SWIG_addvarlink(globals, "TETRAMER_TAB", Swig_var_TETRAMER_TAB_get, Swig_var_TETRAMER_TAB_set); + PyDict_SetItemString(md, "TETRAMER_TAB", PyObject_GetAttrString(globals, "TETRAMER_TAB")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "TETRAMER_TAB"); - /* type 'btllib::Indexlr::RecordIterator' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__RecordIterator_type; + /* type 'btllib::Datatype' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Datatype_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -61147,7 +61208,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'IndexlrRecordIterator'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'Datatype'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -61155,19 +61216,16 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "IndexlrRecordIterator", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "IndexlrRecordIterator"); + PyModule_AddObject(m, "Datatype", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "Datatype"); d = md; + SWIG_addvarlink(globals, "DATATYPES", Swig_var_DATATYPES_get, Swig_var_DATATYPES_set); + PyDict_SetItemString(md, "DATATYPES", PyObject_GetAttrString(globals, "DATATYPES")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "DATATYPES"); - /* type 'btllib::RandomSequenceGenerator' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__RandomSequenceGenerator_type; + /* type 'btllib::DataSource' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__DataSource_type; builtin_pytype->tp_dict = d = PyDict_New(); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_DNA",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::DNA))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_RNA",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::RNA))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_PROTEIN",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::PROTEIN))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_NONE",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::NONE))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_SOFT",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::SOFT))); - SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_HARD",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::HARD))); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; builtin_base_count = 0; @@ -61176,7 +61234,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'RandomSequenceGenerator'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'DataSource'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -61184,12 +61242,12 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "RandomSequenceGenerator", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "RandomSequenceGenerator"); + PyModule_AddObject(m, "DataSource", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "DataSource"); d = md; - /* type 'btllib::Barrier' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Barrier_type; + /* type 'btllib::DataSink' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__DataSink_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -61199,7 +61257,7 @@ SWIG_init(void) { PyDict_SetItemString(d, "this", this_descr); PyDict_SetItemString(d, "thisown", thisown_descr); if (PyType_Ready(builtin_pytype) < 0) { - PyErr_SetString(PyExc_TypeError, "Could not create type 'Barrier'."); + PyErr_SetString(PyExc_TypeError, "Could not create type 'DataSink'."); #if PY_VERSION_HEX >= 0x03000000 return NULL; #else @@ -61207,15 +61265,21 @@ SWIG_init(void) { #endif } Py_INCREF(builtin_pytype); - PyModule_AddObject(m, "Barrier", (PyObject *)builtin_pytype); - SwigPyBuiltin_AddPublicSymbol(public_interface, "Barrier"); + PyModule_AddObject(m, "DataSink", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "DataSink"); d = md; - SWIG_addvarlink(globals, "COMPLEMENTS", Swig_var_COMPLEMENTS_get, Swig_var_COMPLEMENTS_set); - PyDict_SetItemString(md, "COMPLEMENTS", PyObject_GetAttrString(globals, "COMPLEMENTS")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "COMPLEMENTS"); - SWIG_addvarlink(globals, "CAPITALS", Swig_var_CAPITALS_get, Swig_var_CAPITALS_set); - PyDict_SetItemString(md, "CAPITALS", PyObject_GetAttrString(globals, "CAPITALS")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "CAPITALS"); + SWIG_addvarlink(globals, "PRINT_COLOR_INFO", Swig_var_PRINT_COLOR_INFO_get, Swig_var_PRINT_COLOR_INFO_set); + PyDict_SetItemString(md, "PRINT_COLOR_INFO", PyObject_GetAttrString(globals, "PRINT_COLOR_INFO")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_INFO"); + SWIG_addvarlink(globals, "PRINT_COLOR_WARNING", Swig_var_PRINT_COLOR_WARNING_get, Swig_var_PRINT_COLOR_WARNING_set); + PyDict_SetItemString(md, "PRINT_COLOR_WARNING", PyObject_GetAttrString(globals, "PRINT_COLOR_WARNING")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_WARNING"); + SWIG_addvarlink(globals, "PRINT_COLOR_ERROR", Swig_var_PRINT_COLOR_ERROR_get, Swig_var_PRINT_COLOR_ERROR_set); + PyDict_SetItemString(md, "PRINT_COLOR_ERROR", PyObject_GetAttrString(globals, "PRINT_COLOR_ERROR")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_ERROR"); + SWIG_addvarlink(globals, "PRINT_COLOR_END", Swig_var_PRINT_COLOR_END_get, Swig_var_PRINT_COLOR_END_set); + PyDict_SetItemString(md, "PRINT_COLOR_END", PyObject_GetAttrString(globals, "PRINT_COLOR_END")); + SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_END"); SWIG_addvarlink(globals, "NTHASH_FN_NAME", Swig_var_NTHASH_FN_NAME_get, Swig_var_NTHASH_FN_NAME_set); PyDict_SetItemString(md, "NTHASH_FN_NAME", PyObject_GetAttrString(globals, "NTHASH_FN_NAME")); SwigPyBuiltin_AddPublicSymbol(public_interface, "NTHASH_FN_NAME"); @@ -61294,99 +61358,35 @@ SWIG_init(void) { PyModule_AddObject(m, "SeedNtHash", (PyObject *)builtin_pytype); SwigPyBuiltin_AddPublicSymbol(public_interface, "SeedNtHash"); d = md; - SWIG_addvarlink(globals, "PRINT_COLOR_INFO", Swig_var_PRINT_COLOR_INFO_get, Swig_var_PRINT_COLOR_INFO_set); - PyDict_SetItemString(md, "PRINT_COLOR_INFO", PyObject_GetAttrString(globals, "PRINT_COLOR_INFO")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_INFO"); - SWIG_addvarlink(globals, "PRINT_COLOR_WARNING", Swig_var_PRINT_COLOR_WARNING_get, Swig_var_PRINT_COLOR_WARNING_set); - PyDict_SetItemString(md, "PRINT_COLOR_WARNING", PyObject_GetAttrString(globals, "PRINT_COLOR_WARNING")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_WARNING"); - SWIG_addvarlink(globals, "PRINT_COLOR_ERROR", Swig_var_PRINT_COLOR_ERROR_get, Swig_var_PRINT_COLOR_ERROR_set); - PyDict_SetItemString(md, "PRINT_COLOR_ERROR", PyObject_GetAttrString(globals, "PRINT_COLOR_ERROR")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_ERROR"); - SWIG_addvarlink(globals, "PRINT_COLOR_END", Swig_var_PRINT_COLOR_END_get, Swig_var_PRINT_COLOR_END_set); - PyDict_SetItemString(md, "PRINT_COLOR_END", PyObject_GetAttrString(globals, "PRINT_COLOR_END")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "PRINT_COLOR_END"); - SWIG_addvarlink(globals, "CP_OFF", Swig_var_CP_OFF_get, Swig_var_CP_OFF_set); - PyDict_SetItemString(md, "CP_OFF", PyObject_GetAttrString(globals, "CP_OFF")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "CP_OFF"); - SWIG_addvarlink(globals, "MULTISHIFT", Swig_var_MULTISHIFT_get, Swig_var_MULTISHIFT_set); - PyDict_SetItemString(md, "MULTISHIFT", PyObject_GetAttrString(globals, "MULTISHIFT")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "MULTISHIFT"); - SWIG_addvarlink(globals, "MULTISEED", Swig_var_MULTISEED_get, Swig_var_MULTISEED_set); - PyDict_SetItemString(md, "MULTISEED", PyObject_GetAttrString(globals, "MULTISEED")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "MULTISEED"); - SWIG_addvarlink(globals, "SEED_A", Swig_var_SEED_A_get, Swig_var_SEED_A_set); - PyDict_SetItemString(md, "SEED_A", PyObject_GetAttrString(globals, "SEED_A")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_A"); - SWIG_addvarlink(globals, "SEED_C", Swig_var_SEED_C_get, Swig_var_SEED_C_set); - PyDict_SetItemString(md, "SEED_C", PyObject_GetAttrString(globals, "SEED_C")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_C"); - SWIG_addvarlink(globals, "SEED_G", Swig_var_SEED_G_get, Swig_var_SEED_G_set); - PyDict_SetItemString(md, "SEED_G", PyObject_GetAttrString(globals, "SEED_G")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_G"); - SWIG_addvarlink(globals, "SEED_T", Swig_var_SEED_T_get, Swig_var_SEED_T_set); - PyDict_SetItemString(md, "SEED_T", PyObject_GetAttrString(globals, "SEED_T")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_T"); - SWIG_addvarlink(globals, "SEED_N", Swig_var_SEED_N_get, Swig_var_SEED_N_set); - PyDict_SetItemString(md, "SEED_N", PyObject_GetAttrString(globals, "SEED_N")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_N"); - SWIG_addvarlink(globals, "ASCII_SIZE", Swig_var_ASCII_SIZE_get, Swig_var_ASCII_SIZE_set); - PyDict_SetItemString(md, "ASCII_SIZE", PyObject_GetAttrString(globals, "ASCII_SIZE")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "ASCII_SIZE"); - SWIG_addvarlink(globals, "SEED_TAB", Swig_var_SEED_TAB_get, Swig_var_SEED_TAB_set); - PyDict_SetItemString(md, "SEED_TAB", PyObject_GetAttrString(globals, "SEED_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "SEED_TAB"); - SWIG_addvarlink(globals, "A33R", Swig_var_A33R_get, Swig_var_A33R_set); - PyDict_SetItemString(md, "A33R", PyObject_GetAttrString(globals, "A33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "A33R"); - SWIG_addvarlink(globals, "A31L", Swig_var_A31L_get, Swig_var_A31L_set); - PyDict_SetItemString(md, "A31L", PyObject_GetAttrString(globals, "A31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "A31L"); - SWIG_addvarlink(globals, "C33R", Swig_var_C33R_get, Swig_var_C33R_set); - PyDict_SetItemString(md, "C33R", PyObject_GetAttrString(globals, "C33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "C33R"); - SWIG_addvarlink(globals, "C31L", Swig_var_C31L_get, Swig_var_C31L_set); - PyDict_SetItemString(md, "C31L", PyObject_GetAttrString(globals, "C31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "C31L"); - SWIG_addvarlink(globals, "G33R", Swig_var_G33R_get, Swig_var_G33R_set); - PyDict_SetItemString(md, "G33R", PyObject_GetAttrString(globals, "G33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "G33R"); - SWIG_addvarlink(globals, "G31L", Swig_var_G31L_get, Swig_var_G31L_set); - PyDict_SetItemString(md, "G31L", PyObject_GetAttrString(globals, "G31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "G31L"); - SWIG_addvarlink(globals, "T33R", Swig_var_T33R_get, Swig_var_T33R_set); - PyDict_SetItemString(md, "T33R", PyObject_GetAttrString(globals, "T33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "T33R"); - SWIG_addvarlink(globals, "T31L", Swig_var_T31L_get, Swig_var_T31L_set); - PyDict_SetItemString(md, "T31L", PyObject_GetAttrString(globals, "T31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "T31L"); - SWIG_addvarlink(globals, "N33R", Swig_var_N33R_get, Swig_var_N33R_set); - PyDict_SetItemString(md, "N33R", PyObject_GetAttrString(globals, "N33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "N33R"); - SWIG_addvarlink(globals, "N31L", Swig_var_N31L_get, Swig_var_N31L_set); - PyDict_SetItemString(md, "N31L", PyObject_GetAttrString(globals, "N31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "N31L"); - SWIG_addvarlink(globals, "MS_TAB_33R", Swig_var_MS_TAB_33R_get, Swig_var_MS_TAB_33R_set); - PyDict_SetItemString(md, "MS_TAB_33R", PyObject_GetAttrString(globals, "MS_TAB_33R")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "MS_TAB_33R"); - SWIG_addvarlink(globals, "MS_TAB_31L", Swig_var_MS_TAB_31L_get, Swig_var_MS_TAB_31L_set); - PyDict_SetItemString(md, "MS_TAB_31L", PyObject_GetAttrString(globals, "MS_TAB_31L")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "MS_TAB_31L"); - SWIG_addvarlink(globals, "CONVERT_TAB", Swig_var_CONVERT_TAB_get, Swig_var_CONVERT_TAB_set); - PyDict_SetItemString(md, "CONVERT_TAB", PyObject_GetAttrString(globals, "CONVERT_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "CONVERT_TAB"); - SWIG_addvarlink(globals, "RC_CONVERT_TAB", Swig_var_RC_CONVERT_TAB_get, Swig_var_RC_CONVERT_TAB_set); - PyDict_SetItemString(md, "RC_CONVERT_TAB", PyObject_GetAttrString(globals, "RC_CONVERT_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "RC_CONVERT_TAB"); - SWIG_addvarlink(globals, "DIMER_TAB", Swig_var_DIMER_TAB_get, Swig_var_DIMER_TAB_set); - PyDict_SetItemString(md, "DIMER_TAB", PyObject_GetAttrString(globals, "DIMER_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "DIMER_TAB"); - SWIG_addvarlink(globals, "TRIMER_TAB", Swig_var_TRIMER_TAB_get, Swig_var_TRIMER_TAB_set); - PyDict_SetItemString(md, "TRIMER_TAB", PyObject_GetAttrString(globals, "TRIMER_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "TRIMER_TAB"); - SWIG_addvarlink(globals, "TETRAMER_TAB", Swig_var_TETRAMER_TAB_get, Swig_var_TETRAMER_TAB_set); - PyDict_SetItemString(md, "TETRAMER_TAB", PyObject_GetAttrString(globals, "TETRAMER_TAB")); - SwigPyBuiltin_AddPublicSymbol(public_interface, "TETRAMER_TAB"); + + /* type 'btllib::RandomSequenceGenerator' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__RandomSequenceGenerator_type; + builtin_pytype->tp_dict = d = PyDict_New(); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_DNA",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::DNA))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_RNA",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::RNA))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SequenceType_PROTEIN",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::SequenceType::PROTEIN))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_NONE",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::NONE))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_SOFT",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::SOFT))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "Masking_HARD",SWIG_From_int(static_cast< int >(btllib::RandomSequenceGenerator::Masking::HARD))); + SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); + builtin_pytype->tp_new = PyType_GenericNew; + builtin_base_count = 0; + builtin_bases[builtin_base_count] = NULL; + SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases); + PyDict_SetItemString(d, "this", this_descr); + PyDict_SetItemString(d, "thisown", thisown_descr); + if (PyType_Ready(builtin_pytype) < 0) { + PyErr_SetString(PyExc_TypeError, "Could not create type 'RandomSequenceGenerator'."); +#if PY_VERSION_HEX >= 0x03000000 + return NULL; +#else + return; +#endif + } + Py_INCREF(builtin_pytype); + PyModule_AddObject(m, "RandomSequenceGenerator", (PyObject *)builtin_pytype); + SwigPyBuiltin_AddPublicSymbol(public_interface, "RandomSequenceGenerator"); + d = md; /* type 'btllib::CountingBloomFilter< uint8_t >' */ builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type;