diff --git a/include/btllib/aahash.hpp b/include/btllib/aahash.hpp index 4c03e5e7..d7f2c78d 100644 --- a/include/btllib/aahash.hpp +++ b/include/btllib/aahash.hpp @@ -141,6 +141,12 @@ class AAHash size_t get_pos() const { return pos; } unsigned get_hash_num() const { return hash_num; } unsigned get_k() const { return k; } + bool + forward() // NOLINT(readability-convert-member-functions-to-static,-warnings-as-errors) + const + { + return true; + } uint64_t get_forward_hash() const { return hashes_array[0]; } unsigned get_level() const { return level; } const char* get_seq() const { return seq; } diff --git a/include/btllib/indexlr.hpp b/include/btllib/indexlr.hpp index ac4ce9df..244aaef1 100644 --- a/include/btllib/indexlr.hpp +++ b/include/btllib/indexlr.hpp @@ -1,6 +1,7 @@ #ifndef BTLLIB_INDEXLR_HPP #define BTLLIB_INDEXLR_HPP +#include "btllib/aahash.hpp" #include "btllib/bloom_filter.hpp" #include "btllib/nthash.hpp" #include "btllib/order_queue.hpp" @@ -22,6 +23,77 @@ namespace btllib { +struct Minimizer +{ + Minimizer() = default; + + Minimizer(uint64_t min_hash, + uint64_t out_hash, + size_t pos, + bool forward, + std::string seq) + : min_hash(min_hash) + , out_hash(out_hash) + , pos(pos) + , forward(forward) + , seq(std::move(seq)) + { + } + + Minimizer(uint64_t min_hash, + uint64_t out_hash, + size_t pos, + bool forward, + std::string seq, + std::string qual) + : min_hash(min_hash) + , out_hash(out_hash) + , pos(pos) + , forward(forward) + , seq(std::move(seq)) + , qual(std::move(qual)) + { + } + + uint64_t min_hash = 0, out_hash = 0; + size_t pos = 0; + bool forward = false; + std::string seq; + std::string qual; +}; + +using HashedKmer = Minimizer; + +struct Record +{ + Record() {} + + Record(size_t num, + std::string id, + std::string barcode, + size_t readlen, + std::vector minimizers) + : num(num) + , id(std::move(id)) + , barcode(std::move(barcode)) + , readlen(readlen) + , minimizers(std::move(minimizers)) + { + } + + size_t num = 0; + std::string id; + std::string barcode; + size_t readlen = 0; + std::vector minimizers; + + operator bool() const + { + return !id.empty() || !barcode.empty() || !minimizers.empty(); + } +}; + +template class Indexlr { @@ -63,76 +135,6 @@ class Indexlr bool short_mode() const { return bool(flags & Flag::SHORT_MODE); } bool long_mode() const { return bool(flags & Flag::LONG_MODE); } - struct Minimizer - { - Minimizer() = default; - - Minimizer(uint64_t min_hash, - uint64_t out_hash, - size_t pos, - bool forward, - std::string seq) - : min_hash(min_hash) - , out_hash(out_hash) - , pos(pos) - , forward(forward) - , seq(std::move(seq)) - { - } - - Minimizer(uint64_t min_hash, - uint64_t out_hash, - size_t pos, - bool forward, - std::string seq, - std::string qual) - : min_hash(min_hash) - , out_hash(out_hash) - , pos(pos) - , forward(forward) - , seq(std::move(seq)) - , qual(std::move(qual)) - { - } - - uint64_t min_hash = 0, out_hash = 0; - size_t pos = 0; - bool forward = false; - std::string seq; - std::string qual; - }; - - using HashedKmer = Minimizer; - - struct Record - { - Record() {} - - Record(size_t num, - std::string id, - std::string barcode, - size_t readlen, - std::vector minimizers) - : num(num) - , id(std::move(id)) - , barcode(std::move(barcode)) - , readlen(readlen) - , minimizers(std::move(minimizers)) - { - } - - size_t num = 0; - std::string id; - std::string barcode; - size_t readlen = 0; - std::vector minimizers; - - operator bool() const - { - return !id.empty() || !barcode.empty() || !minimizers.empty(); - } - }; - /** * Read the next Indexlr record, containing read * information and a list of minimizers. @@ -164,8 +166,8 @@ class Indexlr unsigned flags = 0, unsigned threads = 5, bool verbose = false, - const btllib::BloomFilter& bf1 = Indexlr::dummy_bf(), - const btllib::BloomFilter& bf2 = Indexlr::dummy_bf()); + const btllib::BloomFilter& bf1 = Indexlr::dummy_bf(), + const btllib::BloomFilter& bf2 = Indexlr::dummy_bf()); Indexlr(std::string seqfile, size_t k, @@ -174,8 +176,8 @@ class Indexlr unsigned flags = 0, unsigned threads = 5, bool verbose = false, - const btllib::BloomFilter& bf1 = Indexlr::dummy_bf(), - const btllib::BloomFilter& bf2 = Indexlr::dummy_bf()); + const btllib::BloomFilter& bf1 = Indexlr::dummy_bf(), + const btllib::BloomFilter& bf2 = Indexlr::dummy_bf()); ~Indexlr(); @@ -203,9 +205,9 @@ class Indexlr } private: - friend Indexlr; + friend Indexlr; - RecordIterator(Indexlr& indexlr, bool end) + RecordIterator(Indexlr& indexlr, bool end) : indexlr(indexlr) { if (!end) { @@ -213,7 +215,7 @@ class Indexlr } } - Indexlr& indexlr; + Indexlr& indexlr; Record record; }; /// @endcond @@ -224,29 +226,30 @@ class Indexlr private: static std::string extract_barcode(const std::string& id, const std::string& comment); - static void filter_hashed_kmer(Indexlr::HashedKmer& hk, + static void filter_hashed_kmer(HashedKmer& hk, bool filter_in, bool filter_out, const BloomFilter& filter_in_bf, const BloomFilter& filter_out_bf); - static void filter_kmer_qual(Indexlr::HashedKmer& hk, + static void filter_kmer_qual(HashedKmer& hk, const std::string& kmer_qual, size_t q); static size_t calc_kmer_quality(const std::string& qual); - static void calc_minimizer( - const std::vector& hashed_kmers_buffer, - const Indexlr::Minimizer*& min_current, - size_t idx, - ssize_t& min_idx_left, - ssize_t& min_idx_right, - ssize_t& min_pos_prev, - size_t w, - std::vector& minimizers); + static void calc_minimizer(const std::vector& hashed_kmers_buffer, + const Minimizer*& min_current, + size_t idx, + ssize_t& min_idx_left, + ssize_t& min_idx_right, + ssize_t& min_pos_prev, + size_t w, + std::vector& minimizers); std::vector minimize(const std::string& seq, const std::string& qual) const; + T hash_itr(const std::string& seq, size_t k) const; + const std::string seqfile; const size_t k, w; size_t q; @@ -270,9 +273,9 @@ class Indexlr OrderQueueMPSC output_queue; using OutputQueueType = decltype(output_queue); - static std::unique_ptr* ready_blocks_array() + static std::unique_ptr* ready_blocks_array() { - thread_local static std::unique_ptr + thread_local static std::unique_ptr var[MAX_SIMULTANEOUS_INDEXLRS]; return var; } @@ -305,7 +308,7 @@ class Indexlr Worker& operator=(const Worker& worker) = delete; Worker& operator=(Worker&& worker) = delete; - Worker(Indexlr& indexlr) + Worker(Indexlr& indexlr) : indexlr(indexlr) { } @@ -323,7 +326,7 @@ class Indexlr static void do_work(Worker* worker) { worker->work(); } int id = -1; - Indexlr& indexlr; + Indexlr& indexlr; std::thread t; }; @@ -335,15 +338,16 @@ class Indexlr }; // Constructor for Indexlr class when q is specified -inline Indexlr::Indexlr(std::string seqfile, - const size_t k, - const size_t w, - const size_t q, - const unsigned flags, - const unsigned threads, - const bool verbose, - const BloomFilter& bf1, - const BloomFilter& bf2) +template +inline Indexlr::Indexlr(std::string seqfile, + const size_t k, + const size_t w, + const size_t q, + const unsigned flags, + const unsigned threads, + const bool verbose, + const BloomFilter& bf1, + const BloomFilter& bf2) : seqfile(std::move(seqfile)) , k(k) , w(w) @@ -351,8 +355,9 @@ inline Indexlr::Indexlr(std::string seqfile, , flags(flags) , verbose(verbose) , id(++last_id()) - , filter_in_bf(filter_in() ? bf1 : Indexlr::dummy_bf()) - , filter_out_bf(filter_out() ? filter_in() ? bf2 : bf1 : Indexlr::dummy_bf()) + , filter_in_bf(filter_in() ? bf1 : Indexlr::dummy_bf()) + , filter_out_bf(filter_out() ? filter_in() ? bf2 : bf1 + : Indexlr::dummy_bf()) , filter_in_enabled(filter_in()) , filter_out_enabled(filter_out()) , reader(this->seqfile, @@ -377,25 +382,29 @@ inline Indexlr::Indexlr(std::string seqfile, } // Constructor for Indexlr class when q is not specified -inline Indexlr::Indexlr(std::string seqfile, - const size_t k, - const size_t w, - const unsigned flags, - const unsigned threads, - const bool verbose, - const BloomFilter& bf1, - const BloomFilter& bf2) - : Indexlr(std::move(seqfile), k, w, 0, flags, threads, verbose, bf1, bf2) +template< // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init) + class T> +inline Indexlr::Indexlr(std::string seqfile, + const size_t k, + const size_t w, + const unsigned flags, + const unsigned threads, + const bool verbose, + const BloomFilter& bf1, + const BloomFilter& bf2) + : Indexlr(std::move(seqfile), k, w, 0, flags, threads, verbose, bf1, bf2) { } -inline Indexlr::~Indexlr() +template +inline Indexlr::~Indexlr() { close(); } +template inline void -Indexlr::close() noexcept +Indexlr::close() noexcept { bool closed_expected = false; if (closed.compare_exchange_strong(closed_expected, true)) { @@ -439,8 +448,9 @@ r min = v[i] if (i != prev) { prev = i M <- M + m r = l + w - 1 Set window's right bound }*/ +template inline std::string -Indexlr::extract_barcode(const std::string& id, const std::string& comment) +Indexlr::extract_barcode(const std::string& id, const std::string& comment) { const static std::string barcode_prefix = "BX:Z:"; if (startswith(comment, barcode_prefix)) { @@ -461,12 +471,13 @@ Indexlr::extract_barcode(const std::string& id, const std::string& comment) return "NA"; } +template inline void -Indexlr::filter_hashed_kmer(Indexlr::HashedKmer& hk, - bool filter_in, - bool filter_out, - const BloomFilter& filter_in_bf, - const BloomFilter& filter_out_bf) +Indexlr::filter_hashed_kmer(HashedKmer& hk, + bool filter_in, + bool filter_out, + const BloomFilter& filter_in_bf, + const BloomFilter& filter_out_bf) { if (filter_in && filter_out) { std::vector tmp; @@ -485,18 +496,20 @@ Indexlr::filter_hashed_kmer(Indexlr::HashedKmer& hk, } } +template inline void -Indexlr::filter_kmer_qual(Indexlr::HashedKmer& hk, - const std::string& kmer_qual, - size_t q) +Indexlr::filter_kmer_qual(HashedKmer& hk, + const std::string& kmer_qual, + size_t q) { if (calc_kmer_quality(kmer_qual) < q) { hk.min_hash = std::numeric_limits::max(); } } +template inline size_t -Indexlr::calc_kmer_quality(const std::string& qual) +Indexlr::calc_kmer_quality(const std::string& qual) { // convert the quality scores to integers std::vector qual_ints; @@ -513,16 +526,16 @@ Indexlr::calc_kmer_quality(const std::string& qual) return (sum / qual_ints.size()); } +template inline void -Indexlr::calc_minimizer( - const std::vector& hashed_kmers_buffer, - const Indexlr::Minimizer*& min_current, - const size_t idx, - ssize_t& min_idx_left, - ssize_t& min_idx_right, - ssize_t& min_pos_prev, - const size_t w, - std::vector& minimizers) +Indexlr::calc_minimizer(const std::vector& hashed_kmers_buffer, + const Minimizer*& min_current, + const size_t idx, + ssize_t& min_idx_left, + ssize_t& min_idx_right, + ssize_t& min_pos_prev, + const size_t w, + std::vector& minimizers) { min_idx_left = ssize_t(idx + 1 - w); min_idx_right = ssize_t(idx + 1); @@ -550,8 +563,30 @@ Indexlr::calc_minimizer( } } -inline std::vector -Indexlr::minimize(const std::string& seq, const std::string& qual) const +template +T +Indexlr::hash_itr(const std::string& seq, size_t k) const +{ + return T(seq, k); +} + +template<> +btllib::NtHash +Indexlr::hash_itr(const std::string& seq, size_t k) const +{ + return btllib::NtHash(seq, 2, k); +} + +template<> +btllib::AAHash +Indexlr::hash_itr(const std::string& seq, size_t k) const +{ + return btllib::AAHash(seq, 2, k, 1); +} + +template +inline std::vector +Indexlr::minimize(const std::string& seq, const std::string& qual) const { if ((k > seq.size()) || (w > seq.size() - k + 1)) { return {}; @@ -562,21 +597,22 @@ Indexlr::minimize(const std::string& seq, const std::string& qual) const ssize_t min_idx_left, min_idx_right, min_pos_prev = -1; const Minimizer* min_current = nullptr; size_t idx = 0; - for (NtHash nh(seq, 2, k); nh.roll(); ++idx) { + T hash_itr = this->hash_itr(seq, k); + for (; hash_itr.roll(); ++idx) { auto& hk = hashed_kmers_buffer[idx % hashed_kmers_buffer.size()]; - hk = HashedKmer(nh.hashes()[0], - nh.hashes()[1], - nh.get_pos(), - nh.forward(), - output_seq() ? seq.substr(nh.get_pos(), k) : "", - output_qual() ? qual.substr(nh.get_pos(), k) : ""); + hk = HashedKmer(hash_itr.hashes()[0], + hash_itr.hashes()[1], + hash_itr.get_pos(), + hash_itr.forward(), + output_seq() ? seq.substr(hash_itr.get_pos(), k) : "", + output_qual() ? qual.substr(hash_itr.get_pos(), k) : ""); filter_hashed_kmer( hk, filter_in(), filter_out(), filter_in_bf.get(), filter_out_bf.get()); if (q > 0) { - filter_kmer_qual(hk, qual.substr(nh.get_pos(), k), q); + filter_kmer_qual(hk, qual.substr(hash_itr.get_pos(), k), q); } if (idx + 1 >= w) { @@ -593,14 +629,15 @@ Indexlr::minimize(const std::string& seq, const std::string& qual) const return minimizers; } -inline Indexlr::Record -Indexlr::read() +template +Record +Indexlr::read() { if (ready_blocks_owners()[id % MAX_SIMULTANEOUS_INDEXLRS] != id) { ready_blocks_array()[id % MAX_SIMULTANEOUS_INDEXLRS] = std::unique_ptr< // NOLINT(modernize-make-unique) - decltype(output_queue)::Block>( - new decltype(output_queue)::Block(reader.get_block_size())); + typename decltype(output_queue)::Block>( + new typename decltype(output_queue)::Block(reader.get_block_size())); ready_blocks_owners()[id % MAX_SIMULTANEOUS_INDEXLRS] = id; ready_blocks_current()[id % MAX_SIMULTANEOUS_INDEXLRS] = 0; } @@ -611,7 +648,7 @@ Indexlr::read() output_queue.read(block); if (block.count == 0) { output_queue.close(); - block = decltype(output_queue)::Block(reader.get_block_size()); + block = typename decltype(output_queue)::Block(reader.get_block_size()); return Record(); } current = 0; @@ -619,10 +656,11 @@ Indexlr::read() return std::move(block.data[current++]); } +template inline void -Indexlr::Worker::work() +Indexlr::Worker::work() { - decltype(indexlr.output_queue)::Block output_block( + typename decltype(indexlr.output_queue)::Block output_block( indexlr.reader.get_block_size()); uint64_t last_block_num = 0; bool last_block_num_valid = false; diff --git a/recipes/indexlr.cpp b/recipes/indexlr.cpp index 0edc4fdc..547fe640 100644 --- a/recipes/indexlr.cpp +++ b/recipes/indexlr.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include const static std::string PROGNAME = "indexlr"; @@ -62,6 +63,7 @@ print_usage() " --seq Include minimizer sequences in the output " "(appended with : after " "minimizer value).\n" + " --amino_acid use amino acid hash function\n" " --qual Include minimizer Phred quality string in the output" "(appended with : after " "minimizer value).\n" @@ -100,13 +102,14 @@ main(int argc, char* argv[]) bool k_set = false; bool q_set = false; int with_id = 0, with_bx = 0, with_len = 0, with_pos = 0, with_strand = 0, - with_seq = 0, with_qual = 0; + with_seq = 0, with_qual = 0, with_amino_acid = 0; std::unique_ptr repeat_bf, solid_bf; bool with_repeat = false, with_solid = false; int long_mode = 0; std::string outfile("-"); bool failed = false; static const struct option longopts[] = { + { "amino_acid", no_argument, &with_amino_acid, 1 }, { "id", no_argument, &with_id, 1 }, { "bx", no_argument, &with_bx, 1 }, { "len", no_argument, &with_len, 1 }, @@ -220,24 +223,24 @@ main(int argc, char* argv[]) unsigned flags = 0; if (bool(with_bx) && !bool(with_id)) { - flags |= btllib::Indexlr::Flag::NO_ID; + flags |= btllib::Indexlr::Flag::NO_ID; } if (bool(with_bx)) { - flags |= btllib::Indexlr::Flag::BX; + flags |= btllib::Indexlr::Flag::BX; } if (bool(with_seq)) { - flags |= btllib::Indexlr::Flag::SEQ; + flags |= btllib::Indexlr::Flag::SEQ; } if (bool(with_qual)) { - flags |= btllib::Indexlr::Flag::QUAL; + flags |= btllib::Indexlr::Flag::QUAL; } if (bool(long_mode)) { - flags |= btllib::Indexlr::Flag::LONG_MODE; + flags |= btllib::Indexlr::Flag::LONG_MODE; } else { - flags |= btllib::Indexlr::Flag::SHORT_MODE; + flags |= btllib::Indexlr::Flag::SHORT_MODE; } - btllib::Indexlr::Record record; + btllib::Record record; FILE* out; if (outfile == "-") { out = stdout; @@ -248,36 +251,98 @@ main(int argc, char* argv[]) out = fopen(outfile.c_str(), "w"); // NOLINT(android-cloexec-fopen) #endif } + + using unique_indexlr_nt_ptr = std::unique_ptr< + btllib::Indexlr>; // NOLINT(modernize-make-unique) + using unique_indexlr_aa_ptr = std::unique_ptr< + btllib::Indexlr>; // NOLINT(modernize-make-unique) + using variant_indexlr_ptr = + std::variant; for (const auto& infile : infiles) { - std::unique_ptr indexlr; + + variant_indexlr_ptr indexlr; if (with_repeat && with_solid) { - flags |= btllib::Indexlr::Flag::FILTER_IN; - flags |= btllib::Indexlr::Flag::FILTER_OUT; - indexlr = - std::unique_ptr( // NOLINT(modernize-make-unique) - new btllib::Indexlr(infile, - k, - w, - q, - flags, - t, - verbose, - solid_bf->get_bloom_filter(), - repeat_bf->get_bloom_filter())); + flags |= btllib::Indexlr::Flag::FILTER_IN; + flags |= btllib::Indexlr::Flag::FILTER_OUT; + if (with_amino_acid == 0) { + indexlr = unique_indexlr_nt_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + solid_bf->get_bloom_filter(), + repeat_bf->get_bloom_filter())); + } else { + indexlr = unique_indexlr_aa_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + solid_bf->get_bloom_filter(), + repeat_bf->get_bloom_filter())); + } } else if (with_repeat) { - flags |= btllib::Indexlr::Flag::FILTER_OUT; - indexlr = std::unique_ptr< // NOLINT(modernize-make-unique) - btllib::Indexlr>(new btllib::Indexlr( - infile, k, w, q, flags, t, verbose, repeat_bf->get_bloom_filter())); + flags |= btllib::Indexlr::Flag::FILTER_OUT; + if (with_amino_acid == 0) { + indexlr = unique_indexlr_nt_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + repeat_bf->get_bloom_filter())); + } else { + indexlr = unique_indexlr_aa_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + repeat_bf->get_bloom_filter())); + } } else if (with_solid) { - flags |= btllib::Indexlr::Flag::FILTER_IN; - indexlr = std::unique_ptr< // NOLINT(modernize-make-unique) - btllib::Indexlr>(new btllib::Indexlr( - infile, k, w, q, flags, t, verbose, solid_bf->get_bloom_filter())); + flags |= btllib::Indexlr::Flag::FILTER_IN; + if (with_amino_acid == 0) { + indexlr = unique_indexlr_nt_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + solid_bf->get_bloom_filter())); + } else { + indexlr = unique_indexlr_aa_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr(infile, + k, + w, + q, + flags, + t, + verbose, + solid_bf->get_bloom_filter())); + } } else { - indexlr = - std::unique_ptr( // NOLINT(modernize-make-unique) - new btllib::Indexlr(infile, k, w, q, flags, t, verbose)); + if (with_amino_acid == 0) { + indexlr = unique_indexlr_nt_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr( + infile, k, w, q, flags, t, verbose)); + } else { + indexlr = unique_indexlr_aa_ptr( // NOLINT(modernize-make-unique) + new btllib::Indexlr( + infile, k, w, q, flags, t, verbose)); + } } std::queue output_queue; std::mutex output_queue_mutex; @@ -287,7 +352,8 @@ main(int argc, char* argv[]) bool(long_mode) ? OUTPUT_PERIOD_LONG : OUTPUT_PERIOD_SHORT; std::unique_ptr info_compiler(new std::thread([&]() { std::stringstream ss; - while ((record = indexlr->read())) { + while ((record = + std::visit([](auto& ptr) { return ptr->read(); }, indexlr))) { if (bool(with_id) || (!bool(with_id) && !bool(with_bx))) { ss << record.id << '\t'; } diff --git a/tests/indexlr.cpp b/tests/indexlr.cpp index 28e27e9a..4ded8808 100644 --- a/tests/indexlr.cpp +++ b/tests/indexlr.cpp @@ -10,10 +10,10 @@ int main() { std::cerr << "Testing on empty file" << std::endl; - btllib::Indexlr indexlr_empty(btllib::get_dirname(__FILE__) + "/empty.fa", + btllib::Indexlr indexlr_empty(btllib::get_dirname(__FILE__) + "/empty.fa", 20, 50, - btllib::Indexlr::Flag::LONG_MODE); + btllib::Indexlr::Flag::LONG_MODE); int i = 0; for (auto minimizers : indexlr_empty) { i++; @@ -21,29 +21,29 @@ main() TEST_ASSERT_EQ(i, 0); std::cerr << "Testing without Bloom filters" << std::endl; - btllib::Indexlr indexlr(btllib::get_dirname(__FILE__) + "/indexlr.fa", + btllib::Indexlr indexlr(btllib::get_dirname(__FILE__) + "/indexlr.fa", 100, 5, - btllib::Indexlr::Flag::SHORT_MODE); - btllib::Indexlr indexlr2(btllib::get_dirname(__FILE__) + "/indexlr.fq", + btllib::Indexlr::Flag::SHORT_MODE); + btllib::Indexlr indexlr2(btllib::get_dirname(__FILE__) + "/indexlr.fq", 100, 5, - btllib::Indexlr::Flag::BX | - btllib::Indexlr::Flag::SEQ | - btllib::Indexlr::Flag::SHORT_MODE); - btllib::Indexlr indexlr3(btllib::get_dirname(__FILE__) + "/indexlr.stlfr.fq", + btllib::Indexlr::Flag::BX | + btllib::Indexlr::Flag::SEQ | + btllib::Indexlr::Flag::SHORT_MODE); + btllib::Indexlr indexlr3(btllib::get_dirname(__FILE__) + "/indexlr.stlfr.fq", 75, 5, - btllib::Indexlr::Flag::BX | - btllib::Indexlr::Flag::SHORT_MODE | - btllib::Indexlr::Flag::NO_ID); + btllib::Indexlr::Flag::BX | + btllib::Indexlr::Flag::SHORT_MODE | + btllib::Indexlr::Flag::NO_ID); std::cerr << "Testing quality filtering" << std::endl; - btllib::Indexlr indexlr4(btllib::get_dirname(__FILE__) + "/indexlr.quality.fq", + btllib::Indexlr indexlr4(btllib::get_dirname(__FILE__) + "/indexlr.quality.fq", 50, 20, size_t(25), - btllib::Indexlr::Flag::SHORT_MODE); + btllib::Indexlr::Flag::SHORT_MODE); std::ifstream correct_output_file(btllib::get_dirname(__FILE__) + @@ -91,7 +91,7 @@ main() std::stringstream ss3; std::stringstream ss4; - decltype(indexlr)::Record record; + btllib::Record record; bool success_indexlr = false, success_indexlr2 = false, success_indexlr3 = false, success_indexlr4 = false; for (int i = 0;; i++) { if ((success_indexlr = (record = indexlr.read()))) { @@ -185,11 +185,11 @@ main() filter_out_bf.insert({ h }); } - btllib::Indexlr indexlr5(btllib::get_dirname(__FILE__) + "/indexlr.fq", + btllib::Indexlr indexlr5(btllib::get_dirname(__FILE__) + "/indexlr.fq", 100, 5, - btllib::Indexlr::Flag::FILTER_IN | - btllib::Indexlr::Flag::LONG_MODE, + btllib::Indexlr::Flag::FILTER_IN | + btllib::Indexlr::Flag::LONG_MODE, 3, true, filter_in_bf); @@ -209,11 +209,11 @@ main() } TEST_ASSERT_GE(mins_found, filter_in_hashes.size()); - btllib::Indexlr indexlr6(btllib::get_dirname(__FILE__) + "/indexlr.fq", + btllib::Indexlr indexlr6(btllib::get_dirname(__FILE__) + "/indexlr.fq", 100, 5, - btllib::Indexlr::Flag::FILTER_OUT | - btllib::Indexlr::Flag::LONG_MODE, + btllib::Indexlr::Flag::FILTER_OUT | + btllib::Indexlr::Flag::LONG_MODE, 3, true, filter_out_bf); @@ -228,12 +228,12 @@ main() } TEST_ASSERT_GE(mins_found, filter_in_hashes.size()); - btllib::Indexlr indexlr7(btllib::get_dirname(__FILE__) + "/indexlr.fq", + btllib::Indexlr indexlr7(btllib::get_dirname(__FILE__) + "/indexlr.fq", 100, 5, - btllib::Indexlr::Flag::FILTER_IN | - btllib::Indexlr::Flag::FILTER_OUT | - btllib::Indexlr::Flag::SHORT_MODE, + btllib::Indexlr::Flag::FILTER_IN | + btllib::Indexlr::Flag::FILTER_OUT | + btllib::Indexlr::Flag::SHORT_MODE, 3, true, filter_in_bf, diff --git a/wrappers/extra_common.i b/wrappers/extra_common.i index 4762b9f7..d86bdd1d 100644 --- a/wrappers/extra_common.i +++ b/wrappers/extra_common.i @@ -28,9 +28,9 @@ %rename (SeqReaderFlag) btllib::SeqReader::Flag; %rename (SeqReaderFormat) btllib::SeqReader::Format; %rename (SeqWriterFormat) btllib::SeqWriter::Format; -%rename (IndexlrRecord) btllib::Indexlr::Record; -%rename (IndexlrRecordIterator) btllib::Indexlr::RecordIterator; -%rename (IndexlrFlag) btllib::Indexlr::Flag; +%rename (IndexlrRecord) btllib::Record; +%rename (IndexlrRecordIterator) btllib::Indexlr::RecordIterator; +%rename (IndexlrFlag) btllib::Indexlr::Flag; %ignore btllib::SeqReader::read_block; @@ -52,9 +52,9 @@ %ignore btllib::SeqReader::RecordIterator::operator!=; %ignore btllib::SeqReader::RecordIterator::operator*; -%ignore btllib::Indexlr::RecordIterator::operator++; -%ignore btllib::Indexlr::RecordIterator::operator!=; -%ignore btllib::Indexlr::RecordIterator::operator*; +%ignore btllib::Indexlr::RecordIterator::operator++; +%ignore btllib::Indexlr::RecordIterator::operator!=; +%ignore btllib::Indexlr::RecordIterator::operator*; %ignore btllib::parse_blocks(const std::vector&, unsigned); @@ -70,7 +70,7 @@ %template(VectorUnsigned) std::vector; %template(VectorDouble) std::vector; %template(VectorUint64t) std::vector; -%template(VectorMinimizer) std::vector; +%template(VectorMinimizer) std::vector; namespace btllib { using SpacedSeed = std::vector; diff --git a/wrappers/extra_templates.i b/wrappers/extra_templates.i index 1522573f..eab88658 100644 --- a/wrappers/extra_templates.i +++ b/wrappers/extra_templates.i @@ -7,3 +7,4 @@ %template(MIBloomFilter8) btllib::MIBloomFilter; %template(MIBloomFilter16) btllib::MIBloomFilter; %template(MIBloomFilter32) btllib::MIBloomFilter; +%template(Indexlr) btllib::Indexlr; diff --git a/wrappers/python/btllib_wrap.cxx b/wrappers/python/btllib_wrap.cxx index 7658f5fb..d714dccd 100644 --- a/wrappers/python/btllib_wrap.cxx +++ b/wrappers/python/btllib_wrap.cxx @@ -3748,124 +3748,123 @@ SwigPyBuiltin_iternextfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) { /* -------- TYPES TABLE (BEGIN) -------- */ -#define SWIGTYPE_p_HashedKmer swig_types[0] -#define SWIGTYPE_p_SwigPyObject swig_types[1] -#define SWIGTYPE_p_allocator_type swig_types[2] -#define SWIGTYPE_p_bool swig_types[3] -#define SWIGTYPE_p_btllib__AAHash swig_types[4] -#define SWIGTYPE_p_btllib__Barrier swig_types[5] -#define SWIGTYPE_p_btllib__BlindNtHash swig_types[6] -#define SWIGTYPE_p_btllib__BloomFilter swig_types[7] -#define SWIGTYPE_p_btllib__CString swig_types[8] -#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t swig_types[9] -#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t swig_types[10] -#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t swig_types[11] -#define SWIGTYPE_p_btllib__DataSink swig_types[12] -#define SWIGTYPE_p_btllib__DataSource swig_types[13] -#define SWIGTYPE_p_btllib__DataStream swig_types[14] -#define SWIGTYPE_p_btllib__Datatype swig_types[15] -#define SWIGTYPE_p_btllib__Indexlr swig_types[16] -#define SWIGTYPE_p_btllib__Indexlr__Flag swig_types[17] -#define SWIGTYPE_p_btllib__Indexlr__Minimizer swig_types[18] -#define SWIGTYPE_p_btllib__Indexlr__Record swig_types[19] -#define SWIGTYPE_p_btllib__Indexlr__RecordIterator swig_types[20] -#define SWIGTYPE_p_btllib__KmerBloomFilter swig_types[21] -#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t swig_types[22] -#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t swig_types[23] -#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t swig_types[24] -#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t swig_types[25] -#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t swig_types[26] -#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t swig_types[27] -#define SWIGTYPE_p_btllib__NtHash swig_types[28] -#define SWIGTYPE_p_btllib__RandSeq swig_types[29] -#define SWIGTYPE_p_btllib__SeedAAHash swig_types[30] -#define SWIGTYPE_p_btllib__SeedBloomFilter swig_types[31] -#define SWIGTYPE_p_btllib__SeedNtHash swig_types[32] -#define SWIGTYPE_p_btllib__SeqReader swig_types[33] -#define SWIGTYPE_p_btllib__SeqReader__Flag swig_types[34] -#define SWIGTYPE_p_btllib__SeqReader__Record swig_types[35] -#define SWIGTYPE_p_btllib__SeqReader__RecordIterator swig_types[36] -#define SWIGTYPE_p_btllib__SeqWriter swig_types[37] -#define SWIGTYPE_p_char swig_types[38] -#define SWIGTYPE_p_char_type swig_types[39] -#define SWIGTYPE_p_difference_type swig_types[40] -#define SWIGTYPE_p_double swig_types[41] -#define SWIGTYPE_p_f_enum_std__ios_base__event_r_std__ios_base_int__void swig_types[42] -#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[43] -#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[44] -#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[45] -#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[46] -#define SWIGTYPE_p_f_r_std__basic_istream__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[47] -#define SWIGTYPE_p_f_r_std__basic_istream__char_std__char_traits__char______r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[48] -#define SWIGTYPE_p_f_r_std__basic_ostream__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[49] -#define SWIGTYPE_p_f_r_std__basic_ostream__char_std__char_traits__char______r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[50] -#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[51] -#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[52] -#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[53] -#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[54] -#define SWIGTYPE_p_f_r_std__ios_base__r_std__ios_base swig_types[55] -#define SWIGTYPE_p_float swig_types[56] -#define SWIGTYPE_p_fmtflags swig_types[57] -#define SWIGTYPE_p_int swig_types[58] -#define SWIGTYPE_p_int_type swig_types[59] -#define SWIGTYPE_p_iostate swig_types[60] -#define SWIGTYPE_p_long swig_types[61] -#define SWIGTYPE_p_long_double swig_types[62] -#define SWIGTYPE_p_long_long swig_types[63] -#define SWIGTYPE_p_off_type swig_types[64] -#define SWIGTYPE_p_openmode swig_types[65] -#define SWIGTYPE_p_p_PyObject swig_types[66] -#define SWIGTYPE_p_p_p_unsigned_long_long swig_types[67] -#define SWIGTYPE_p_p_unsigned_long_long swig_types[68] -#define SWIGTYPE_p_p_void swig_types[69] -#define SWIGTYPE_p_pos_type swig_types[70] -#define SWIGTYPE_p_sdsl__bit_vector swig_types[71] -#define SWIGTYPE_p_seekdir swig_types[72] -#define SWIGTYPE_p_short swig_types[73] -#define SWIGTYPE_p_signed_char swig_types[74] -#define SWIGTYPE_p_size_t swig_types[75] -#define SWIGTYPE_p_size_type swig_types[76] -#define SWIGTYPE_p_state_type swig_types[77] -#define SWIGTYPE_p_std__allocatorT_btllib__Indexlr__Minimizer_t swig_types[78] -#define SWIGTYPE_p_std__allocatorT_double_t swig_types[79] -#define SWIGTYPE_p_std__allocatorT_int_t swig_types[80] -#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[81] -#define SWIGTYPE_p_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t swig_types[82] -#define SWIGTYPE_p_std__allocatorT_unsigned_char_t swig_types[83] -#define SWIGTYPE_p_std__allocatorT_unsigned_int_t swig_types[84] -#define SWIGTYPE_p_std__allocatorT_unsigned_long_long_t swig_types[85] -#define SWIGTYPE_p_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[86] -#define SWIGTYPE_p_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[87] -#define SWIGTYPE_p_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[88] -#define SWIGTYPE_p_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[89] -#define SWIGTYPE_p_std__basic_streambufT_char_std__char_traitsT_char_t_t swig_types[90] -#define SWIGTYPE_p_std__basic_stringT_char_std__char_traitsT_char_t_std__allocatorT_char_t_t swig_types[91] -#define SWIGTYPE_p_std__ios_base swig_types[92] -#define SWIGTYPE_p_std__locale swig_types[93] -#define SWIGTYPE_p_std__string swig_types[94] -#define SWIGTYPE_p_std__string_view swig_types[95] -#define SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t swig_types[96] -#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[97] -#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[98] -#define SWIGTYPE_p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t swig_types[99] -#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[100] -#define 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_types[101] -#define 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 swig_types[102] -#define SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t swig_types[103] -#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[104] -#define SWIGTYPE_p_std__vectorT_unsigned_long_long_std__allocatorT_unsigned_long_long_t_t swig_types[105] -#define SWIGTYPE_p_streamoff swig_types[106] -#define SWIGTYPE_p_streampos swig_types[107] -#define SWIGTYPE_p_swig__SwigPyIterator swig_types[108] -#define SWIGTYPE_p_traits_type swig_types[109] -#define SWIGTYPE_p_unsigned_char swig_types[110] -#define SWIGTYPE_p_unsigned_int swig_types[111] -#define SWIGTYPE_p_unsigned_long swig_types[112] -#define SWIGTYPE_p_unsigned_long_long swig_types[113] -#define SWIGTYPE_p_unsigned_short swig_types[114] -#define SWIGTYPE_p_value_type swig_types[115] -static swig_type_info *swig_types[117]; -static swig_module_info swig_module = {swig_types, 116, 0, 0, 0, 0}; +#define SWIGTYPE_p_SwigPyObject swig_types[0] +#define SWIGTYPE_p_allocator_type swig_types[1] +#define SWIGTYPE_p_bool swig_types[2] +#define SWIGTYPE_p_btllib__AAHash swig_types[3] +#define SWIGTYPE_p_btllib__Barrier swig_types[4] +#define SWIGTYPE_p_btllib__BlindNtHash swig_types[5] +#define SWIGTYPE_p_btllib__BloomFilter swig_types[6] +#define SWIGTYPE_p_btllib__CString swig_types[7] +#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t swig_types[8] +#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t swig_types[9] +#define SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t swig_types[10] +#define SWIGTYPE_p_btllib__DataSink swig_types[11] +#define SWIGTYPE_p_btllib__DataSource swig_types[12] +#define SWIGTYPE_p_btllib__DataStream swig_types[13] +#define SWIGTYPE_p_btllib__Datatype swig_types[14] +#define SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t swig_types[15] +#define SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__Flag swig_types[16] +#define SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator swig_types[17] +#define SWIGTYPE_p_btllib__KmerBloomFilter swig_types[18] +#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t swig_types[19] +#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t swig_types[20] +#define SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t swig_types[21] +#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t swig_types[22] +#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t swig_types[23] +#define SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t swig_types[24] +#define SWIGTYPE_p_btllib__Minimizer swig_types[25] +#define SWIGTYPE_p_btllib__NtHash swig_types[26] +#define SWIGTYPE_p_btllib__RandSeq swig_types[27] +#define SWIGTYPE_p_btllib__Record swig_types[28] +#define SWIGTYPE_p_btllib__SeedAAHash swig_types[29] +#define SWIGTYPE_p_btllib__SeedBloomFilter swig_types[30] +#define SWIGTYPE_p_btllib__SeedNtHash swig_types[31] +#define SWIGTYPE_p_btllib__SeqReader swig_types[32] +#define SWIGTYPE_p_btllib__SeqReader__Flag swig_types[33] +#define SWIGTYPE_p_btllib__SeqReader__Record swig_types[34] +#define SWIGTYPE_p_btllib__SeqReader__RecordIterator swig_types[35] +#define SWIGTYPE_p_btllib__SeqWriter swig_types[36] +#define SWIGTYPE_p_char swig_types[37] +#define SWIGTYPE_p_char_type swig_types[38] +#define SWIGTYPE_p_difference_type swig_types[39] +#define SWIGTYPE_p_double swig_types[40] +#define SWIGTYPE_p_f_enum_std__ios_base__event_r_std__ios_base_int__void swig_types[41] +#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[42] +#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[43] +#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[44] +#define SWIGTYPE_p_f_r_std__basic_ios__char_std__char_traits__char______r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[45] +#define SWIGTYPE_p_f_r_std__basic_istream__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[46] +#define SWIGTYPE_p_f_r_std__basic_istream__char_std__char_traits__char______r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[47] +#define SWIGTYPE_p_f_r_std__basic_ostream__char_std__char_traits__char______r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[48] +#define SWIGTYPE_p_f_r_std__basic_ostream__char_std__char_traits__char______r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[49] +#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[50] +#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[51] +#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[52] +#define SWIGTYPE_p_f_r_std__ios_base__r_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[53] +#define SWIGTYPE_p_f_r_std__ios_base__r_std__ios_base swig_types[54] +#define SWIGTYPE_p_float swig_types[55] +#define SWIGTYPE_p_fmtflags swig_types[56] +#define SWIGTYPE_p_int swig_types[57] +#define SWIGTYPE_p_int_type swig_types[58] +#define SWIGTYPE_p_iostate swig_types[59] +#define SWIGTYPE_p_long swig_types[60] +#define SWIGTYPE_p_long_double swig_types[61] +#define SWIGTYPE_p_long_long swig_types[62] +#define SWIGTYPE_p_off_type swig_types[63] +#define SWIGTYPE_p_openmode swig_types[64] +#define SWIGTYPE_p_p_PyObject swig_types[65] +#define SWIGTYPE_p_p_p_unsigned_long_long swig_types[66] +#define SWIGTYPE_p_p_unsigned_long_long swig_types[67] +#define SWIGTYPE_p_p_void swig_types[68] +#define SWIGTYPE_p_pos_type swig_types[69] +#define SWIGTYPE_p_sdsl__bit_vector swig_types[70] +#define SWIGTYPE_p_seekdir swig_types[71] +#define SWIGTYPE_p_short swig_types[72] +#define SWIGTYPE_p_signed_char swig_types[73] +#define SWIGTYPE_p_size_t swig_types[74] +#define SWIGTYPE_p_size_type swig_types[75] +#define SWIGTYPE_p_state_type swig_types[76] +#define SWIGTYPE_p_std__allocatorT_btllib__Minimizer_t swig_types[77] +#define SWIGTYPE_p_std__allocatorT_double_t swig_types[78] +#define SWIGTYPE_p_std__allocatorT_int_t swig_types[79] +#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[80] +#define SWIGTYPE_p_std__allocatorT_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t_t swig_types[81] +#define SWIGTYPE_p_std__allocatorT_unsigned_char_t swig_types[82] +#define SWIGTYPE_p_std__allocatorT_unsigned_int_t swig_types[83] +#define SWIGTYPE_p_std__allocatorT_unsigned_long_long_t swig_types[84] +#define SWIGTYPE_p_std__basic_iosT_char_std__char_traitsT_char_t_t swig_types[85] +#define SWIGTYPE_p_std__basic_iostreamT_char_std__char_traitsT_char_t_t swig_types[86] +#define SWIGTYPE_p_std__basic_istreamT_char_std__char_traitsT_char_t_t swig_types[87] +#define SWIGTYPE_p_std__basic_ostreamT_char_std__char_traitsT_char_t_t swig_types[88] +#define SWIGTYPE_p_std__basic_streambufT_char_std__char_traitsT_char_t_t swig_types[89] +#define SWIGTYPE_p_std__basic_stringT_char_std__char_traitsT_char_t_std__allocatorT_char_t_t swig_types[90] +#define SWIGTYPE_p_std__ios_base swig_types[91] +#define SWIGTYPE_p_std__locale swig_types[92] +#define SWIGTYPE_p_std__string swig_types[93] +#define SWIGTYPE_p_std__string_view swig_types[94] +#define SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t swig_types[95] +#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[96] +#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[97] +#define SWIGTYPE_p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t swig_types[98] +#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[99] +#define 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_types[100] +#define 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 swig_types[101] +#define SWIGTYPE_p_std__vectorT_unsigned_char_std__allocatorT_unsigned_char_t_t swig_types[102] +#define SWIGTYPE_p_std__vectorT_unsigned_int_std__allocatorT_unsigned_int_t_t swig_types[103] +#define SWIGTYPE_p_std__vectorT_unsigned_long_long_std__allocatorT_unsigned_long_long_t_t swig_types[104] +#define SWIGTYPE_p_streamoff swig_types[105] +#define SWIGTYPE_p_streampos swig_types[106] +#define SWIGTYPE_p_swig__SwigPyIterator swig_types[107] +#define SWIGTYPE_p_traits_type swig_types[108] +#define SWIGTYPE_p_unsigned_char swig_types[109] +#define SWIGTYPE_p_unsigned_int swig_types[110] +#define SWIGTYPE_p_unsigned_long swig_types[111] +#define SWIGTYPE_p_unsigned_long_long swig_types[112] +#define SWIGTYPE_p_unsigned_short swig_types[113] +#define SWIGTYPE_p_value_type swig_types[114] +static swig_type_info *swig_types[116]; +static swig_module_info swig_module = {swig_types, 115, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -7012,116 +7011,116 @@ SWIGINTERN std::vector< uint64_t >::iterator std_vector_Sl_uint64_t_Sg__insert__ SWIGINTERN void std_vector_Sl_uint64_t_Sg__insert__SWIG_1(std::vector< uint64_t > *self,std::vector< uint64_t >::iterator pos,std::vector< uint64_t >::size_type n,std::vector< uint64_t >::value_type const &x){ self->insert(pos, n, x); } namespace swig { - template <> struct traits< btllib::Indexlr::Minimizer > { + template <> struct traits< btllib::Minimizer > { typedef pointer_category category; - static const char* type_name() { return"btllib::Indexlr::Minimizer"; } + static const char* type_name() { return"btllib::Minimizer"; } }; } namespace swig { - template <> struct traits > > { + template <> struct traits > > { typedef pointer_category category; static const char* type_name() { - return "std::vector<" "btllib::Indexlr::Minimizer" "," "std::allocator< btllib::Indexlr::Minimizer >" " >"; + return "std::vector<" "btllib::Minimizer" "," "std::allocator< btllib::Minimizer >" " >"; } }; } -SWIGINTERN swig::SwigPyIterator *std_vector_Sl_btllib_Indexlr_Minimizer_Sg__iterator(std::vector< btllib::Indexlr::Minimizer > *self,PyObject **PYTHON_SELF){ +SWIGINTERN swig::SwigPyIterator *std_vector_Sl_btllib_Minimizer_Sg__iterator(std::vector< btllib::Minimizer > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } -SWIGINTERN bool std_vector_Sl_btllib_Indexlr_Minimizer_Sg____nonzero__(std::vector< btllib::Indexlr::Minimizer > const *self){ +SWIGINTERN bool std_vector_Sl_btllib_Minimizer_Sg____nonzero__(std::vector< btllib::Minimizer > const *self){ return !(self->empty()); } -SWIGINTERN bool std_vector_Sl_btllib_Indexlr_Minimizer_Sg____bool__(std::vector< btllib::Indexlr::Minimizer > const *self){ +SWIGINTERN bool std_vector_Sl_btllib_Minimizer_Sg____bool__(std::vector< btllib::Minimizer > const *self){ return !(self->empty()); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::size_type std_vector_Sl_btllib_Indexlr_Minimizer_Sg____len__(std::vector< btllib::Indexlr::Minimizer > const *self){ +SWIGINTERN std::vector< btllib::Minimizer >::size_type std_vector_Sl_btllib_Minimizer_Sg____len__(std::vector< btllib::Minimizer > const *self){ return self->size(); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getslice__(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i,std::vector< btllib::Indexlr::Minimizer >::difference_type j){ +SWIGINTERN std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *std_vector_Sl_btllib_Minimizer_Sg____getslice__(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i,std::vector< btllib::Minimizer >::difference_type j){ return swig::getslice(self, i, j, 1); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setslice____SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i,std::vector< btllib::Indexlr::Minimizer >::difference_type j){ - swig::setslice(self, i, j, 1, std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >()); +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setslice____SWIG_0(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i,std::vector< btllib::Minimizer >::difference_type j){ + swig::setslice(self, i, j, 1, std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >()); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setslice____SWIG_1(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i,std::vector< btllib::Indexlr::Minimizer >::difference_type j,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &v){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setslice____SWIG_1(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i,std::vector< btllib::Minimizer >::difference_type j,std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &v){ swig::setslice(self, i, j, 1, v); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delslice__(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i,std::vector< btllib::Indexlr::Minimizer >::difference_type j){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____delslice__(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i,std::vector< btllib::Minimizer >::difference_type j){ swig::delslice(self, i, j, 1); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delitem____SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____delitem____SWIG_0(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i){ swig::erase(self, swig::getpos(self, i)); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getitem____SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ +SWIGINTERN std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *std_vector_Sl_btllib_Minimizer_Sg____getitem____SWIG_0(std::vector< btllib::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step); - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type id = i; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type jd = j; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type id = i; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,SWIGPY_SLICEOBJECT *slice,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &v){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_0(std::vector< btllib::Minimizer > *self,SWIGPY_SLICEOBJECT *slice,std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step); - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type id = i; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type jd = j; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type id = i; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_1(std::vector< btllib::Indexlr::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_1(std::vector< btllib::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step); - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type id = i; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type jd = j; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type id = i; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type jd = j; swig::delslice(self, id, jd, step); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delitem____SWIG_1(std::vector< btllib::Indexlr::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____delitem____SWIG_1(std::vector< btllib::Minimizer > *self,SWIGPY_SLICEOBJECT *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step); - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type id = i; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::difference_type jd = j; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type id = i; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::difference_type jd = j; swig::delslice(self, id, jd, step); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::value_type const &std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getitem____SWIG_1(std::vector< btllib::Indexlr::Minimizer > const *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i){ +SWIGINTERN std::vector< btllib::Minimizer >::value_type const &std_vector_Sl_btllib_Minimizer_Sg____getitem____SWIG_1(std::vector< btllib::Minimizer > const *self,std::vector< btllib::Minimizer >::difference_type i){ return *(swig::cgetpos(self, i)); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_2(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i,std::vector< btllib::Indexlr::Minimizer >::value_type const &x){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_2(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i,std::vector< btllib::Minimizer >::value_type const &x){ *(swig::getpos(self,i)) = x; } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_3(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::difference_type i){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_3(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::difference_type i){ swig::erase(self, swig::getpos(self, i)); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::value_type std_vector_Sl_btllib_Indexlr_Minimizer_Sg__pop(std::vector< btllib::Indexlr::Minimizer > *self){ +SWIGINTERN std::vector< btllib::Minimizer >::value_type std_vector_Sl_btllib_Minimizer_Sg__pop(std::vector< btllib::Minimizer > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >::value_type x = self->back(); + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >::value_type x = self->back(); self->pop_back(); return x; } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg__append(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::value_type const &x){ +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg__append(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::value_type const &x){ self->push_back(x); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::iterator std_vector_Sl_btllib_Indexlr_Minimizer_Sg__erase__SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::iterator pos){ return self->erase(pos); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::iterator std_vector_Sl_btllib_Indexlr_Minimizer_Sg__erase__SWIG_1(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::iterator first,std::vector< btllib::Indexlr::Minimizer >::iterator last){ return self->erase(first, last); } -SWIGINTERN std::vector< btllib::Indexlr::Minimizer >::iterator std_vector_Sl_btllib_Indexlr_Minimizer_Sg__insert__SWIG_0(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::iterator pos,std::vector< btllib::Indexlr::Minimizer >::value_type const &x){ return self->insert(pos, x); } -SWIGINTERN void std_vector_Sl_btllib_Indexlr_Minimizer_Sg__insert__SWIG_1(std::vector< btllib::Indexlr::Minimizer > *self,std::vector< btllib::Indexlr::Minimizer >::iterator pos,std::vector< btllib::Indexlr::Minimizer >::size_type n,std::vector< btllib::Indexlr::Minimizer >::value_type const &x){ self->insert(pos, n, x); } +SWIGINTERN std::vector< btllib::Minimizer >::iterator std_vector_Sl_btllib_Minimizer_Sg__erase__SWIG_0(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::iterator pos){ return self->erase(pos); } +SWIGINTERN std::vector< btllib::Minimizer >::iterator std_vector_Sl_btllib_Minimizer_Sg__erase__SWIG_1(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::iterator first,std::vector< btllib::Minimizer >::iterator last){ return self->erase(first, last); } +SWIGINTERN std::vector< btllib::Minimizer >::iterator std_vector_Sl_btllib_Minimizer_Sg__insert__SWIG_0(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::iterator pos,std::vector< btllib::Minimizer >::value_type const &x){ return self->insert(pos, x); } +SWIGINTERN void std_vector_Sl_btllib_Minimizer_Sg__insert__SWIG_1(std::vector< btllib::Minimizer > *self,std::vector< btllib::Minimizer >::iterator pos,std::vector< btllib::Minimizer >::size_type n,std::vector< btllib::Minimizer >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits >, std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > > { @@ -7240,12 +7239,6 @@ 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::Indexlr *btllib_Indexlr___enter__(btllib::Indexlr *self){ - return self; - } -SWIGINTERN void btllib_Indexlr___exit__(btllib::Indexlr *self,PyObject *,PyObject *,PyObject *){ - self->close(); - } SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr) @@ -7333,6 +7326,12 @@ SWIG_From_unsigned_SS_short (unsigned short value) return SWIG_From_unsigned_SS_long (value); } +SWIGINTERN btllib::Indexlr< btllib::NtHash > *btllib_Indexlr_Sl_btllib_NtHash_Sg____enter__(btllib::Indexlr< btllib::NtHash > *self){ + return self; + } +SWIGINTERN void btllib_Indexlr_Sl_btllib_NtHash_Sg____exit__(btllib::Indexlr< btllib::NtHash > *self,PyObject *,PyObject *,PyObject *){ + self->close(); + } #ifdef __cplusplus extern "C" { #endif @@ -23554,7 +23553,7 @@ SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_VectorUint64t) /* defines _wrap_delete_Ve SWIGINTERN PyObject *_wrap_VectorMinimizer_iterator(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -23563,12 +23562,12 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_iterator(PyObject *self, PyObject *ar arg2 = &self; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_iterator", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_iterator" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_iterator" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (swig::SwigPyIterator *)std_vector_Sl_btllib_Indexlr_Minimizer_Sg__iterator(arg1,arg2); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (swig::SwigPyIterator *)std_vector_Sl_btllib_Minimizer_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: @@ -23578,19 +23577,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_iterator(PyObject *self, PyObject *ar SWIGINTERN PyObject *_wrap_VectorMinimizer___nonzero__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer___nonzero__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___nonzero__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___nonzero__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (bool)std_vector_Sl_btllib_Indexlr_Minimizer_Sg____nonzero__((std::vector< btllib::Indexlr::Minimizer > const *)arg1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (bool)std_vector_Sl_btllib_Minimizer_Sg____nonzero__((std::vector< btllib::Minimizer > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -23600,19 +23599,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___nonzero__(PyObject *self, PyObject SWIGINTERN PyObject *_wrap_VectorMinimizer___bool__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer___bool__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___bool__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___bool__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (bool)std_vector_Sl_btllib_Indexlr_Minimizer_Sg____bool__((std::vector< btllib::Indexlr::Minimizer > const *)arg1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (bool)std_vector_Sl_btllib_Minimizer_Sg____bool__((std::vector< btllib::Minimizer > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -23622,19 +23621,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___bool__(PyObject *self, PyObject *ar SWIGINTERN PyObject *_wrap_VectorMinimizer___len__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type result; + std::vector< btllib::Minimizer >::size_type result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer___len__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___len__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___len__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = std_vector_Sl_btllib_Indexlr_Minimizer_Sg____len__((std::vector< btllib::Indexlr::Minimizer > const *)arg1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = std_vector_Sl_btllib_Minimizer_Sg____len__((std::vector< btllib::Minimizer > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -23644,9 +23643,9 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___len__(PyObject *self, PyObject *arg SWIGINTERN PyObject *_wrap_VectorMinimizer___getslice__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg3 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -23654,33 +23653,33 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___getslice__(PyObject *self, PyObject ptrdiff_t val3 ; int ecode3 = 0 ; PyObject *swig_obj[3] ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *result = 0 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *result = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer___getslice__", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getslice__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getslice__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___getslice__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___getslice__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___getslice__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___getslice__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg3 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val3); + arg3 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val3); try { - result = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); + result = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)std_vector_Sl_btllib_Minimizer_Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_POINTER_OWN | 0 ); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; @@ -23689,9 +23688,9 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___getslice__(PyObject *self, PyObject SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg3 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -23701,23 +23700,23 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice____SWIG_0(PyObject *self, (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setslice__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setslice__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setslice__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setslice__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___setslice__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___setslice__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg3 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val3); + arg3 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val3); try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); + std_vector_Sl_btllib_Minimizer_Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -23732,10 +23731,10 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice____SWIG_0(PyObject *self, SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg3 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *arg4 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer >::difference_type arg3 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -23746,34 +23745,34 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice____SWIG_1(PyObject *self, (void)self; if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setslice__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setslice__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setslice__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setslice__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___setslice__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___setslice__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg3 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val3); + arg3 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val3); { - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *ptr = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)0; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *ptr = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)0; res4 = swig::asptr(swig_obj[3], &ptr); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorMinimizer___setslice__" "', argument " "4"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorMinimizer___setslice__" "', argument " "4"" of type '" "std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setslice__" "', argument " "4"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setslice__" "', argument " "4"" of type '" "std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &""'"); } arg4 = ptr; } try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &)*arg4); + std_vector_Sl_btllib_Minimizer_Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -23811,17 +23810,17 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setslice__(PyObject *self, PyObject fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer___setslice__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::__setslice__(std::vector< btllib::Indexlr::Minimizer >::difference_type,std::vector< btllib::Indexlr::Minimizer >::difference_type)\n" - " std::vector< btllib::Indexlr::Minimizer >::__setslice__(std::vector< btllib::Indexlr::Minimizer >::difference_type,std::vector< btllib::Indexlr::Minimizer >::difference_type,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &)\n"); + " std::vector< btllib::Minimizer >::__setslice__(std::vector< btllib::Minimizer >::difference_type,std::vector< btllib::Minimizer >::difference_type)\n" + " std::vector< btllib::Minimizer >::__setslice__(std::vector< btllib::Minimizer >::difference_type,std::vector< btllib::Minimizer >::difference_type,std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer___delslice__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg3 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -23832,23 +23831,23 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delslice__(PyObject *self, PyObject (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer___delslice__", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delslice__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delslice__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___delslice__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___delslice__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___delslice__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer___delslice__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg3 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val3); + arg3 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val3); try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); + std_vector_Sl_btllib_Minimizer_Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -23863,8 +23862,8 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delslice__(PyObject *self, PyObject SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -23872,18 +23871,18 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem____SWIG_0(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___delitem__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___delitem__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2)); + std_vector_Sl_btllib_Minimizer_Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -23898,19 +23897,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem____SWIG_0(PyObject *self, P SWIGINTERN PyObject *_wrap_VectorMinimizer___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; SWIGPY_SLICEOBJECT *arg2 = (SWIGPY_SLICEOBJECT *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *result = 0 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); { if (!PySlice_Check(swig_obj[1])) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'"); @@ -23918,13 +23917,13 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___getitem____SWIG_0(PyObject *self, P arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1]; } try { - result = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getitem____SWIG_0(arg1,arg2); + result = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)std_vector_Sl_btllib_Minimizer_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_POINTER_OWN | 0 ); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; @@ -23933,20 +23932,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___getitem____SWIG_0(PyObject *self, P SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; SWIGPY_SLICEOBJECT *arg2 = (SWIGPY_SLICEOBJECT *) 0 ; - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *arg3 = 0 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); { if (!PySlice_Check(swig_obj[1])) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'"); @@ -23954,18 +23953,18 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_0(PyObject *self, P arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1]; } { - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *ptr = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)0; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *ptr = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)0; res3 = swig::asptr(swig_obj[2], &ptr); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &""'"); } arg3 = ptr; } try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &)*arg3); + std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -23982,18 +23981,18 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_0(PyObject *self, P SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; SWIGPY_SLICEOBJECT *arg2 = (SWIGPY_SLICEOBJECT *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); { if (!PySlice_Check(swig_obj[1])) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'"); @@ -24001,7 +24000,7 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_1(PyObject *self, P arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1]; } try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_1(arg1,arg2); + std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -24016,18 +24015,18 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_1(PyObject *self, P SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; SWIGPY_SLICEOBJECT *arg2 = (SWIGPY_SLICEOBJECT *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___delitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); { if (!PySlice_Check(swig_obj[1])) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'"); @@ -24035,7 +24034,7 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem____SWIG_1(PyObject *self, P arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1]; } try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____delitem____SWIG_1(arg1,arg2); + std_vector_Sl_btllib_Minimizer_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -24078,41 +24077,41 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___delitem__(PyObject *self, PyObject fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer___delitem__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::__delitem__(std::vector< btllib::Indexlr::Minimizer >::difference_type)\n" - " std::vector< btllib::Indexlr::Minimizer >::__delitem__(SWIGPY_SLICEOBJECT *)\n"); + " std::vector< btllib::Minimizer >::__delitem__(std::vector< btllib::Minimizer >::difference_type)\n" + " std::vector< btllib::Minimizer >::__delitem__(SWIGPY_SLICEOBJECT *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *result = 0 ; + std::vector< btllib::Minimizer >::value_type *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___getitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___getitem__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___getitem__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); try { - result = (std::vector< btllib::Indexlr::Minimizer >::value_type *) &std_vector_Sl_btllib_Indexlr_Minimizer_Sg____getitem____SWIG_1((std::vector< btllib::Indexlr::Minimizer > const *)arg1,SWIG_STD_MOVE(arg2)); + result = (std::vector< btllib::Minimizer >::value_type *) &std_vector_Sl_btllib_Minimizer_Sg____getitem____SWIG_1((std::vector< btllib::Minimizer > const *)arg1,SWIG_STD_MOVE(arg2)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); + (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); return resultobj; fail: return NULL; @@ -24149,17 +24148,17 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___getitem__(PyObject *self, PyObject fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer___getitem__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::__getitem__(SWIGPY_SLICEOBJECT *)\n" - " std::vector< btllib::Indexlr::Minimizer >::__getitem__(std::vector< btllib::Indexlr::Minimizer >::difference_type) const\n"); + " std::vector< btllib::Minimizer >::__getitem__(SWIGPY_SLICEOBJECT *)\n" + " std::vector< btllib::Minimizer >::__getitem__(std::vector< btllib::Minimizer >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg3 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -24169,26 +24168,26 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_2(PyObject *self, P (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer___setitem__" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg3 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp3); + arg3 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp3); try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(btllib::Indexlr::Minimizer const &)*arg3); + std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(btllib::Minimizer const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } @@ -24201,8 +24200,8 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_2(PyObject *self, P SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::difference_type arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; @@ -24210,18 +24209,18 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem____SWIG_3(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer___setitem__" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::difference_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer___setitem__" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::difference_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::difference_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::difference_type >(val2); try { - std_vector_Sl_btllib_Indexlr_Minimizer_Sg____setitem____SWIG_3(arg1,SWIG_STD_MOVE(arg2)); + std_vector_Sl_btllib_Minimizer_Sg____setitem____SWIG_3(arg1,SWIG_STD_MOVE(arg2)); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { @@ -24269,7 +24268,7 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem__(PyObject *self, PyObject } if (!_v) goto check_3; { - int res = swig::asptr(argv[2], (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > >**)(0)); + int res = swig::asptr(argv[2], (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; @@ -24286,34 +24285,34 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer___setitem__(PyObject *self, PyObject fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer___setitem__'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > const &)\n" - " std::vector< btllib::Indexlr::Minimizer >::__setitem__(SWIGPY_SLICEOBJECT *)\n" - " std::vector< btllib::Indexlr::Minimizer >::__setitem__(std::vector< btllib::Indexlr::Minimizer >::difference_type,std::vector< btllib::Indexlr::Minimizer >::value_type const &)\n" - " std::vector< btllib::Indexlr::Minimizer >::__setitem__(std::vector< btllib::Indexlr::Minimizer >::difference_type)\n"); + " std::vector< btllib::Minimizer >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > const &)\n" + " std::vector< btllib::Minimizer >::__setitem__(SWIGPY_SLICEOBJECT *)\n" + " std::vector< btllib::Minimizer >::__setitem__(std::vector< btllib::Minimizer >::difference_type,std::vector< btllib::Minimizer >::value_type const &)\n" + " std::vector< btllib::Minimizer >::__setitem__(std::vector< btllib::Minimizer >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer_pop(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type result; + std::vector< btllib::Minimizer >::value_type result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_pop", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_pop" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_pop" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); try { - result = std_vector_Sl_btllib_Indexlr_Minimizer_Sg__pop(arg1); + result = std_vector_Sl_btllib_Minimizer_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } - resultobj = SWIG_NewPointerObj((new std::vector< btllib::Indexlr::Minimizer >::value_type(result)), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_OWN | 0 ); + resultobj = SWIG_NewPointerObj((new std::vector< btllib::Minimizer >::value_type(result)), SWIGTYPE_p_btllib__Minimizer, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; @@ -24322,8 +24321,8 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_pop(PyObject *self, PyObject *args) { SWIGINTERN PyObject *_wrap_VectorMinimizer_append(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg2 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -24333,20 +24332,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_append(PyObject *self, PyObject *args (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_append" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_append" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_append" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_append" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_append" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_append" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp2); - std_vector_Sl_btllib_Indexlr_Minimizer_Sg__append(arg1,(btllib::Indexlr::Minimizer const &)*arg2); + arg2 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp2); + std_vector_Sl_btllib_Minimizer_Sg__append(arg1,(btllib::Minimizer const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24356,12 +24355,12 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_append(PyObject *self, PyObject *args SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *result = 0 ; + std::vector< btllib::Minimizer > *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (std::vector< btllib::Indexlr::Minimizer > *)new std::vector< btllib::Indexlr::Minimizer >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); + result = (std::vector< btllib::Minimizer > *)new std::vector< btllib::Minimizer >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; @@ -24370,25 +24369,25 @@ SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_0(PyObject *self, Py_ssize_t nobj SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = 0 ; + std::vector< btllib::Minimizer > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - std::vector< btllib::Indexlr::Minimizer > *result = 0 ; + std::vector< btllib::Minimizer > *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *ptr = (std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *)0; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *ptr = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)0; res1 = swig::asptr(swig_obj[0], &ptr); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const &""'"); } arg1 = ptr; } - result = (std::vector< btllib::Indexlr::Minimizer > *)new std::vector< btllib::Indexlr::Minimizer >((std::vector< btllib::Indexlr::Minimizer > const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); + result = (std::vector< btllib::Minimizer > *)new std::vector< btllib::Minimizer >((std::vector< btllib::Minimizer > const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -24399,19 +24398,19 @@ SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_1(PyObject *self, Py_ssize_t nobj SWIGINTERN PyObject *_wrap_VectorMinimizer_empty(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; bool result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_empty", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_empty" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_empty" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (bool)((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->empty(); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (bool)((std::vector< btllib::Minimizer > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -24421,19 +24420,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_empty(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type result; + std::vector< btllib::Minimizer >::size_type result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_size", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_size" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_size" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = ((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->size(); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = ((std::vector< btllib::Minimizer > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -24443,8 +24442,8 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_size(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_swap(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer > *arg2 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -24454,19 +24453,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_swap(PyObject *self, PyObject *args) (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_swap" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_swap" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 ); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_swap" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer > &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_swap" "', argument " "2"" of type '" "std::vector< btllib::Minimizer > &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_swap" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer > &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_swap" "', argument " "2"" of type '" "std::vector< btllib::Minimizer > &""'"); } - arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp2); + arg2 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; @@ -24477,20 +24476,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_swap(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_begin(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator result; + std::vector< btllib::Minimizer >::iterator result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_begin", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_begin" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_begin" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); result = (arg1)->begin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::iterator & >(result)), + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24500,20 +24499,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_begin(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_end(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator result; + std::vector< btllib::Minimizer >::iterator result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_end", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_end" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_end" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); result = (arg1)->end(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::iterator & >(result)), + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24523,20 +24522,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_end(PyObject *self, PyObject *args) { SWIGINTERN PyObject *_wrap_VectorMinimizer_rbegin(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::reverse_iterator result; + std::vector< btllib::Minimizer >::reverse_iterator result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_rbegin", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_rbegin" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_rbegin" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); result = (arg1)->rbegin(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::reverse_iterator & >(result)), + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24546,20 +24545,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_rbegin(PyObject *self, PyObject *args SWIGINTERN PyObject *_wrap_VectorMinimizer_rend(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::reverse_iterator result; + std::vector< btllib::Minimizer >::reverse_iterator result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_rend", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_rend" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_rend" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); result = (arg1)->rend(); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::reverse_iterator & >(result)), + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24569,17 +24568,17 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_rend(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_clear(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_clear", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_clear" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_clear" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; @@ -24590,20 +24589,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_clear(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_get_allocator(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - SwigValueWrapper< std::allocator< btllib::Indexlr::Minimizer > > result; + SwigValueWrapper< std::allocator< btllib::Minimizer > > result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_get_allocator", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_get_allocator" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_get_allocator" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = ((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->get_allocator(); - resultobj = SWIG_NewPointerObj((new std::vector< btllib::Indexlr::Minimizer >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_btllib__Indexlr__Minimizer_t, SWIG_POINTER_OWN | 0 ); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = ((std::vector< btllib::Minimizer > const *)arg1)->get_allocator(); + resultobj = SWIG_NewPointerObj((new std::vector< btllib::Minimizer >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_btllib__Minimizer_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; @@ -24612,20 +24611,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_get_allocator(PyObject *self, PyObjec SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer >::size_type arg1 ; + std::vector< btllib::Minimizer >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; - std::vector< btllib::Indexlr::Minimizer > *result = 0 ; + std::vector< btllib::Minimizer > *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg1 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val1); - result = (std::vector< btllib::Indexlr::Minimizer > *)new std::vector< btllib::Indexlr::Minimizer >(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); + arg1 = static_cast< std::vector< btllib::Minimizer >::size_type >(val1); + result = (std::vector< btllib::Minimizer > *)new std::vector< btllib::Minimizer >(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; @@ -24634,17 +24633,17 @@ SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_2(PyObject *self, Py_ssize_t nobj SWIGINTERN PyObject *_wrap_VectorMinimizer_pop_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_pop_back", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_pop_back" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_pop_back" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; @@ -24655,8 +24654,8 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_pop_back(PyObject *self, PyObject *ar SWIGINTERN PyObject *_wrap_VectorMinimizer_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; @@ -24664,16 +24663,16 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_resize__SWIG_0(PyObject *self, Py_ssi (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_resize" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_resize" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_resize" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_resize" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; @@ -24684,34 +24683,34 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_resize__SWIG_0(PyObject *self, Py_ssi SWIGINTERN PyObject *_wrap_VectorMinimizer_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; - std::vector< btllib::Indexlr::Minimizer >::iterator result; + std::vector< btllib::Minimizer >::iterator result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_erase" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_erase" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } } - result = std_vector_Sl_btllib_Indexlr_Minimizer_Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2)); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::iterator & >(result)), + result = std_vector_Sl_btllib_Minimizer_Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2)); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24721,48 +24720,48 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_erase__SWIG_0(PyObject *self, Py_ssiz SWIGINTERN PyObject *_wrap_VectorMinimizer_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator arg2 ; - std::vector< btllib::Indexlr::Minimizer >::iterator arg3 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::iterator arg2 ; + std::vector< btllib::Minimizer >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; - std::vector< btllib::Indexlr::Minimizer >::iterator result; + std::vector< btllib::Minimizer >::iterator result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_erase" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_erase" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } } res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_erase" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } } - result = std_vector_Sl_btllib_Indexlr_Minimizer_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::iterator & >(result)), + result = std_vector_Sl_btllib_Minimizer_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -24793,39 +24792,39 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_erase(PyObject *self, PyObject *args) fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer_erase'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::erase(std::vector< btllib::Indexlr::Minimizer >::iterator)\n" - " std::vector< btllib::Indexlr::Minimizer >::erase(std::vector< btllib::Indexlr::Minimizer >::iterator,std::vector< btllib::Indexlr::Minimizer >::iterator)\n"); + " std::vector< btllib::Minimizer >::erase(std::vector< btllib::Minimizer >::iterator)\n" + " std::vector< btllib::Minimizer >::erase(std::vector< btllib::Minimizer >::iterator,std::vector< btllib::Minimizer >::iterator)\n"); return 0; } SWIGINTERN int _wrap_new_VectorMinimizer__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer >::size_type arg1 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg2 = 0 ; + std::vector< btllib::Minimizer >::size_type arg1 ; + std::vector< btllib::Minimizer >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - std::vector< btllib::Indexlr::Minimizer > *result = 0 ; + std::vector< btllib::Minimizer > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg1 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg1 = static_cast< std::vector< btllib::Minimizer >::size_type >(val1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VectorMinimizer" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VectorMinimizer" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VectorMinimizer" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VectorMinimizer" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp2); - result = (std::vector< btllib::Indexlr::Minimizer > *)new std::vector< btllib::Indexlr::Minimizer >(arg1,(std::vector< btllib::Indexlr::Minimizer >::value_type const &)*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); + arg2 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp2); + result = (std::vector< btllib::Minimizer > *)new std::vector< btllib::Minimizer >(arg1,(std::vector< btllib::Minimizer >::value_type const &)*arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; @@ -24874,18 +24873,18 @@ SWIGINTERN int _wrap_new_VectorMinimizer(PyObject *self, PyObject *args, PyObjec fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_VectorMinimizer'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::vector()\n" - " std::vector< btllib::Indexlr::Minimizer >::vector(std::vector< btllib::Indexlr::Minimizer > const &)\n" - " std::vector< btllib::Indexlr::Minimizer >::vector(std::vector< btllib::Indexlr::Minimizer >::size_type)\n" - " std::vector< btllib::Indexlr::Minimizer >::vector(std::vector< btllib::Indexlr::Minimizer >::size_type,std::vector< btllib::Indexlr::Minimizer >::value_type const &)\n"); + " std::vector< btllib::Minimizer >::vector()\n" + " std::vector< btllib::Minimizer >::vector(std::vector< btllib::Minimizer > const &)\n" + " std::vector< btllib::Minimizer >::vector(std::vector< btllib::Minimizer >::size_type)\n" + " std::vector< btllib::Minimizer >::vector(std::vector< btllib::Minimizer >::size_type,std::vector< btllib::Minimizer >::value_type const &)\n"); return -1; } SWIGINTERN PyObject *_wrap_VectorMinimizer_push_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg2 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -24895,20 +24894,20 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_push_back(PyObject *self, PyObject *a (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_push_back" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_push_back" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_push_back" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VectorMinimizer_push_back" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_push_back" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_push_back" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg2 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp2); - (arg1)->push_back((std::vector< btllib::Indexlr::Minimizer >::value_type const &)*arg2); + arg2 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp2); + (arg1)->push_back((std::vector< btllib::Minimizer >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -24918,21 +24917,21 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_push_back(PyObject *self, PyObject *a SWIGINTERN PyObject *_wrap_VectorMinimizer_front(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *result = 0 ; + std::vector< btllib::Minimizer >::value_type *result = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_front", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_front" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_front" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (std::vector< btllib::Indexlr::Minimizer >::value_type *) &((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->front(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (std::vector< btllib::Minimizer >::value_type *) &((std::vector< btllib::Minimizer > const *)arg1)->front(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); + (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); return resultobj; fail: return NULL; @@ -24941,21 +24940,21 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_front(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_back(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *result = 0 ; + std::vector< btllib::Minimizer >::value_type *result = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_back", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_back" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_back" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = (std::vector< btllib::Indexlr::Minimizer >::value_type *) &((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->back(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0 ); - (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = (std::vector< btllib::Minimizer >::value_type *) &((std::vector< btllib::Minimizer > const *)arg1)->back(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); + (void)swig::container_owner::value_type>::category>::back_reference(resultobj, self); return resultobj; fail: return NULL; @@ -24964,9 +24963,9 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_back(PyObject *self, PyObject *args) SWIGINTERN PyObject *_wrap_VectorMinimizer_assign(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg3 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::size_type arg2 ; + std::vector< btllib::Minimizer >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; @@ -24977,25 +24976,25 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_assign(PyObject *self, PyObject *args (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_assign", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_assign" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_assign" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_assign" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_assign" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val2); - res3 = SWIG_ConvertPtr(swig_obj[1], &argp3, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg2 = static_cast< std::vector< btllib::Minimizer >::size_type >(val2); + res3 = SWIG_ConvertPtr(swig_obj[1], &argp3, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_assign" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_assign" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_assign" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_assign" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg3 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp3); - (arg1)->assign(arg2,(std::vector< btllib::Indexlr::Minimizer >::value_type const &)*arg3); + arg3 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp3); + (arg1)->assign(arg2,(std::vector< btllib::Minimizer >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25005,9 +25004,9 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_assign(PyObject *self, PyObject *args SWIGINTERN PyObject *_wrap_VectorMinimizer_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type arg2 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg3 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::size_type arg2 ; + std::vector< btllib::Minimizer >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; @@ -25017,25 +25016,25 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_resize__SWIG_1(PyObject *self, Py_ssi (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_resize" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_resize" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_resize" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_resize" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg2 = static_cast< std::vector< btllib::Minimizer >::size_type >(val2); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_resize" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_resize" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_resize" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_resize" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg3 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp3); - (arg1)->resize(arg2,(std::vector< btllib::Indexlr::Minimizer >::value_type const &)*arg3); + arg3 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp3); + (arg1)->resize(arg2,(std::vector< btllib::Minimizer >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25066,53 +25065,53 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_resize(PyObject *self, PyObject *args fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer_resize'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::resize(std::vector< btllib::Indexlr::Minimizer >::size_type)\n" - " std::vector< btllib::Indexlr::Minimizer >::resize(std::vector< btllib::Indexlr::Minimizer >::size_type,std::vector< btllib::Indexlr::Minimizer >::value_type const &)\n"); + " std::vector< btllib::Minimizer >::resize(std::vector< btllib::Minimizer >::size_type)\n" + " std::vector< btllib::Minimizer >::resize(std::vector< btllib::Minimizer >::size_type,std::vector< btllib::Minimizer >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator arg2 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg3 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::iterator arg2 ; + std::vector< btllib::Minimizer >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator result; + std::vector< btllib::Minimizer >::iterator result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_insert" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_insert" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } } - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg3 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp3); - result = std_vector_Sl_btllib_Indexlr_Minimizer_Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(btllib::Indexlr::Minimizer const &)*arg3); - resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Indexlr::Minimizer >::iterator & >(result)), + arg3 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp3); + result = std_vector_Sl_btllib_Minimizer_Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(btllib::Minimizer const &)*arg3); + resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< btllib::Minimizer >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: @@ -25122,10 +25121,10 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_insert__SWIG_0(PyObject *self, Py_ssi SWIGINTERN PyObject *_wrap_VectorMinimizer_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::iterator arg2 ; - std::vector< btllib::Indexlr::Minimizer >::size_type arg3 ; - std::vector< btllib::Indexlr::Minimizer >::value_type *arg4 = 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::iterator arg2 ; + std::vector< btllib::Minimizer >::size_type arg3 ; + std::vector< btllib::Minimizer >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; @@ -25137,36 +25136,36 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_insert__SWIG_1(PyObject *self, Py_ssi (void)self; if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_insert" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_insert" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } else { - swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); + swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { - SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::iterator""'"); + SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VectorMinimizer_insert" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VectorMinimizer_insert" "', argument " "3"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg3 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_btllib__Indexlr__Minimizer, 0 | 0); + arg3 = static_cast< std::vector< btllib::Minimizer >::size_type >(val3); + res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_btllib__Minimizer, 0 | 0); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorMinimizer_insert" "', argument " "4"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VectorMinimizer_insert" "', argument " "4"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_insert" "', argument " "4"" of type '" "std::vector< btllib::Indexlr::Minimizer >::value_type const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VectorMinimizer_insert" "', argument " "4"" of type '" "std::vector< btllib::Minimizer >::value_type const &""'"); } - arg4 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer >::value_type * >(argp4); - std_vector_Sl_btllib_Indexlr_Minimizer_Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(btllib::Indexlr::Minimizer const &)*arg4); + arg4 = reinterpret_cast< std::vector< btllib::Minimizer >::value_type * >(argp4); + std_vector_Sl_btllib_Minimizer_Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(btllib::Minimizer const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -25197,16 +25196,16 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_insert(PyObject *self, PyObject *args fail: SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VectorMinimizer_insert'.\n" " Possible C/C++ prototypes are:\n" - " std::vector< btllib::Indexlr::Minimizer >::insert(std::vector< btllib::Indexlr::Minimizer >::iterator,std::vector< btllib::Indexlr::Minimizer >::value_type const &)\n" - " std::vector< btllib::Indexlr::Minimizer >::insert(std::vector< btllib::Indexlr::Minimizer >::iterator,std::vector< btllib::Indexlr::Minimizer >::size_type,std::vector< btllib::Indexlr::Minimizer >::value_type const &)\n"); + " std::vector< btllib::Minimizer >::insert(std::vector< btllib::Minimizer >::iterator,std::vector< btllib::Minimizer >::value_type const &)\n" + " std::vector< btllib::Minimizer >::insert(std::vector< btllib::Minimizer >::iterator,std::vector< btllib::Minimizer >::size_type,std::vector< btllib::Minimizer >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VectorMinimizer_reserve(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type arg2 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; + std::vector< btllib::Minimizer >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; @@ -25216,16 +25215,16 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_reserve(PyObject *self, PyObject *arg (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_reserve" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_reserve" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_reserve" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer >::size_type""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VectorMinimizer_reserve" "', argument " "2"" of type '" "std::vector< btllib::Minimizer >::size_type""'"); } - arg2 = static_cast< std::vector< btllib::Indexlr::Minimizer >::size_type >(val2); + arg2 = static_cast< std::vector< btllib::Minimizer >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; @@ -25236,19 +25235,19 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_reserve(PyObject *self, PyObject *arg SWIGINTERN PyObject *_wrap_VectorMinimizer_capacity(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::Indexlr::Minimizer >::size_type result; + std::vector< btllib::Minimizer >::size_type result; (void)self; if (!SWIG_Python_UnpackTuple(args, "VectorMinimizer_capacity", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_capacity" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VectorMinimizer_capacity" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > const *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); - result = ((std::vector< btllib::Indexlr::Minimizer > const *)arg1)->capacity(); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); + result = ((std::vector< btllib::Minimizer > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -25258,17 +25257,17 @@ SWIGINTERN PyObject *_wrap_VectorMinimizer_capacity(PyObject *self, PyObject *ar SWIGINTERN PyObject *_wrap_delete_VectorMinimizer(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::vector< btllib::Indexlr::Minimizer > *arg1 = (std::vector< btllib::Indexlr::Minimizer > *) 0 ; + std::vector< btllib::Minimizer > *arg1 = (std::vector< btllib::Minimizer > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; if (!SWIG_Python_UnpackTuple(args, "delete_VectorMinimizer", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, SWIG_POINTER_DISOWN | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Indexlr::Minimizer > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VectorMinimizer" "', argument " "1"" of type '" "std::vector< btllib::Minimizer > *""'"); } - arg1 = reinterpret_cast< std::vector< btllib::Indexlr::Minimizer > * >(argp1); + arg1 = reinterpret_cast< std::vector< btllib::Minimizer > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -27058,175 +27057,383 @@ SWIGPY_OBJOBJARGPROC_CLOSURE(_wrap_VectorSpacedSeed___setitem__) /* defines _wra SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_VectorSpacedSeed) /* defines _wrap_delete_VectorSpacedSeed_destructor_closure */ -SWIGINTERN PyObject *_wrap_Indexlr_output_id(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Minimizer__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::Minimizer *result = 0 ; + + (void)self; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::Minimizer *)new btllib::Minimizer(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__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 ; + size_t val3 ; + int ecode3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + btllib::Minimizer *result = 0 ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) 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""'"); + } + 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 '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); + } + 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; + } + result = (btllib::Minimizer *)new btllib::Minimizer(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Minimizer, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_Minimizer__SWIG_2(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 ; + std::string arg6 ; + uint64_t val1 ; + int ecode1 = 0 ; + uint64_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + btllib::Minimizer *result = 0 ; + + (void)self; + if ((nobjs < 6) || (nobjs > 6)) 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""'"); + } + 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 '" "new_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); + } + 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; + } + { + 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::Minimizer *)new btllib::Minimizer(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__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; + } + +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Minimizer'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::Minimizer::Minimizer()\n" + " btllib::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string)\n" + " btllib::Minimizer::Minimizer(uint64_t,uint64_t,size_t,bool,std::string,std::string)\n"); + return -1; +} + + +SWIGINTERN PyObject *_wrap_Minimizer_min_hash_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + uint64_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_id" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_id(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::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 '" "Minimizer_min_hash_set" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + if (arg1) (arg1)->min_hash = arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_bx(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_min_hash_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + uint64_t 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_Python_UnpackTuple(args, "Minimizer_min_hash_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_bx" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_min_hash_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_bx(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + result = (uint64_t) ((arg1)->min_hash); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_seq(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_out_hash_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + uint64_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_out_hash_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_seq(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::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 '" "Minimizer_out_hash_set" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + if (arg1) (arg1)->out_hash = arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_output_qual(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_out_hash_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + uint64_t 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 (!SWIG_Python_UnpackTuple(args, "Minimizer_out_hash_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_out_hash_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->output_qual(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::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_Indexlr_filter_in(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_pos_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + size_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_in" "', argument " "1"" of type '" "btllib::Indexlr const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->filter_in(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::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: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_filter_out(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_pos_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + size_t 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 (!SWIG_Python_UnpackTuple(args, "Minimizer_pos_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_pos_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->filter_out(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + result = ((arg1)->pos); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_short_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_forward_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + bool val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_forward_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->short_mode(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Minimizer_forward_set" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + if (arg1) (arg1)->forward = arg2; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Indexlr_long_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_forward_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 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 (!SWIG_Python_UnpackTuple(args, "Minimizer_forward_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_forward_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - result = (bool)((btllib::Indexlr const *)arg1)->long_mode(); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + result = (bool) ((arg1)->forward); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -27234,1014 +27441,576 @@ SWIGINTERN PyObject *_wrap_Indexlr_long_mode(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_Indexlr_read(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Minimizer_seq_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::Indexlr::Record result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 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 '" "Minimizer_seq_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - 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 ); + arg1 = reinterpret_cast< btllib::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; + } + 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 int _wrap_new_Indexlr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Minimizer_seq_get(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 ; - 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 ; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "Minimizer_seq_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); + } + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + result = (std::string *) & ((arg1)->seq); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Minimizer_qual_set(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Minimizer *arg1 = (btllib::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__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_set" "', argument " "1"" of type '" "btllib::Minimizer *""'"); + } + arg1 = reinterpret_cast< btllib::Minimizer * >(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[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); } - 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 &""'"); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - 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 (arg1) (arg1)->qual = *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_qual_get(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "Minimizer_qual_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_get" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - if (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter const &""'"); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + result = (std::string *) & ((arg1)->qual); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Minimizer(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Minimizer *arg1 = (btllib::Minimizer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_Minimizer", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Minimizer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Minimizer" "', argument " "1"" of type '" "btllib::Minimizer *""'"); } - 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 ); + arg1 = reinterpret_cast< btllib::Minimizer * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + 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::Record *result = 0 ; + + (void)self; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::Record *)new btllib::Record(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Record, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_Indexlr__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; - 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 ; + size_t arg1 ; + std::string arg2 ; + std::string arg3 ; + size_t arg4 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > arg5 ; + size_t val1 ; + int ecode1 = 0 ; + size_t 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 ; + btllib::Record *result = 0 ; (void)self; - if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; + 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""'"); + } + arg1 = static_cast< size_t >(val1); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + 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_Indexlr" "', argument " "1"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_IndexlrRecord" "', argument " "2"" of type '" "std::string""'"); } - arg1 = *ptr; + arg2 = *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); + { + 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); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Indexlr" "', argument " "4"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_IndexlrRecord" "', argument " "4"" of type '" "size_t""'"); } - 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 &""'"); + arg4 = static_cast< size_t >(val4); + { + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *ptr = (std::vector< btllib::Minimizer,std::allocator< btllib::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::Minimizer,std::allocator< btllib::Minimizer > >""'"); + } + arg5 = *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 ); + result = (btllib::Record *)new btllib::Record(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__Record, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_2(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 ; - 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 ; +SWIGINTERN int _wrap_new_IndexlrRecord(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; (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 (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrRecord")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_IndexlrRecord", 0, 5, 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; + SWIG_fail; } - 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; + 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 'new_IndexlrRecord'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::Record::Record()\n" + " btllib::Record::Record(size_t,std::string,std::string,size_t,std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > >)\n"); return -1; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_num_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; size_t arg2 ; - size_t arg3 ; - unsigned int arg4 ; - unsigned int arg5 ; + void *argp1 = 0 ; + int res1 = 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 ; - btllib::Indexlr *result = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_set" "', argument " "1"" of type '" "btllib::Record *""'"); } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::Record * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &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 '" "IndexlrRecord_num_set" "', 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; + if (arg1) (arg1)->num = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_num_get(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 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_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; + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_num_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_get" "', argument " "1"" of type '" "btllib::Record *""'"); } - 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); - 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; + arg1 = reinterpret_cast< btllib::Record * >(argp1); + result = ((arg1)->num); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_set" "', argument " "1"" of type '" "btllib::Record *""'"); + } + arg1 = reinterpret_cast< btllib::Record * >(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[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_id_set" "', 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 '" "IndexlrRecord_id_set" "', 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); - 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; + if (arg1) (arg1)->id = *arg2; + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_id_get(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 ; - btllib::BloomFilter *arg9 = 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 ; - void *argp9 = 0 ; - int res9 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; (void)self; - 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; - } - 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""'"); - } - 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 (!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); - 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 (!argp9) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_id_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_get" "', argument " "1"" of type '" "btllib::Record *""'"); } - 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; + arg1 = reinterpret_cast< btllib::Record * >(argp1); + result = (std::string *) & ((arg1)->id); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_7(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_set(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::Record *arg1 = (btllib::Record *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_set" "', argument " "1"" of type '" "btllib::Record *""'"); + } + arg1 = reinterpret_cast< btllib::Record * >(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[0], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); } - 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""'"); - } - 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 (!argp8) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "8"" of type '" "btllib::BloomFilter 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; } - 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; + if (arg1) (arg1)->barcode = *arg2; + resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_get(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 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::string *result = 0 ; (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; + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_barcode_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_get" "', argument " "1"" of type '" "btllib::Record *""'"); } - 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""'"); - } - 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 = reinterpret_cast< btllib::Record * >(argp1); + result = (std::string *) & ((arg1)->barcode); + resultobj = SWIG_From_std_string(static_cast< std::string >(*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_IndexlrRecord_readlen_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - unsigned int arg6 ; + void *argp1 = 0 ; + int res1 = 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 ; - btllib::Indexlr *result = 0 ; + PyObject *swig_obj[2] ; (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 (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_set" "', argument " "1"" of type '" "btllib::Record *""'"); } - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::Record * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &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 '" "IndexlrRecord_readlen_set" "', 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); - 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; + if (arg1) (arg1)->readlen = arg2; + resultobj = SWIG_Py_Void(); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_10(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - unsigned int arg5 ; - size_t 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 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_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 (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_readlen_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_readlen_get" "', argument " "1"" of type '" "btllib::Record *""'"); } - 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); - 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; + arg1 = reinterpret_cast< btllib::Record * >(argp1); + result = ((arg1)->readlen); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr__SWIG_11(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string arg1 ; - size_t arg2 ; - size_t arg3 ; - size_t arg4 ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - btllib::Indexlr *result = 0 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *arg2 = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject *swig_obj[2] ; (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; + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_set" "', argument " "1"" of type '" "btllib::Record *""'"); } - 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); - 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; + arg1 = reinterpret_cast< btllib::Record * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[0], &argp2,SWIGTYPE_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_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::Minimizer,std::allocator< btllib::Minimizer > > *""'"); + } + arg2 = reinterpret_cast< std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > * >(argp2); + if (arg1) (arg1)->minimizers = *arg2; + resultobj = SWIG_Py_Void(); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_Indexlr(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[10] = { - 0 - }; +SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_get(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Record *arg1 = (btllib::Record *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *result = 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; - --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; - } - 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; + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecord_minimizers_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_get" "', argument " "1"" of type '" "btllib::Record *""'"); } -check_10: + arg1 = reinterpret_cast< btllib::Record * >(argp1); + result = (std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *)& ((arg1)->minimizers); - 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; + resultobj = PyList_New(result->size()); + for (unsigned i = 0; i < result->size(); ++i) { + PyObject *item = SWIG_NewPointerObj(new btllib::Minimizer((*(result))[i]), SWIGTYPE_p_btllib__Minimizer, SWIG_POINTER_OWN); + PyList_SetItem(resultobj, i, item); } + return resultobj; 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; + return NULL; } -SWIGINTERN PyObject *_wrap_delete_Indexlr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_IndexlrRecord___nonzero__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; (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_Python_UnpackTuple(args, "IndexlrRecord___nonzero__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Indexlr" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord___nonzero__" "', argument " "1"" of type '" "btllib::Record const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Record * >(argp1); + result = (bool)((btllib::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_Indexlr_close(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_IndexlrRecord(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; + btllib::Record *arg1 = (btllib::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (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_Python_UnpackTuple(args, "delete_IndexlrRecord", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Record, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_close" "', argument " "1"" of type '" "btllib::Indexlr *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecord" "', argument " "1"" of type '" "btllib::Record *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr * >(argp1); - (arg1)->close(); + arg1 = reinterpret_cast< btllib::Record * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -28249,316 +28018,299 @@ SWIGINTERN PyObject *_wrap_Indexlr_close(PyObject *self, PyObject *args) { } -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; +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 int Swig_var_BIT_MASKS_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable BIT_MASKS is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_BIT_MASKS_get(void) { + PyObject *pyobj = 0; + PyObject *self = 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 *""'"); - } - 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; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::BIT_MASKS), SWIGTYPE_p_unsigned_char, 0 ); + return pyobj; } -SWIGINTERN PyObject *_wrap_Indexlr___enter__(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr *arg1 = (btllib::Indexlr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::Indexlr *result = 0 ; +SWIGINTERN int Swig_var_BLOOM_FILTER_SIGNATURE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable BLOOM_FILTER_SIGNATURE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_BLOOM_FILTER_SIGNATURE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (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 (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___enter__" "', argument " "1"" of type '" "btllib::Indexlr *""'"); - } - 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; + pyobj = SWIG_FromCharPtr(btllib::BLOOM_FILTER_SIGNATURE); + return pyobj; } -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] ; +SWIGINTERN int Swig_var_KMER_BLOOM_FILTER_SIGNATURE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable KMER_BLOOM_FILTER_SIGNATURE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_KMER_BLOOM_FILTER_SIGNATURE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (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 *""'"); - } - 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; + pyobj = SWIG_FromCharPtr(btllib::KMER_BLOOM_FILTER_SIGNATURE); + return pyobj; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Indexlr) /* defines _wrap_delete_Indexlr_destructor_closure */ +SWIGINTERN int Swig_var_SEED_BLOOM_FILTER_SIGNATURE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_BLOOM_FILTER_SIGNATURE is read-only."); + return 1; +} -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 ; +SWIGINTERN PyObject *Swig_var_SEED_BLOOM_FILTER_SIGNATURE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 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; + pyobj = SWIG_FromCharPtr(btllib::SEED_BLOOM_FILTER_SIGNATURE); + return pyobj; } -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 ; +SWIGINTERN int Swig_var_HASH_FN_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable HASH_FN is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_HASH_FN_get(void) { + PyObject *pyobj = 0; + PyObject *self = 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 *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr::Flag * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; + pyobj = SWIG_FromCharPtr(btllib::HASH_FN); + return pyobj; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrFlag) /* defines _wrap_delete_IndexlrFlag_destructor_closure */ +SWIGINTERN int Swig_var_MAX_HASH_VALUES_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable MAX_HASH_VALUES is read-only."); + return 1; +} -SWIGINTERN int _wrap_new_Minimizer__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + +SWIGINTERN PyObject *Swig_var_MAX_HASH_VALUES_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::MAX_HASH_VALUES)); + return pyobj; +} + + +SWIGINTERN int Swig_var_PLACEHOLDER_NEWLINES_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable PLACEHOLDER_NEWLINES is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_PLACEHOLDER_NEWLINES_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::PLACEHOLDER_NEWLINES)); + return pyobj; +} + + +SWIGINTERN int _wrap_new_BloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *result = 0 ; + btllib::BloomFilter *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 ); + result = (btllib::BloomFilter *)new btllib::BloomFilter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 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 int _wrap_new_BloomFilter__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 ; + size_t arg1 ; + unsigned int arg2 ; + std::string arg3 ; + size_t val1 ; int ecode1 = 0 ; - uint64_t val2 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - btllib::Indexlr::Minimizer *result = 0 ; + btllib::BloomFilter *result = 0 ; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(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 '" "new_BloomFilter" "', argument " "1"" of type '" "size_t""'"); } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + arg1 = static_cast< size_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_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); - } - 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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BloomFilter" "', argument " "2"" of type '" "unsigned int""'"); } - arg4 = static_cast< bool >(val4); + arg2 = static_cast< unsigned int >(val2); { std::string *ptr = (std::string *)0; - int res = SWIG_AsPtr_std_string(swig_obj[4], &ptr); + 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_Minimizer" "', argument " "5"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_BloomFilter" "', argument " "3"" of type '" "std::string""'"); } - arg5 = *ptr; + arg3 = *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 ); + result = (btllib::BloomFilter *)new btllib::BloomFilter(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_Minimizer__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_BloomFilter__SWIG_2(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 ; - std::string arg6 ; - uint64_t val1 ; + size_t arg1 ; + unsigned int arg2 ; + size_t val1 ; int ecode1 = 0 ; - uint64_t val2 ; + unsigned int val2 ; int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - bool val4 ; - int ecode4 = 0 ; - btllib::Indexlr::Minimizer *result = 0 ; + btllib::BloomFilter *result = 0 ; (void)self; - if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(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 '" "new_BloomFilter" "', argument " "1"" of type '" "size_t""'"); } - arg1 = static_cast< uint64_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[1], &val2); + arg1 = static_cast< size_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_Minimizer" "', argument " "2"" of type '" "uint64_t""'"); - } - 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""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BloomFilter" "', argument " "2"" of type '" "unsigned int""'"); } - arg4 = static_cast< bool >(val4); + arg2 = static_cast< unsigned int >(val2); + result = (btllib::BloomFilter *)new btllib::BloomFilter(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_BloomFilter__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::BloomFilter *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { 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""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BloomFilter" "', argument " "1"" of type '" "std::string const &""'"); } - 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""'"); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BloomFilter" "', argument " "1"" of type '" "std::string const &""'"); } - arg6 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + arg1 = 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 ); + result = (btllib::BloomFilter *)new btllib::BloomFilter((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 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_Minimizer(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_BloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[7] = { + PyObject *argv[4] = { 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; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_BloomFilter")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_BloomFilter", 0, 3, argv))) SWIG_fail; --argc; if (argc == 0) { - int retval = _wrap_new_Minimizer__SWIG_0(self, argc, argv); + int retval = _wrap_new_BloomFilter__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 (argc == 1) { + int retval = _wrap_new_BloomFilter__SWIG_3(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 (argc == 2) { + int retval = _wrap_new_BloomFilter__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { + int retval = _wrap_new_BloomFilter__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 'new_Minimizer'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BloomFilter'.\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"); + " btllib::BloomFilter::BloomFilter()\n" + " btllib::BloomFilter::BloomFilter(size_t,unsigned int,std::string)\n" + " btllib::BloomFilter::BloomFilter(size_t,unsigned int)\n" + " btllib::BloomFilter::BloomFilter(std::string const &)\n"); return -1; } -SWIGINTERN PyObject *_wrap_Minimizer_min_hash_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_insert__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 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + void *argp2 = 0 ; + int res2 = 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 < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - 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 '" "Minimizer_min_hash_set" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->min_hash = arg2; + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->insert((uint64_t const *)arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -28566,180 +28318,204 @@ SWIGINTERN PyObject *_wrap_Minimizer_min_hash_set(PyObject *self, PyObject *args } -SWIGINTERN PyObject *_wrap_Minimizer_min_hash_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; + int res2 = SWIG_OLDOBJ ; (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 ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 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 *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - 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: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_Minimizer_out_hash_set(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 ; - 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__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::BloomFilter * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; } - 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 '" "Minimizer_out_hash_set" "', argument " "2"" of type '" "uint64_t""'"); - } - arg2 = static_cast< uint64_t >(val2); - if (arg1) (arg1)->out_hash = arg2; + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > 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_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; +SWIGINTERN PyObject *_wrap_BloomFilter_insert(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 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 (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_out_hash_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_insert", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_BloomFilter_insert__SWIG_0(self, argc, argv); } - 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; +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_BloomFilter_insert__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 'BloomFilter_insert'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::BloomFilter::insert(uint64_t const *)\n" + " btllib::BloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Minimizer_pos_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - size_t arg2 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + void *argp2 = 0 ; + int res2 = 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 < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - 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(); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (bool)((btllib::BloomFilter const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_pos_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + int res2 = SWIG_OLDOBJ ; + bool result; (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 ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_pos_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = ((arg1)->pos); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + result = (bool)((btllib::BloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_forward_set(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - bool arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; +SWIGINTERN PyObject *_wrap_BloomFilter_contains(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 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_forward_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_contains", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_BloomFilter_contains__SWIG_0(self, argc, argv); } - 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 '" "Minimizer_forward_set" "', argument " "2"" of type '" "bool""'"); - } - arg2 = static_cast< bool >(val2); - if (arg1) (arg1)->forward = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_BloomFilter_contains__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 'BloomFilter_contains'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::BloomFilter::contains(uint64_t const *) const\n" + " btllib::BloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + return 0; } -SWIGINTERN PyObject *_wrap_Minimizer_forward_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 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 < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); 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 '" "BloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (bool) ((arg1)->forward); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (bool)(arg1)->contains_insert((uint64_t const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -28747,36 +28523,35 @@ SWIGINTERN PyObject *_wrap_Minimizer_forward_get(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_Minimizer_seq_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - std::string *arg2 = 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + 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 < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); 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 '" "BloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Minimizer_seq_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - if (arg1) (arg1)->seq = *arg2; - resultobj = SWIG_Py_Void(); + result = (bool)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -28785,271 +28560,177 @@ SWIGINTERN PyObject *_wrap_Minimizer_seq_set(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_Minimizer_seq_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_contains_insert", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_BloomFilter_contains_insert__SWIG_0(self, argc, argv); + } +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_BloomFilter_contains_insert__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 'BloomFilter_contains_insert'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::BloomFilter::contains_insert(uint64_t const *)\n" + " btllib::BloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_BloomFilter_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + size_t result; (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_Python_UnpackTuple(args, "BloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_seq_get" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - result = (std::string *) & ((arg1)->seq); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + result = ((btllib::BloomFilter const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_qual_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; - std::string *arg2 = 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + 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_Python_UnpackTuple(args, "BloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Minimizer_qual_set" "', argument " "1"" of type '" "btllib::Indexlr::Minimizer *""'"); - } - 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 &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - if (arg1) (arg1)->qual = *arg2; - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + result = (uint64_t)((btllib::BloomFilter const *)arg1)->get_pop_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_Minimizer_qual_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_get_occupancy(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + double 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 (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); 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 '" "BloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::BloomFilter 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< btllib::BloomFilter * >(argp1); + result = (double)((btllib::BloomFilter const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_Minimizer(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Minimizer *arg1 = (btllib::Indexlr::Minimizer *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + unsigned int 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 (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); 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 '" "BloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Minimizer * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + result = (unsigned int)((btllib::BloomFilter const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: 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) { - 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 ; - int ecode1 = 0 ; - size_t val4 ; - int ecode4 = 0 ; - btllib::Indexlr::Record *result = 0 ; - - (void)self; - 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""'"); - } - 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); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_IndexlrRecord" "', argument " "4"" of type '" "size_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; - } - 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: - return -1; -} - - -SWIGINTERN int _wrap_new_IndexlrRecord(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[6] = { - 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; - --argc; - 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 == 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 'new_IndexlrRecord'.\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; -} - - -SWIGINTERN PyObject *_wrap_IndexlrRecord_num_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_get_fpr(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; - size_t arg2 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; + double 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, "BloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 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 '" "BloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::BloomFilter 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_num_set" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - if (arg1) (arg1)->num = arg2; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + result = (double)((btllib::BloomFilter const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_num_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + std::string *result = 0 ; (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_Python_UnpackTuple(args, "BloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_num_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = ((arg1)->num); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + result = (std::string *) &((btllib::BloomFilter const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -29059,23 +28740,23 @@ SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__Indexlr__Record, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_save" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); + arg1 = reinterpret_cast< btllib::BloomFilter * >(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 &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_save" "', 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 &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - if (arg1) (arg1)->id = *arg2; + (arg1)->save((std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -29085,626 +28766,554 @@ SWIGINTERN PyObject *_wrap_IndexlrRecord_id_set(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_IndexlrRecord_id_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_is_bloom_file(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 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + 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 (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_id_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + 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 '" "BloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (std::string *) & ((arg1)->id); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + result = (bool)btllib::BloomFilter::is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_barcode_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_BloomFilter_check_file_signature(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + std::string *arg1 = 0 ; std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject *swig_obj[2] ; + bool 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_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + if (!SWIG_Python_UnpackTuple(args, "BloomFilter_check_file_signature", 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 '" "BloomFilter_check_file_signature" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_check_file_signature" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); { std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndexlrRecord_barcode_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_check_file_signature" "', 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 &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_check_file_signature" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - if (arg1) (arg1)->barcode = *arg2; - resultobj = SWIG_Py_Void(); + result = (bool)btllib::BloomFilter::check_file_signature((std::string const &)*arg1,(std::string const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(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_IndexlrRecord_barcode_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_BloomFilter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 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_Python_UnpackTuple(args, "delete_BloomFilter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_barcode_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BloomFilter" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (std::string *) & ((arg1)->barcode); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_set(PyObject *self, PyObject *args) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BloomFilter) /* defines _wrap_delete_BloomFilter_destructor_closure */ + +SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(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] ; + btllib::KmerBloomFilter *result = 0 ; (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_readlen_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); - } - 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; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_readlen_get(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_1(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 ; - size_t result; + size_t arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + btllib::KmerBloomFilter *result = 0 ; (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 *""'"); - } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = ((arg1)->readlen); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerBloomFilter" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_KmerBloomFilter" "', 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_KmerBloomFilter" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_set(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_2(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 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject *swig_obj[2] ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::KmerBloomFilter *result = 0 ; (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_minimizers_set" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); - } - 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 '" "IndexlrRecord_minimizers_set" "', argument " "2"" of type '" "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *""'"); + 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_KmerBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - 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; + result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_IndexlrRecord_minimizers_get(PyObject *self, PyObject *args) { - 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 ; +SWIGINTERN int _wrap_new_KmerBloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[4] = { + 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 (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord_minimizers_get" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerBloomFilter")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerBloomFilter", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_KmerBloomFilter__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - 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); + if (argc == 1) { + int retval = _wrap_new_KmerBloomFilter__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { + int retval = _wrap_new_KmerBloomFilter__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } - return resultobj; fail: - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_KmerBloomFilter'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerBloomFilter::KmerBloomFilter()\n" + " btllib::KmerBloomFilter::KmerBloomFilter(size_t,unsigned int,unsigned int)\n" + " btllib::KmerBloomFilter::KmerBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_IndexlrRecord___nonzero__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; (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 ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecord___nonzero__" "', argument " "1"" of type '" "btllib::Indexlr::Record const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - result = (bool)((btllib::Indexlr::Record const *)arg1)->operator bool(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + (arg1)->insert((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - PyErr_Clear(); - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; } -SWIGINTERN PyObject *_wrap_delete_IndexlrRecord(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::Record *arg1 = (btllib::Indexlr::Record *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; (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 ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecord" "', argument " "1"" of type '" "btllib::Indexlr::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::Record * >(argp1); - delete arg1; + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(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 '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + (arg1)->insert((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; } -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) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::Indexlr::Record result; + void *argp2 = 0 ; + int res2 = 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 ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecordIterator___next__" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); - { - result = (arg1)->next(); - if (!bool(result)) { - PyErr_SetNone(PyExc_StopIteration); - SWIG_fail; - } + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } - resultobj = SWIG_NewPointerObj((new btllib::Indexlr::Record(result)), SWIGTYPE_p_btllib__Indexlr__Record, SWIG_POINTER_OWN | 0 ); + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_IndexlrRecordIterator(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::Indexlr::RecordIterator *arg1 = (btllib::Indexlr::RecordIterator *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; (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 ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecordIterator" "', argument " "1"" of type '" "btllib::Indexlr::RecordIterator *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::Indexlr::RecordIterator * >(argp1); - delete arg1; + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); resultobj = SWIG_Py_Void(); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -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."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_BIT_MASKS_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::BIT_MASKS), SWIGTYPE_p_unsigned_char, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_BLOOM_FILTER_SIGNATURE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable BLOOM_FILTER_SIGNATURE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_BLOOM_FILTER_SIGNATURE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; (void)self; - pyobj = SWIG_FromCharPtr(btllib::BLOOM_FILTER_SIGNATURE); - return pyobj; -} - - -SWIGINTERN int Swig_var_KMER_BLOOM_FILTER_SIGNATURE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable KMER_BLOOM_FILTER_SIGNATURE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_KMER_BLOOM_FILTER_SIGNATURE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::KMER_BLOOM_FILTER_SIGNATURE); - return pyobj; -} - - -SWIGINTERN int Swig_var_SEED_BLOOM_FILTER_SIGNATURE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable SEED_BLOOM_FILTER_SIGNATURE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_SEED_BLOOM_FILTER_SIGNATURE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::SEED_BLOOM_FILTER_SIGNATURE); - return pyobj; -} - - -SWIGINTERN int Swig_var_HASH_FN_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable HASH_FN is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_HASH_FN_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - pyobj = SWIG_FromCharPtr(btllib::HASH_FN); - return pyobj; -} - - -SWIGINTERN int Swig_var_MAX_HASH_VALUES_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable MAX_HASH_VALUES is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_MAX_HASH_VALUES_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_insert", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerBloomFilter_insert__SWIG_2(self, argc, argv); + } +check_1: - (void)self; - pyobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::MAX_HASH_VALUES)); - return pyobj; -} - - -SWIGINTERN int Swig_var_PLACEHOLDER_NEWLINES_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable PLACEHOLDER_NEWLINES is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_PLACEHOLDER_NEWLINES_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerBloomFilter_insert__SWIG_1(self, argc, argv); + } +check_2: - (void)self; - pyobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::PLACEHOLDER_NEWLINES)); - return pyobj; -} - - -SWIGINTERN int _wrap_new_BloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::BloomFilter *result = 0 ; + if (argc == 2) { + PyObject *retobj = _wrap_KmerBloomFilter_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_KmerBloomFilter_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::BloomFilter *)new btllib::BloomFilter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 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 'KmerBloomFilter_insert'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerBloomFilter::insert(char const *,size_t)\n" + " btllib::KmerBloomFilter::insert(std::string const &)\n" + " btllib::KmerBloomFilter::insert(uint64_t const *)\n" + " btllib::KmerBloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN int _wrap_new_BloomFilter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - std::string arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::BloomFilter *result = 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BloomFilter" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_BloomFilter" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - { - 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_BloomFilter" "', argument " "3"" of type '" "std::string""'"); - } - arg3 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - result = (btllib::BloomFilter *)new btllib::BloomFilter(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_BloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::BloomFilter *result = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BloomFilter" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_BloomFilter" "', argument " "2"" of type '" "unsigned int""'"); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_contains" "', argument " "3"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (btllib::BloomFilter *)new btllib::BloomFilter(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg3 = static_cast< size_t >(val3); + result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; fail: - return -1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; } -SWIGINTERN int _wrap_new_BloomFilter__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::BloomFilter *result = 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(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_BloomFilter" "', 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 '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); } - arg1 = ptr; - } - result = (btllib::BloomFilter *)new btllib::BloomFilter((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 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_BloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_BloomFilter")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_BloomFilter", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_BloomFilter__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 1) { - int retval = _wrap_new_BloomFilter__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 2) { - int retval = _wrap_new_BloomFilter__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int retval = _wrap_new_BloomFilter__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + arg2 = ptr; } - + result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_BloomFilter'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::BloomFilter::BloomFilter()\n" - " btllib::BloomFilter::BloomFilter(size_t,unsigned int,std::string)\n" - " btllib::BloomFilter::BloomFilter(size_t,unsigned int)\n" - " btllib::BloomFilter::BloomFilter(std::string const &)\n"); - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN PyObject *_wrap_BloomFilter_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + bool result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (bool)((btllib::KmerBloomFilter const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_BloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 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__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (bool)((btllib::KmerBloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -29713,14 +29322,14 @@ SWIGINTERN PyObject *_wrap_BloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t } -SWIGINTERN PyObject *_wrap_BloomFilter_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -29730,84 +29339,113 @@ SWIGINTERN PyObject *_wrap_BloomFilter_insert(PyObject *self, PyObject *args) { _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_BloomFilter_insert__SWIG_0(self, argc, argv); + return _wrap_KmerBloomFilter_contains__SWIG_2(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_BloomFilter_insert__SWIG_1(self, argc, argv); + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerBloomFilter_contains__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerBloomFilter_contains__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_KmerBloomFilter_contains__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 'BloomFilter_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerBloomFilter_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::BloomFilter::insert(uint64_t const *)\n" - " btllib::BloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerBloomFilter::contains(char const *,size_t) const\n" + " btllib::KmerBloomFilter::contains(std::string const &) const\n" + " btllib::KmerBloomFilter::contains(uint64_t const *) const\n" + " btllib::KmerBloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_BloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (bool)((btllib::BloomFilter const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_contains_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (unsigned int)(arg1)->contains_insert((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_BloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - bool result; + unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &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 '" "BloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (bool)((btllib::BloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + result = (unsigned int)(arg1)->contains_insert((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -29816,45 +29454,9 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains__SWIG_1(PyObject *self, Py_ssize } -SWIGINTERN PyObject *_wrap_BloomFilter_contains(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_contains", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_BloomFilter_contains__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_BloomFilter_contains__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 'BloomFilter_contains'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::BloomFilter::contains(uint64_t const *) const\n" - " btllib::BloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -29864,14 +29466,14 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_0(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)(arg1)->contains_insert((uint64_t const *)arg2); @@ -29882,9 +29484,9 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_0(PyObject *self, P } -SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -29893,19 +29495,19 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_1(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -29919,14 +29521,14 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert__SWIG_1(PyObject *self, P } -SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "BloomFilter_contains_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_contains_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -29936,40 +29538,58 @@ SWIGINTERN PyObject *_wrap_BloomFilter_contains_insert(PyObject *self, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_BloomFilter_contains_insert__SWIG_0(self, argc, argv); + return _wrap_KmerBloomFilter_contains_insert__SWIG_2(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_BloomFilter_contains_insert__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerBloomFilter_contains_insert__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerBloomFilter_contains_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_KmerBloomFilter_contains_insert__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 'BloomFilter_contains_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerBloomFilter_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::BloomFilter::contains_insert(uint64_t const *)\n" - " btllib::BloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerBloomFilter::contains_insert(char const *,size_t)\n" + " btllib::KmerBloomFilter::contains_insert(std::string const &)\n" + " btllib::KmerBloomFilter::contains_insert(uint64_t const *)\n" + " btllib::KmerBloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_BloomFilter_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = ((btllib::BloomFilter const *)arg1)->get_bytes(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = ((btllib::KmerBloomFilter const *)arg1)->get_bytes(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -29977,21 +29597,21 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_bytes(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_BloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = (uint64_t)((btllib::BloomFilter const *)arg1)->get_pop_cnt(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (uint64_t)((btllib::KmerBloomFilter const *)arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -29999,21 +29619,21 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_pop_cnt(PyObject *self, PyObject *arg } -SWIGINTERN PyObject *_wrap_BloomFilter_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_occupancy(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = (double)((btllib::BloomFilter const *)arg1)->get_occupancy(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (double)((btllib::KmerBloomFilter const *)arg1)->get_occupancy(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -30021,21 +29641,21 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_occupancy(PyObject *self, PyObject *a } -SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = (unsigned int)((btllib::BloomFilter const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -30043,21 +29663,21 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_num(PyObject *self, PyObject *ar } -SWIGINTERN PyObject *_wrap_BloomFilter_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_fpr(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = (double)((btllib::BloomFilter const *)arg1)->get_fpr(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (double)((btllib::KmerBloomFilter const *)arg1)->get_fpr(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -30065,21 +29685,43 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_fpr(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_k" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_fn(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::BloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); - result = (std::string *) &((btllib::BloomFilter const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (std::string *) &((btllib::KmerBloomFilter const *)arg1)->get_hash_fn(); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -30087,9 +29729,31 @@ SWIGINTERN PyObject *_wrap_BloomFilter_get_hash_fn(PyObject *self, PyObject *arg } -SWIGINTERN PyObject *_wrap_BloomFilter_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_bloom_filter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::BloomFilter *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_bloom_filter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_bloom_filter" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + } + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + result = (btllib::BloomFilter *) &(arg1)->get_bloom_filter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerBloomFilter_save(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30099,19 +29763,19 @@ SWIGINTERN PyObject *_wrap_BloomFilter_save(PyObject *self, PyObject *args) { (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BloomFilter_save" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_save" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(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 '" "BloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -30125,7 +29789,7 @@ SWIGINTERN PyObject *_wrap_BloomFilter_save(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_BloomFilter_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerBloomFilter_is_bloom_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; @@ -30139,81 +29803,36 @@ SWIGINTERN PyObject *_wrap_BloomFilter_is_bloom_file(PyObject *self, PyObject *a 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 '" "BloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (bool)btllib::BloomFilter::is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_BloomFilter_check_file_signature(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] ; - bool result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "BloomFilter_check_file_signature", 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 '" "BloomFilter_check_file_signature" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_check_file_signature" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_is_bloom_file" "', 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 '" "BloomFilter_check_file_signature" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BloomFilter_check_file_signature" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (bool)btllib::BloomFilter::check_file_signature((std::string const &)*arg1,(std::string const &)*arg2); + result = (bool)btllib::KmerBloomFilter::is_bloom_file((std::string const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(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_delete_BloomFilter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_KmerBloomFilter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::BloomFilter *arg1 = (btllib::BloomFilter *) 0 ; + btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_BloomFilter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__BloomFilter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_KmerBloomFilter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BloomFilter" "', argument " "1"" of type '" "btllib::BloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerBloomFilter" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::BloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -30222,65 +29841,80 @@ SWIGINTERN PyObject *_wrap_delete_BloomFilter(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BloomFilter) /* defines _wrap_delete_BloomFilter_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerBloomFilter) /* defines _wrap_delete_KmerBloomFilter_destructor_closure */ -SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *result = 0 ; + btllib::SeedBloomFilter *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; - unsigned int arg3 ; + std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ; + unsigned int arg4 ; size_t val1 ; int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::KmerBloomFilter *result = 0 ; + int res3 = SWIG_OLDOBJ ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedBloomFilter *result = 0 ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerBloomFilter" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SeedBloomFilter" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_KmerBloomFilter" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeedBloomFilter" "', 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_KmerBloomFilter" "', argument " "3"" of type '" "unsigned int""'"); + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res3 = swig::asptr(swig_obj[2], &ptr); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SeedBloomFilter" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedBloomFilter" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< 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 '" "new_SeedBloomFilter" "', argument " "4"" of type '" "unsigned int""'"); } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res3)) delete arg3; return resultobj == Py_None ? -1 : 0; fail: + if (SWIG_IsNewObj(res3)) delete arg3; return -1; } -SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - btllib::KmerBloomFilter *result = 0 ; + btllib::SeedBloomFilter *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; @@ -30288,15 +29922,15 @@ SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobj 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_KmerBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (btllib::KmerBloomFilter *)new btllib::KmerBloomFilter((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -30305,45 +29939,45 @@ SWIGINTERN int _wrap_new_KmerBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobj } -SWIGINTERN int _wrap_new_KmerBloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_SeedBloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerBloomFilter")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerBloomFilter", 0, 3, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedBloomFilter")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedBloomFilter", 0, 4, argv))) SWIG_fail; --argc; if (argc == 0) { - int retval = _wrap_new_KmerBloomFilter__SWIG_0(self, argc, argv); + int retval = _wrap_new_SeedBloomFilter__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 1) { - int retval = _wrap_new_KmerBloomFilter__SWIG_2(self, argc, argv); + int retval = _wrap_new_SeedBloomFilter__SWIG_2(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } - if (argc == 3) { - int retval = _wrap_new_KmerBloomFilter__SWIG_1(self, argc, argv); + if (argc == 4) { + int retval = _wrap_new_SeedBloomFilter__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 'new_KmerBloomFilter'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeedBloomFilter'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerBloomFilter::KmerBloomFilter()\n" - " btllib::KmerBloomFilter::KmerBloomFilter(size_t,unsigned int,unsigned int)\n" - " btllib::KmerBloomFilter::KmerBloomFilter(std::string const &)\n"); + " btllib::SeedBloomFilter::SeedBloomFilter()\n" + " btllib::SeedBloomFilter::SeedBloomFilter(size_t,unsigned int,std::vector< std::string,std::allocator< std::string > > const &,unsigned int)\n" + " btllib::SeedBloomFilter::SeedBloomFilter(std::string const &)\n"); return -1; } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; @@ -30356,19 +29990,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_0(PyObject *self, Py_ssi (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_insert" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_insert" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->insert((char const *)arg2,arg3); @@ -30381,9 +30015,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_0(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30391,19 +30025,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_1(PyObject *self, Py_ssi (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -30417,9 +30051,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_1(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30428,14 +30062,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_2(PyObject *self, Py_ssi (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->insert((uint64_t const *)arg2); @@ -30446,9 +30080,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_2(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30456,19 +30090,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_3(PyObject *self, Py_ssi (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -30482,14 +30116,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert__SWIG_3(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_insert", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -30499,7 +30133,7 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert(PyObject *self, PyObject *args _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerBloomFilter_insert__SWIG_2(self, argc, argv); + return _wrap_SeedBloomFilter_insert__SWIG_2(self, argc, argv); } check_1: @@ -30510,35 +30144,35 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_insert(PyObject *self, PyObject *args _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerBloomFilter_insert__SWIG_1(self, argc, argv); + return _wrap_SeedBloomFilter_insert__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerBloomFilter_insert__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_insert__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerBloomFilter_insert__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_insert__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 'KmerBloomFilter_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedBloomFilter_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerBloomFilter::insert(char const *,size_t)\n" - " btllib::KmerBloomFilter::insert(std::string const &)\n" - " btllib::KmerBloomFilter::insert(uint64_t const *)\n" - " btllib::KmerBloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::SeedBloomFilter::insert(char const *,size_t)\n" + " btllib::SeedBloomFilter::insert(std::string const &)\n" + " btllib::SeedBloomFilter::insert(uint64_t const *)\n" + " btllib::SeedBloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; @@ -30548,27 +30182,27 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_0(PyObject *self, Py_s int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned int result; + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_contains" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->contains((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = ((btllib::SeedBloomFilter const *)arg1)->contains((char const *)arg2,arg3); + 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 (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -30577,35 +30211,35 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_0(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int result; + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->contains((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = ((btllib::SeedBloomFilter const *)arg1)->contains((std::string const &)*arg2); + 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(res2)) delete arg2; return resultobj; fail: @@ -30614,9 +30248,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_1(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30626,17 +30260,17 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_2(PyObject *self, Py_s (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (bool)((btllib::KmerBloomFilter const *)arg1)->contains((uint64_t const *)arg2); + result = (bool)((btllib::SeedBloomFilter const *)arg1)->contains((uint64_t const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -30644,9 +30278,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_2(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30655,23 +30289,23 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_3(PyObject *self, Py_s (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (bool)((btllib::KmerBloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + result = (bool)((btllib::SeedBloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -30681,14 +30315,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains__SWIG_3(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -30698,7 +30332,7 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains(PyObject *self, PyObject *ar _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerBloomFilter_contains__SWIG_2(self, argc, argv); + return _wrap_SeedBloomFilter_contains__SWIG_2(self, argc, argv); } check_1: @@ -30709,35 +30343,35 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains(PyObject *self, PyObject *ar _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerBloomFilter_contains__SWIG_1(self, argc, argv); + return _wrap_SeedBloomFilter_contains__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerBloomFilter_contains__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerBloomFilter_contains__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_contains__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 'KmerBloomFilter_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedBloomFilter_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerBloomFilter::contains(char const *,size_t) const\n" - " btllib::KmerBloomFilter::contains(std::string const &) const\n" - " btllib::KmerBloomFilter::contains(uint64_t const *) const\n" - " btllib::KmerBloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::SeedBloomFilter::contains(char const *,size_t) const\n" + " btllib::SeedBloomFilter::contains(std::string const &) const\n" + " btllib::SeedBloomFilter::contains(uint64_t const *) const\n" + " btllib::SeedBloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; @@ -30747,27 +30381,27 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_0(PyObject *sel int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned int result; + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerBloomFilter_contains_insert" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_contains_insert" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - result = (unsigned int)(arg1)->contains_insert((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = (arg1)->contains_insert((char const *)arg2,arg3); + 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 (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -30776,35 +30410,35 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_0(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int result; + std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned int)(arg1)->contains_insert((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = (arg1)->contains_insert((std::string const &)*arg2); + 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(res2)) delete arg2; return resultobj; fail: @@ -30813,9 +30447,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_1(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30825,14 +30459,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_2(PyObject *sel (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)(arg1)->contains_insert((uint64_t const *)arg2); @@ -30843,9 +30477,9 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_2(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -30854,19 +30488,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_3(PyObject *sel (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -30880,14 +30514,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert__SWIG_3(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerBloomFilter_contains_insert", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_contains_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -30897,7 +30531,7 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerBloomFilter_contains_insert__SWIG_2(self, argc, argv); + return _wrap_SeedBloomFilter_contains_insert__SWIG_2(self, argc, argv); } check_1: @@ -30908,47 +30542,47 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_contains_insert(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerBloomFilter_contains_insert__SWIG_1(self, argc, argv); + return _wrap_SeedBloomFilter_contains_insert__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerBloomFilter_contains_insert__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_contains_insert__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerBloomFilter_contains_insert__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_SeedBloomFilter_contains_insert__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 'KmerBloomFilter_contains_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedBloomFilter_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerBloomFilter::contains_insert(char const *,size_t)\n" - " btllib::KmerBloomFilter::contains_insert(std::string const &)\n" - " btllib::KmerBloomFilter::contains_insert(uint64_t const *)\n" - " btllib::KmerBloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::SeedBloomFilter::contains_insert(char const *,size_t)\n" + " btllib::SeedBloomFilter::contains_insert(std::string const &)\n" + " btllib::SeedBloomFilter::contains_insert(uint64_t const *)\n" + " btllib::SeedBloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = ((btllib::KmerBloomFilter const *)arg1)->get_bytes(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = ((btllib::SeedBloomFilter const *)arg1)->get_bytes(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -30956,21 +30590,21 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_bytes(PyObject *self, PyObject *a } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (uint64_t)((btllib::KmerBloomFilter const *)arg1)->get_pop_cnt(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (uint64_t)((btllib::SeedBloomFilter const *)arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -30978,21 +30612,21 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_pop_cnt(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_occupancy(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (double)((btllib::KmerBloomFilter const *)arg1)->get_occupancy(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (double)((btllib::SeedBloomFilter const *)arg1)->get_occupancy(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -31000,21 +30634,21 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_occupancy(PyObject *self, PyObjec } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_total_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_total_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_total_hash_num" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_total_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -31022,21 +30656,21 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_num(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_fpr(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (double)((btllib::KmerBloomFilter const *)arg1)->get_fpr(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (double)((btllib::SeedBloomFilter const *)arg1)->get_fpr(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -31044,21 +30678,21 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_fpr(PyObject *self, PyObject *arg } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_k" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_k" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (unsigned int)((btllib::KmerBloomFilter const *)arg1)->get_k(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_k(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -31066,21 +30700,109 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_k(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_seeds(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_seeds", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_seeds" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (std::vector< std::string,std::allocator< std::string > > *) &((btllib::SeedBloomFilter const *)arg1)->get_seeds(); + resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(*result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_parsed_seeds(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_parsed_seeds", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_parsed_seeds" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *) &((btllib::SeedBloomFilter const *)arg1)->get_parsed_seeds(); + 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)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_hash_num_per_seed(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (unsigned int)((btllib::SeedBloomFilter 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 *_wrap_SeedBloomFilter_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_hash_fn(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (std::string *) &((btllib::KmerBloomFilter const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (std::string *) &((btllib::SeedBloomFilter const *)arg1)->get_hash_fn(); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -31088,31 +30810,31 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_hash_fn(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_get_bloom_filter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_kmer_bloom_filter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::BloomFilter *result = 0 ; + btllib::KmerBloomFilter *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerBloomFilter_get_bloom_filter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_kmer_bloom_filter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_get_bloom_filter" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_kmer_bloom_filter" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); - result = (btllib::BloomFilter *) &(arg1)->get_bloom_filter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__BloomFilter, 0 | 0 ); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + result = (btllib::KmerBloomFilter *) &(arg1)->get_kmer_bloom_filter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -31122,19 +30844,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_save(PyObject *self, PyObject *args) (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerBloomFilter_save" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_save" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "KmerBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -31148,7 +30870,7 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_save(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_KmerBloomFilter_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeedBloomFilter_is_bloom_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; @@ -31162,14 +30884,14 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_is_bloom_file(PyObject *self, PyObjec 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 '" "KmerBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (bool)btllib::KmerBloomFilter::is_bloom_file((std::string const &)*arg1); + result = (bool)btllib::SeedBloomFilter::is_bloom_file((std::string const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; @@ -31179,19 +30901,19 @@ SWIGINTERN PyObject *_wrap_KmerBloomFilter_is_bloom_file(PyObject *self, PyObjec } -SWIGINTERN PyObject *_wrap_delete_KmerBloomFilter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_SeedBloomFilter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerBloomFilter *arg1 = (btllib::KmerBloomFilter *) 0 ; + btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_KmerBloomFilter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerBloomFilter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_SeedBloomFilter", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerBloomFilter" "', argument " "1"" of type '" "btllib::KmerBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedBloomFilter" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); } - arg1 = reinterpret_cast< btllib::KmerBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -31200,96 +30922,114 @@ SWIGINTERN PyObject *_wrap_delete_KmerBloomFilter(PyObject *self, PyObject *args } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerBloomFilter) /* defines _wrap_delete_KmerBloomFilter_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedBloomFilter) /* defines _wrap_delete_SeedBloomFilter_destructor_closure */ -SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::SeedBloomFilter *result = 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; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; + pyobj = SWIG_FromCharPtr(btllib::COUNTING_BLOOM_FILTER_SIGNATURE); + return pyobj; } -SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +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; - size_t arg1 ; + std::string *arg1 = 0 ; unsigned int arg2 ; - std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ; - unsigned int arg4 ; - size_t val1 ; - int ecode1 = 0 ; + unsigned int arg3 ; + int res1 = SWIG_OLDOBJ ; unsigned int val2 ; int ecode2 = 0 ; - int res3 = SWIG_OLDOBJ ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedBloomFilter *result = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + btllib::SeqReader *result = 0 ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SeedBloomFilter" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_SeedBloomFilter" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); + 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; - res3 = swig::asptr(swig_obj[2], &ptr); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SeedBloomFilter" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + 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_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedBloomFilter" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); } - arg3 = ptr; + arg1 = ptr; } - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SeedBloomFilter" "', argument " "4"" of type '" "unsigned int""'"); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqReader" "', argument " "2"" of type '" "unsigned int""'"); } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter(arg1,arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res3)) delete arg3; + 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_SeqReader" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (btllib::SeqReader *)new btllib::SeqReader((std::string const &)*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res1)) delete arg1; return -1; } -SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_SeqReader__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; + unsigned int arg2 ; int res1 = SWIG_OLDOBJ ; - btllib::SeedBloomFilter *result = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + btllib::SeqReader *result = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + 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_SeedBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedBloomFilter" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (btllib::SeedBloomFilter *)new btllib::SeedBloomFilter((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_BUILTIN_INIT | 0 ); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqReader" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (btllib::SeqReader *)new btllib::SeqReader((std::string const &)*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -31298,870 +31038,654 @@ SWIGINTERN int _wrap_new_SeedBloomFilter__SWIG_2(PyObject *self, Py_ssize_t nobj } -SWIGINTERN int _wrap_new_SeedBloomFilter(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_SeqReader(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedBloomFilter")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedBloomFilter", 0, 4, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqReader")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeqReader", 0, 3, argv))) SWIG_fail; --argc; - if (argc == 0) { - int retval = _wrap_new_SeedBloomFilter__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 1) { - int retval = _wrap_new_SeedBloomFilter__SWIG_2(self, argc, argv); + if (argc == 2) { + int retval = _wrap_new_SeqReader__SWIG_1(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } - if (argc == 4) { - int retval = _wrap_new_SeedBloomFilter__SWIG_1(self, argc, argv); + if (argc == 3) { + int retval = _wrap_new_SeqReader__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_SeedBloomFilter'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_SeqReader'.\n" " Possible C/C++ prototypes are:\n" - " btllib::SeedBloomFilter::SeedBloomFilter()\n" - " btllib::SeedBloomFilter::SeedBloomFilter(size_t,unsigned int,std::vector< std::string,std::allocator< std::string > > const &,unsigned int)\n" - " btllib::SeedBloomFilter::SeedBloomFilter(std::string const &)\n"); + " btllib::SeqReader::SeqReader(std::string const &,unsigned int,unsigned int)\n" + " btllib::SeqReader::SeqReader(std::string const &,unsigned int)\n"); return -1; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_SeqReader(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_SeqReader", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqReader" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_insert" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - (arg1)->insert((char const *)arg2,arg3); + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_close(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::string *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_close", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_close" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - (arg1)->insert((std::string const &)*arg2); + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + (arg1)->close(); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_fold_case(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_fold_case", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_fold_case" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (bool)((btllib::SeqReader const *)arg1)->fold_case(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_trim_masked(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 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__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_trim_masked", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_trim_masked" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (bool)((btllib::SeqReader const *)arg1)->trim_masked(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_insert", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_SeedBloomFilter_insert__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_SeedBloomFilter_insert__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_SeedBloomFilter_insert__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_SeedBloomFilter_insert__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 'SeedBloomFilter_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedBloomFilter::insert(char const *,size_t)\n" - " btllib::SeedBloomFilter::insert(std::string const &)\n" - " btllib::SeedBloomFilter::insert(uint64_t const *)\n" - " btllib::SeedBloomFilter::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_short_mode(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; + bool result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_short_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_short_mode" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_contains" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = ((btllib::SeedBloomFilter const *)arg1)->contains((char const *)arg2,arg3); - 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 (alloc2 == SWIG_NEWOBJ) delete[] buf2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (bool)((btllib::SeqReader const *)arg1)->short_mode(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_long_mode(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::string *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; + bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_long_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_long_mode" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - result = ((btllib::SeedBloomFilter const *)arg1)->contains((std::string const &)*arg2); - 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(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (bool)((btllib::SeqReader const *)arg1)->long_mode(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_get_format(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool result; + btllib::SeqReader::Format result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_format", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_format" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (bool)((btllib::SeedBloomFilter const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (btllib::SeqReader::Format)((btllib::SeqReader const *)arg1)->get_format(); + resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_read(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - bool result; + btllib::SeqReader::Record result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_read", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_read" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - result = (bool)((btllib::SeedBloomFilter const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (arg1)->read(); + resultobj = SWIG_NewPointerObj((new btllib::SeqReader::Record(result)), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_SeqReader___iter__(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + SwigValueWrapper< btllib::SeqReader::RecordIterator > result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_contains", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_SeedBloomFilter_contains__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_SeedBloomFilter_contains__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_SeedBloomFilter_contains__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_SeedBloomFilter_contains__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "SeqReader___iter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader___iter__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj((new btllib::SeqReader::RecordIterator(result)), SWIGTYPE_p_btllib__SeqReader__RecordIterator, SWIG_POINTER_OWN | 0 ); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedBloomFilter_contains'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedBloomFilter::contains(char const *,size_t) const\n" - " btllib::SeedBloomFilter::contains(std::string const &) const\n" - " btllib::SeedBloomFilter::contains(uint64_t const *) const\n" - " btllib::SeedBloomFilter::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_get_buffer_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; + size_t result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_buffer_size", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_buffer_size" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SeedBloomFilter_contains_insert" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (arg1)->contains_insert((char const *)arg2,arg3); - 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 (alloc2 == SWIG_NEWOBJ) delete[] buf2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = ((btllib::SeqReader const *)arg1)->get_buffer_size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader_get_block_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::string *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - std::vector< std::vector< unsigned int,std::allocator< unsigned int > >,std::allocator< std::vector< unsigned int,std::allocator< unsigned int > > > > result; + size_t result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_block_size", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_block_size" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); } - result = (arg1)->contains_insert((std::string const &)*arg2); - 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(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = ((btllib::SeqReader const *)arg1)->get_block_size(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader___enter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - bool result; + btllib::SeqReader *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader___enter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader___enter__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (bool)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + result = (btllib::SeqReader *)btllib_SeqReader___enter__(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqReader___exit__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + PyObject *arg3 = (PyObject *) 0 ; + PyObject *arg4 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - bool result; + PyObject *swig_obj[4] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReader___exit__", 3, 3, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_contains_insert" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader___exit__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); } - result = (bool)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); + arg2 = swig_obj[0]; + arg3 = swig_obj[1]; + arg4 = swig_obj[2]; + btllib_SeqReader___exit__(arg1,arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_contains_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReader) /* defines _wrap_delete_SeqReader_destructor_closure */ + +SWIGPY_GETITERFUNC_CLOSURE(_wrap_SeqReader___iter__) /* defines _wrap_SeqReader___iter___getiterfunc_closure */ + +SWIGINTERN int _wrap_new_SeqReaderFlag(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + btllib::SeqReader::Flag *result = 0 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "SeedBloomFilter_contains_insert", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_SeedBloomFilter_contains_insert__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_SeedBloomFilter_contains_insert__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_SeedBloomFilter_contains_insert__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_SeedBloomFilter_contains_insert__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqReaderFlag")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_SeqReaderFlag", 0, 0, 0)) SWIG_fail; + result = (btllib::SeqReader::Flag *)new btllib::SeqReader::Flag(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader__Flag, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeedBloomFilter_contains_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeedBloomFilter::contains_insert(char const *,size_t)\n" - " btllib::SeedBloomFilter::contains_insert(std::string const &)\n" - " btllib::SeedBloomFilter::contains_insert(uint64_t const *)\n" - " btllib::SeedBloomFilter::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_SeqReaderFlag(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Flag *arg1 = (btllib::SeqReader::Flag *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderFlag", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Flag, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_bytes" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqReaderFlag" "', argument " "1"" of type '" "btllib::SeqReader::Flag *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = ((btllib::SeedBloomFilter const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::Flag * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderFlag) /* defines _wrap_delete_SeqReaderFlag_destructor_closure */ + +SWIGINTERN PyObject *_wrap_SeqReaderRecord_num_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; + size_t val2 ; + int ecode2 = 0 ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_pop_cnt" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_num_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (uint64_t)((btllib::SeedBloomFilter const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeqReaderRecord_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_SeedBloomFilter_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_num_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_occupancy", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_num_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_occupancy" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_num_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (double)((btllib::SeedBloomFilter const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + result = ((arg1)->num); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_total_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_id_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_total_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_total_hash_num" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_id_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_total_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + 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_SeedBloomFilter_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_id_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_fpr", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_id_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_fpr" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_id_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (double)((btllib::SeedBloomFilter const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::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_SeedBloomFilter_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_comment_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_k" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_comment_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_comment_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_comment_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + if (arg1) (arg1)->comment = *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_SeedBloomFilter_get_seeds(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_comment_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::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, "SeedBloomFilter_get_seeds", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_comment_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_seeds" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_comment_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (std::vector< std::string,std::allocator< std::string > > *) &((btllib::SeedBloomFilter const *)arg1)->get_seeds(); - resultobj = swig::from(static_cast< std::vector< std::string,std::allocator< std::string > > >(*result)); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + result = (std::string *) & ((arg1)->comment); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_parsed_seeds(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_seq_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *result = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_parsed_seeds", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_parsed_seeds" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_seq_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *) &((btllib::SeedBloomFilter const *)arg1)->get_parsed_seeds(); - 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)); + arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_seq_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_seq_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + 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_SeedBloomFilter_get_hash_num_per_seed(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_seq_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_seq_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_seq_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_hash_num_per_seed(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + result = (std::string *) & ((arg1)->seq); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_qual_set(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_num" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_qual_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (unsigned int)((btllib::SeedBloomFilter const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + if (arg1) (arg1)->qual = *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_SeedBloomFilter_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord_qual_get(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_qual_get", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_hash_fn" "', argument " "1"" of type '" "btllib::SeedBloomFilter const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_qual_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (std::string *) &((btllib::SeedBloomFilter const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + result = (std::string *) & ((arg1)->qual); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -32169,110 +31693,111 @@ SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_hash_fn(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_get_kmer_bloom_filter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqReaderRecord___nonzero__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::KmerBloomFilter *result = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedBloomFilter_get_kmer_bloom_filter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord___nonzero__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_get_kmer_bloom_filter" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord___nonzero__" "', argument " "1"" of type '" "btllib::SeqReader::Record const *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); - result = (btllib::KmerBloomFilter *) &(arg1)->get_kmer_bloom_filter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerBloomFilter, 0 | 0 ); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + result = (bool)((btllib::SeqReader::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_SeedBloomFilter_save(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_SeqReaderRecord(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; - std::string *arg2 = 0 ; + btllib::SeqReader::Record *result = 0 ; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqReaderRecord")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_SeqReaderRecord", 0, 0, 0)) SWIG_fail; + result = (btllib::SeqReader::Record *)new btllib::SeqReader::Record(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN PyObject *_wrap_delete_SeqReaderRecord(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 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__SeedBloomFilter, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderRecord", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedBloomFilter_save" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); - } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(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 '" "SeedBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_save" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqReaderRecord" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); } - (arg1)->save((std::string const &)*arg2); + arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeedBloomFilter_is_bloom_file(PyObject *self, PyObject *args) { +SWIGPY_INQUIRY_CLOSURE(_wrap_SeqReaderRecord___nonzero__) /* defines _wrap_SeqReaderRecord___nonzero___inquiry_closure */ + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderRecord) /* defines _wrap_delete_SeqReaderRecord_destructor_closure */ + +SWIGINTERN PyObject *_wrap_SeqReaderRecordIterator___next__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; + btllib::SeqReader::RecordIterator *arg1 = (btllib::SeqReader::RecordIterator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::SeqReader::Record result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; + if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecordIterator___next__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__RecordIterator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecordIterator___next__" "', argument " "1"" of type '" "btllib::SeqReader::RecordIterator *""'"); + } + arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeedBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeedBloomFilter_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + result = (arg1)->next(); + if (!bool(result)) { + PyErr_SetNone(PyExc_StopIteration); + SWIG_fail; } - arg1 = ptr; } - result = (bool)btllib::SeedBloomFilter::is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + resultobj = SWIG_NewPointerObj((new btllib::SeqReader::Record(result)), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_OWN | 0 ); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_SeedBloomFilter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_SeqReaderRecordIterator(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedBloomFilter *arg1 = (btllib::SeedBloomFilter *) 0 ; + btllib::SeqReader::RecordIterator *arg1 = (btllib::SeqReader::RecordIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeedBloomFilter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedBloomFilter, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderRecordIterator", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__RecordIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedBloomFilter" "', argument " "1"" of type '" "btllib::SeedBloomFilter *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqReaderRecordIterator" "', argument " "1"" of type '" "btllib::SeqReader::RecordIterator *""'"); } - arg1 = reinterpret_cast< btllib::SeedBloomFilter * >(argp1); + arg1 = reinterpret_cast< btllib::SeqReader::RecordIterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -32281,166 +31806,117 @@ 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; -} +SWIGPY_ITERNEXTFUNC_CLOSURE(_wrap_SeqReaderRecordIterator___next__) /* defines _wrap_SeqReaderRecordIterator___next___iternextfunc_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderRecordIterator) /* defines _wrap_delete_SeqReaderRecordIterator_destructor_closure */ -SWIGINTERN int _wrap_new_SeqReader__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_split(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; - unsigned int arg2 ; - unsigned int arg3 ; + std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::SeqReader *result = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; + std::vector< std::string,std::allocator< std::string > > result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + 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 '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); + 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 '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "split" "', 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 '" "new_SeqReader" "', 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_SeqReader" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::SeqReader *)new btllib::SeqReader((std::string const &)*arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, SWIG_BUILTIN_INIT | 0 ); + { + 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; - return resultobj == Py_None ? -1 : 0; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_SeqReader__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_join(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - unsigned int arg2 ; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; + std::string *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::SeqReader *result = 0 ; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; + std::string result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "join", 2, 2, swig_obj)) SWIG_fail; { - std::string *ptr = (std::string *)0; - res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + 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 '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); + 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 '" "new_SeqReader" "', argument " "1"" of type '" "std::string const &""'"); + 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; } - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SeqReader" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (btllib::SeqReader *)new btllib::SeqReader((std::string const &)*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, SWIG_BUILTIN_INIT | 0 ); + { + 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; - return resultobj == Py_None ? -1 : 0; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_SeqReader(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqReader")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeqReader", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 2) { - int retval = _wrap_new_SeqReader__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int retval = _wrap_new_SeqReader__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_SeqReader'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::SeqReader::SeqReader(std::string const &,unsigned int,unsigned int)\n" - " btllib::SeqReader::SeqReader(std::string const &,unsigned int)\n"); - return -1; -} - - -SWIGINTERN PyObject *_wrap_delete_SeqReader(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ltrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeqReader", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, SWIG_POINTER_DISOWN | 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 '" "delete_SeqReader" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - delete arg1; + 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: @@ -32448,20 +31924,23 @@ SWIGINTERN PyObject *_wrap_delete_SeqReader(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_SeqReader_close(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_ltrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_close", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 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 '" "SeqReader_close" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ltrim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - (arg1)->close(); + 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: @@ -32469,642 +31948,717 @@ SWIGINTERN PyObject *_wrap_SeqReader_close(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_SeqReader_fold_case(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 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, "SeqReader_fold_case", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_fold_case" "', argument " "1"" of type '" "btllib::SeqReader 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::SeqReader * >(argp1); - result = (bool)((btllib::SeqReader const *)arg1)->fold_case(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SeqReader_trim_masked(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; +check_1: - (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_trim_masked", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_trim_masked" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + if (argc == 1) { + PyObject *retobj = _wrap_ltrim__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (bool)((btllib::SeqReader const *)arg1)->trim_masked(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; + 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_SeqReader_short_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_rtrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_short_mode", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 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 '" "SeqReader_short_mode" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (bool)((btllib::SeqReader 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 '" "std::string &""'"); + } + arg1 = reinterpret_cast< std::string * >(argp1); + btllib::rtrim(*arg1); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeqReader_long_mode(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_rtrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_long_mode", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 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 '" "SeqReader_long_mode" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rtrim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (bool)((btllib::SeqReader const *)arg1)->long_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_SeqReader_get_format(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::SeqReader::Format result; +SWIGINTERN PyObject *_wrap_rtrim(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_format", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_format" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + 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); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (btllib::SeqReader::Format)((btllib::SeqReader const *)arg1)->get_format(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; +check_1: + + if (argc == 1) { + PyObject *retobj = _wrap_rtrim__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 'rtrim'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::rtrim(std::string &)\n" + " btllib::rtrim(btllib::CString &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SeqReader_read(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_trim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + std::string *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::SeqReader::Record result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_read", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 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 '" "SeqReader_read" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (arg1)->read(); - resultobj = SWIG_NewPointerObj((new btllib::SeqReader::Record(result)), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_OWN | 0 ); + 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_SeqReader___iter__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_trim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; + btllib::CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - SwigValueWrapper< btllib::SeqReader::RecordIterator > result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader___iter__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 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 '" "SeqReader___iter__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "trim" "', argument " "1"" of type '" "btllib::CString &""'"); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (arg1)->begin(); - resultobj = SWIG_NewPointerObj((new btllib::SeqReader::RecordIterator(result)), SWIGTYPE_p_btllib__SeqReader__RecordIterator, 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 PyObject *_wrap_SeqReader_get_buffer_size(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; +SWIGINTERN PyObject *_wrap_trim(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[2] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_buffer_size", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_buffer_size" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + 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); } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = ((btllib::SeqReader const *)arg1)->get_buffer_size(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; +check_1: + + if (argc == 1) { + PyObject *retobj = _wrap_trim__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 'trim'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::trim(std::string &)\n" + " btllib::trim(btllib::CString &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SeqReader_get_block_size(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_startswith(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; + std::string arg1 ; + std::string arg2 ; + PyObject *swig_obj[2] ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader_get_block_size", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader_get_block_size" "', argument " "1"" of type '" "btllib::SeqReader const *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = ((btllib::SeqReader const *)arg1)->get_block_size(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + { + 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; + } + result = (bool)btllib::startswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeqReader___enter__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_endswith(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::SeqReader *result = 0 ; + std::string arg1 ; + std::string arg2 ; + PyObject *swig_obj[2] ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader___enter__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader___enter__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - result = (btllib::SeqReader *)btllib_SeqReader___enter__(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader, 0 | 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 NULL; } -SWIGINTERN PyObject *_wrap_SeqReader___exit__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_get_basename(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader *arg1 = (btllib::SeqReader *) 0 ; - PyObject *arg2 = (PyObject *) 0 ; - PyObject *arg3 = (PyObject *) 0 ; - PyObject *arg4 = (PyObject *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject *swig_obj[4] ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::string result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReader___exit__", 3, 3, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReader___exit__" "', argument " "1"" of type '" "btllib::SeqReader *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader * >(argp1); - arg2 = swig_obj[0]; - arg3 = swig_obj[1]; - arg4 = swig_obj[2]; - btllib_SeqReader___exit__(arg1,arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); + 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: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReader) /* defines _wrap_delete_SeqReader_destructor_closure */ - -SWIGPY_GETITERFUNC_CLOSURE(_wrap_SeqReader___iter__) /* defines _wrap_SeqReader___iter___getiterfunc_closure */ - -SWIGINTERN int _wrap_new_SeqReaderFlag(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj = 0; - btllib::SeqReader::Flag *result = 0 ; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeqReaderFlag")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_SeqReaderFlag", 0, 0, 0)) SWIG_fail; - result = (btllib::SeqReader::Flag *)new btllib::SeqReader::Flag(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader__Flag, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN PyObject *_wrap_delete_SeqReaderFlag(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader::Flag *arg1 = (btllib::SeqReader::Flag *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::string result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderFlag", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Flag, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqReaderFlag" "', argument " "1"" of type '" "btllib::SeqReader::Flag *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader::Flag * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + 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; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderFlag) /* defines _wrap_delete_SeqReaderFlag_destructor_closure */ - -SWIGINTERN PyObject *_wrap_SeqReaderRecord_num_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + std::string *arg1 = 0 ; size_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; + size_t arg3 ; + int res1 = SWIG_OLDOBJ ; size_t val2 ; int ecode2 = 0 ; - PyObject *swig_obj[2] ; + size_t val3 ; + int ecode3 = 0 ; + double result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_num_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + 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 '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[0], &val2); + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SeqReaderRecord_num_set" "', argument " "2"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "calc_phred_avg" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); - if (arg1) (arg1)->num = arg2; - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "calc_phred_avg" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (double)btllib::calc_phred_avg((std::string const &)*arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); + resultobj = SWIG_From_double(static_cast< double >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_num_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_num_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_num_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = ((arg1)->num); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_SeqReaderRecord_id_set(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + std::string *arg1 = 0 ; + size_t arg2 ; + int res1 = SWIG_OLDOBJ ; + size_t val2 ; + int ecode2 = 0 ; + double result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_id_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; { 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 '" "SeqReaderRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + res1 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_id_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - if (arg1) (arg1)->id = *arg2; - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "calc_phred_avg" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + result = (double)btllib::calc_phred_avg((std::string const &)*arg1,SWIG_STD_MOVE(arg2)); + resultobj = SWIG_From_double(static_cast< double >(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_SeqReaderRecord_id_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_id_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_id_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + 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 '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = (std::string *) & ((arg1)->id); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + result = (double)btllib::calc_phred_avg((std::string const &)*arg1); + resultobj = SWIG_From_double(static_cast< double >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_comment_set(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; +SWIGINTERN PyObject *_wrap_calc_phred_avg(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_comment_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "calc_phred_avg", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 1) { + PyObject *retobj = _wrap_calc_phred_avg__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_comment_set" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_comment_set" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + if (argc == 2) { + PyObject *retobj = _wrap_calc_phred_avg__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - if (arg1) (arg1)->comment = *arg2; - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + if (argc == 3) { + PyObject *retobj = _wrap_calc_phred_avg__SWIG_0(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 'calc_phred_avg'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::calc_phred_avg(std::string const &,size_t,size_t)\n" + " btllib::calc_phred_avg(std::string const &,size_t)\n" + " btllib::calc_phred_avg(std::string const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_comment_get(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Barrier(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + unsigned int arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject *swig_obj[1] ; + btllib::Barrier *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_comment_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_comment_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = (std::string *) & ((arg1)->comment); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); - return resultobj; + 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; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_seq_set(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Barrier_wait(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - std::string *arg2 = 0 ; + btllib::Barrier *arg1 = (btllib::Barrier *) 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__SeqReader__Record, 0 | 0 ); + 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 '" "SeqReaderRecord_seq_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::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 '" "SeqReaderRecord_seq_set" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqReaderRecord_seq_set" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Barrier_wait" "', argument " "1"" of type '" "btllib::Barrier *""'"); } - if (arg1) (arg1)->seq = *arg2; + arg1 = reinterpret_cast< btllib::Barrier * >(argp1); + (arg1)->wait(); resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_seq_get(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_seq_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); + 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 '" "SeqReaderRecord_seq_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Barrier" "', argument " "1"" of type '" "btllib::Barrier *""'"); } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = (std::string *) & ((arg1)->seq); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::Barrier * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_qual_set(PyObject *self, PyObject *args) { +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; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + 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 ; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_qual_set" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; { 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 '" "SeqReaderRecord_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + 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 '" "SeqReaderRecord_qual_set" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeqWriter" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - if (arg1) (arg1)->qual = *arg2; - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + 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; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord_qual_get(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_SeqWriter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + std::string *arg1 = 0 ; + btllib::SeqWriter::Format arg2 ; + int res1 = SWIG_OLDOBJ ; + int val2 ; + int ecode2 = 0 ; + btllib::SeqWriter *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord_qual_get", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord_qual_get" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = (std::string *) & ((arg1)->qual); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); - return resultobj; + 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; fail: - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_SeqReaderRecord___nonzero__(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_SeqWriter__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - bool result; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::SeqWriter *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecord___nonzero__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqReaderRecord___nonzero__" "', argument " "1"" of type '" "btllib::SeqReader::Record const *""'"); + 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; } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - result = (bool)((btllib::SeqReader::Record const *)arg1)->operator bool(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; + 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: - PyErr_Clear(); - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN int _wrap_new_SeqReaderRecord(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject *resultobj = 0; - btllib::SeqReader::Record *result = 0 ; +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_SeqReaderRecord")) SWIG_fail; - if (!SWIG_Python_UnpackTuple(args, "new_SeqReaderRecord", 0, 0, 0)) SWIG_fail; - result = (btllib::SeqReader::Record *)new btllib::SeqReader::Record(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + 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; + } + 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 PyObject *_wrap_delete_SeqReaderRecord(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqWriter_close(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeqReader::Record *arg1 = (btllib::SeqReader::Record *) 0 ; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderRecord", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_DISOWN | 0 ); + 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 '" "delete_SeqReaderRecord" "', argument " "1"" of type '" "btllib::SeqReader::Record *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_close" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); } - arg1 = reinterpret_cast< btllib::SeqReader::Record * >(argp1); - delete arg1; + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + (arg1)->close(); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -33112,278 +32666,225 @@ SWIGINTERN PyObject *_wrap_delete_SeqReaderRecord(PyObject *self, PyObject *args } -SWIGPY_INQUIRY_CLOSURE(_wrap_SeqReaderRecord___nonzero__) /* defines _wrap_SeqReaderRecord___nonzero___inquiry_closure */ - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderRecord) /* defines _wrap_delete_SeqReaderRecord_destructor_closure */ - -SWIGINTERN PyObject *_wrap_SeqReaderRecordIterator___next__(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::RecordIterator *arg1 = (btllib::SeqReader::RecordIterator *) 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 ; - btllib::SeqReader::Record result; + int res2 = SWIG_OLDOBJ ; + int res3 = SWIG_OLDOBJ ; + int res4 = SWIG_OLDOBJ ; + int res5 = SWIG_OLDOBJ ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeqReaderRecordIterator___next__", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__RecordIterator, 0 | 0 ); + 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 '" "SeqReaderRecordIterator___next__" "', argument " "1"" of type '" "btllib::SeqReader::RecordIterator *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter_write" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); } - arg1 = reinterpret_cast< btllib::SeqReader::RecordIterator * >(argp1); + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); { - result = (arg1)->next(); - if (!bool(result)) { - PyErr_SetNone(PyExc_StopIteration); - 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 '" "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; } - resultobj = SWIG_NewPointerObj((new btllib::SeqReader::Record(result)), SWIGTYPE_p_btllib__SeqReader__Record, SWIG_POINTER_OWN | 0 ); + { + 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_delete_SeqReaderRecordIterator(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqWriter_write__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeqReader::RecordIterator *arg1 = (btllib::SeqReader::RecordIterator *) 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 (!SWIG_Python_UnpackTuple(args, "delete_SeqReaderRecordIterator", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeqReader__RecordIterator, SWIG_POINTER_DISOWN | 0 ); + 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 '" "delete_SeqReaderRecordIterator" "', argument " "1"" of type '" "btllib::SeqReader::RecordIterator *""'"); - } - arg1 = reinterpret_cast< btllib::SeqReader::RecordIterator * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_ITERNEXTFUNC_CLOSURE(_wrap_SeqReaderRecordIterator___next__) /* defines _wrap_SeqReaderRecordIterator___next___iternextfunc_closure */ - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeqReaderRecordIterator) /* defines _wrap_delete_SeqReaderRecordIterator_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; + 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 '" "split" "', argument " "2"" of type '" "std::string const &""'"); + 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 '" "split" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', 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 &""'"); + 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 '" "join" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "3"" of type '" "std::string const &""'"); } - arg1 = ptr; + arg3 = 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 &""'"); + 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 '" "join" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SeqWriter_write" "', argument " "4"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg4 = 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; + (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(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; + if (SWIG_IsNewObj(res3)) delete arg3; + if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } -SWIGINTERN PyObject *_wrap_ltrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - 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 '" "ltrim" "', argument " "1"" of type '" "std::string &""'"); - } - 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_ltrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CString *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - 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 '" "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 &""'"); - } - arg1 = reinterpret_cast< btllib::CString * >(argp1); - btllib::ltrim(*arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_ltrim(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_SeqWriter_write(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[2] = { + PyObject *argv[6] = { 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); + 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; } -check_1: - - if (argc == 1) { - PyObject *retobj = _wrap_ltrim__SWIG_1(self, argc, argv); + 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 'ltrim'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SeqWriter_write'.\n" " Possible C/C++ prototypes are:\n" - " btllib::ltrim(std::string &)\n" - " btllib::ltrim(btllib::CString &)\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_rtrim__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqWriter___enter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + btllib::SeqWriter *result = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + 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 '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rtrim" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeqWriter___enter__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::rtrim(*arg1); - resultobj = SWIG_Py_Void(); + 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_rtrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeqWriter___exit__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CString *arg1 = 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 ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__CString, 0 ); + 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 '" "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 '" "SeqWriter___exit__" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); } - arg1 = reinterpret_cast< btllib::CString * >(argp1); - btllib::rtrim(*arg1); + 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: @@ -33391,59 +32892,20 @@ SWIGINTERN PyObject *_wrap_rtrim__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObj } -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_delete_SeqWriter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; + btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string, 0 ); + 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 '" "trim" "', argument " "1"" of type '" "std::string &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "trim" "', argument " "1"" of type '" "std::string &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeqWriter" "', argument " "1"" of type '" "btllib::SeqWriter *""'"); } - arg1 = reinterpret_cast< std::string * >(argp1); - btllib::trim(*arg1); + arg1 = reinterpret_cast< btllib::SeqWriter * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -33451,168 +32913,101 @@ 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) { - PyObject *resultobj = 0; - btllib::CString *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - 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 '" "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; +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 *_wrap_trim(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[2] = { - 0 - }; +SWIGINTERN PyObject *Swig_var_COMPLEMENTS_get(void) { + PyObject *pyobj = 0; + PyObject *self = 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; + { + size_t size = SWIG_strnlen(btllib::COMPLEMENTS, 256); + + + + pyobj = SWIG_FromCharPtrAndSize(btllib::COMPLEMENTS, size); } - -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; + return pyobj; } -SWIGINTERN PyObject *_wrap_startswith(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string arg1 ; - std::string arg2 ; - PyObject *swig_obj[2] ; - bool result; +SWIGINTERN int Swig_var_AMINO_ACIDS_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable AMINO_ACIDS is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_AMINO_ACIDS_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (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; + size_t size = SWIG_strnlen(btllib::AMINO_ACIDS, 256); + + + + pyobj = SWIG_FromCharPtrAndSize(btllib::AMINO_ACIDS, size); } - result = (bool)btllib::startswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; + return pyobj; } -SWIGINTERN PyObject *_wrap_endswith(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string arg1 ; - std::string arg2 ; - PyObject *swig_obj[2] ; - bool result; +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; - 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; - } { - 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; + size_t size = SWIG_strnlen(btllib::CAPITALS, 256); + + + + pyobj = SWIG_FromCharPtrAndSize(btllib::CAPITALS, size); } - result = (bool)btllib::endswith(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2)); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - return resultobj; -fail: - return NULL; + return pyobj; } -SWIGINTERN PyObject *_wrap_get_basename(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_reverse_complement(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; + void *argp1 = 0 ; + int res1 = 0 ; 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_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; + 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 &""'"); } - result = btllib::get_basename((std::string const &)*arg1); - resultobj = SWIG_From_std_string(static_cast< std::string >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + 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: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_get_reverse_complement(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; @@ -33626,14 +33021,14 @@ SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *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 &""'"); + 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_dirname" "', argument " "1"" of type '" "std::string const &""'"); + 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_dirname((std::string const &)*arg1); + 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; @@ -33643,977 +33038,223 @@ SWIGINTERN PyObject *_wrap_get_dirname(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - size_t arg2 ; - size_t arg3 ; - int res1 = SWIG_OLDOBJ ; - size_t val2 ; - int ecode2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - double result; +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; - 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 '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', 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 '" "calc_phred_avg" "', 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 '" "calc_phred_avg" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (double)btllib::calc_phred_avg((std::string const &)*arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3)); - resultobj = SWIG_From_double(static_cast< double >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + pyobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(btllib::CP_OFF)); + return pyobj; } -SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - size_t arg2 ; - int res1 = SWIG_OLDOBJ ; - size_t val2 ; - int ecode2 = 0 ; - double result; +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; - 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 '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', 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 '" "calc_phred_avg" "', argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - result = (double)btllib::calc_phred_avg((std::string const &)*arg1,SWIG_STD_MOVE(arg2)); - resultobj = SWIG_From_double(static_cast< double >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + pyobj = SWIG_From_int(static_cast< int >(btllib::MULTISHIFT)); + return pyobj; } -SWIGINTERN PyObject *_wrap_calc_phred_avg__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - double result; +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; - 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 '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "calc_phred_avg" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (double)btllib::calc_phred_avg((std::string const &)*arg1); - resultobj = SWIG_From_double(static_cast< double >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::MULTISEED)); + return pyobj; } -SWIGINTERN PyObject *_wrap_calc_phred_avg(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +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; - if (!(argc = SWIG_Python_UnpackTuple(args, "calc_phred_avg", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 1) { - PyObject *retobj = _wrap_calc_phred_avg__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_calc_phred_avg__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_calc_phred_avg__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 'calc_phred_avg'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::calc_phred_avg(std::string const &,size_t,size_t)\n" - " btllib::calc_phred_avg(std::string const &,size_t)\n" - " btllib::calc_phred_avg(std::string const &)\n"); - return 0; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_A)); + return pyobj; } -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 ; +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; - 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; -fail: - return -1; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_C)); + return pyobj; } -SWIGINTERN PyObject *_wrap_Barrier_wait(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; +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; - 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; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_G)); + return pyobj; } -SWIGINTERN PyObject *_wrap_delete_Barrier(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::Barrier *arg1 = (btllib::Barrier *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; +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; - 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; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_T)); + return pyobj; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Barrier) /* defines _wrap_delete_Barrier_destructor_closure */ +SWIGINTERN int Swig_var_SEED_N_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable SEED_N is read-only."); + return 1; +} -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 ; - bool val3 ; - int ecode3 = 0 ; - btllib::SeqWriter *result = 0 ; + +SWIGINTERN PyObject *Swig_var_SEED_N_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; (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; - } - 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; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + pyobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(btllib::SEED_N)); + return pyobj; } -SWIGINTERN int _wrap_new_SeqWriter__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - btllib::SeqWriter::Format arg2 ; - int res1 = SWIG_OLDOBJ ; - int val2 ; - int ecode2 = 0 ; - btllib::SeqWriter *result = 0 ; +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; - 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; - } - 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; -fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + pyobj = SWIG_From_int(static_cast< int >(btllib::ASCII_SIZE)); + return pyobj; } -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 ; +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; - 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; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::SEED_TAB), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; } -SWIGINTERN int _wrap_new_SeqWriter(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +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; - 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; - } - -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; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; } -SWIGINTERN PyObject *_wrap_SeqWriter_close(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::SeqWriter *arg1 = (btllib::SeqWriter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; +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; - 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; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::A31L), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; } -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 ; +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; - 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; - 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; - } - (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; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::C33R), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; } -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_AMINO_ACIDS_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable AMINO_ACIDS is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_AMINO_ACIDS_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; - - (void)self; - { - size_t size = SWIG_strnlen(btllib::AMINO_ACIDS, 256); - - - - pyobj = SWIG_FromCharPtrAndSize(btllib::AMINO_ACIDS, 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; +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 ); @@ -42619,1855 +41260,3287 @@ SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_H____RIGHT_33BITS_ROLL_TABLE_set(PyObjec } -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_H____RIGHT_33BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_H____RIGHT_33BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_H____RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE_set(PyObject *) { + SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE is read-only."); + return 1; +} + + +SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE_get(void) { + PyObject *pyobj = 0; + PyObject *self = 0; + + (void)self; + pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_p_p_unsigned_long_long, 0 ); + return pyobj; +} + + +SWIGINTERN PyObject *_wrap_aahash_base__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "aahash_base" "', 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 '" "aahash_base" "', 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 '" "aahash_base" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (uint64_t)btllib::aahash_base((char const *)arg1,arg2,arg3); + 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_aahash_base__SWIG_1(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 ; + int ecode2 = 0 ; + uint64_t result; + + (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 '" "aahash_base" "', 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 '" "aahash_base" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)btllib::aahash_base((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_aahash_base(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "aahash_base", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 2) { + PyObject *retobj = _wrap_aahash_base__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_aahash_base__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 'aahash_base'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::aahash_base(char const *,unsigned int,unsigned int)\n" + " btllib::aahash_base(char const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_aahash_roll__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + uint64_t arg1 ; + unsigned int arg2 ; + unsigned char arg3 ; + unsigned char arg4 ; + unsigned int arg5 ; + uint64_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', argument " "4"" of type '" "unsigned char""'"); + } + arg4 = static_cast< unsigned char >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "aahash_roll" "', argument " "5"" of type '" "unsigned int""'"); + } + arg5 = static_cast< unsigned int >(val5); + result = (uint64_t)btllib::aahash_roll(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_aahash_roll__SWIG_1(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 ; + int ecode2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + uint64_t result; + + (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 '" "aahash_roll" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', argument " "4"" of type '" "unsigned char""'"); + } + arg4 = static_cast< unsigned char >(val4); + result = (uint64_t)btllib::aahash_roll(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_aahash_roll(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "aahash_roll", 0, 5, argv))) SWIG_fail; + --argc; + if (argc == 4) { + PyObject *retobj = _wrap_aahash_roll__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 5) { + PyObject *retobj = _wrap_aahash_roll__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 'aahash_roll'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::aahash_roll(uint64_t,unsigned int,unsigned char,unsigned char,unsigned int)\n" + " btllib::aahash_roll(uint64_t,unsigned int,unsigned char,unsigned char)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_aa_modify_base_with_seed(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + uint64_t arg1 ; + btllib::SpacedSeed *arg2 = 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + uint64_t val1 ; + int ecode1 = 0 ; + int res2 = SWIG_OLDOBJ ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject *swig_obj[4] ; + uint64_t result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "aa_modify_base_with_seed", 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 '" "aa_modify_base_with_seed" "', argument " "1"" of type '" "uint64_t""'"); + } + arg1 = static_cast< uint64_t >(val1); + { + std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (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 '" "aa_modify_base_with_seed" "', argument " "2"" of type '" "btllib::SpacedSeed const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "aa_modify_base_with_seed" "', argument " "2"" of type '" "btllib::SpacedSeed const &""'"); + } + arg2 = ptr; + } + res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "aa_modify_base_with_seed" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "aa_modify_base_with_seed" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (uint64_t)btllib::aa_modify_base_with_seed(arg1,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_aa_parse_seeds(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::vector< std::string,std::allocator< std::string > > *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > result; + + (void)self; + 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); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "aa_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 '" "aa_parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + arg1 = ptr; + } + result = btllib::aa_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 _wrap_new_AAHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string_view arg1 ; + uint8_t arg2 ; + uint16_t arg3 ; + unsigned int arg4 ; + size_t arg5 ; + void *argp1 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::AAHash *result = 0 ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string_view, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); + } else { + std::string_view * temp = reinterpret_cast< std::string_view * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AAHash" "', argument " "2"" of type '" "uint8_t""'"); + } + arg2 = static_cast< uint8_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AAHash" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_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_AAHash" "', 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_AAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::AAHash *)new btllib::AAHash(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_AAHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string_view arg1 ; + uint8_t arg2 ; + uint16_t arg3 ; + unsigned int arg4 ; + void *argp1 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::AAHash *result = 0 ; + + (void)self; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; + { + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string_view, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); + } else { + std::string_view * temp = reinterpret_cast< std::string_view * >(argp1); + arg1 = *temp; + if (SWIG_IsNewObj(res1)) delete temp; + } + } + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AAHash" "', argument " "2"" of type '" "uint8_t""'"); + } + arg2 = static_cast< uint8_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AAHash" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_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_AAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::AAHash *)new btllib::AAHash(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN PyObject *_wrap_AAHash_roll(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_roll", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_roll" "', argument " "1"" of type '" "btllib::AAHash *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (bool)(arg1)->roll(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_hashes(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_hashes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_hashes" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (uint64_t *)((btllib::AAHash 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_AAHash_get_pos(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_pos", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_pos" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = ((btllib::AAHash const *)arg1)->get_pos(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_hash_num" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (unsigned int)((btllib::AAHash const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_get_k(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_k" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (unsigned int)((btllib::AAHash const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_forward(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_forward", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_forward" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (bool)((btllib::AAHash const *)arg1)->forward(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_get_forward_hash(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_forward_hash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_forward_hash" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (uint64_t)((btllib::AAHash 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_AAHash_get_level(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_level", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_level" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (unsigned int)((btllib::AAHash const *)arg1)->get_level(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AAHash_get_seq(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "AAHash_get_seq", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_seq" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + result = (char *)((btllib::AAHash const *)arg1)->get_seq(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN int _wrap_new_AAHash__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::AAHash *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_AAHash" "', 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::AAHash *)new_btllib_AAHash__SWIG_2(SWIG_STD_MOVE(arg1),arg2,arg3,arg4,SWIG_STD_MOVE(arg5)); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_AAHash__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::AAHash *result = 0 ; + + (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_AAHash" "', 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::AAHash *)new_btllib_AAHash__SWIG_2(SWIG_STD_MOVE(arg1),arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_AAHash(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; + + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_AAHash")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_AAHash", 0, 5, argv))) SWIG_fail; + --argc; + if (argc == 4) { + int _v = 0; + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__string_view, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + { + { + int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + int retval = _wrap_new_AAHash__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_1: + + if (argc == 4) { + int retval = _wrap_new_AAHash__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 5) { + int _v = 0; + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__string_view, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + { + { + int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + { + { + int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + int retval = _wrap_new_AAHash__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_3: + + if (argc == 5) { + int retval = _wrap_new_AAHash__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 'new_AAHash'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::AAHash::AAHash(std::string_view,uint8_t,uint16_t,unsigned int,size_t)\n" + " btllib::AAHash::AAHash(std::string_view,uint8_t,uint16_t,unsigned int)\n" + " btllib::AAHash::AAHash(std::string,unsigned int,unsigned int,unsigned int,size_t)\n" + " btllib::AAHash::AAHash(std::string,unsigned int,unsigned int,unsigned int)\n"); + return -1; +} + + +SWIGINTERN PyObject *_wrap_delete_AAHash(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_AAHash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AAHash" "', argument " "1"" of type '" "btllib::AAHash *""'"); + } + arg1 = reinterpret_cast< btllib::AAHash * >(argp1); + delete_btllib_AAHash(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_AAHash) /* defines _wrap_delete_AAHash_destructor_closure */ + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::SeedAAHash *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 '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedAAHash *result = 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 '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::SeedAAHash *result = 0 ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedAAHash *result = 0 ; + + (void)self; + if ((nobjs < 4) || (nobjs > 4)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::SeedAAHash *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 '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedAAHash *result = 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 '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + size_t arg5 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + size_t val5 ; + int ecode5 = 0 ; + btllib::SeedAAHash *result = 0 ; + + (void)self; + if ((nobjs < 5) || (nobjs > 5)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; + } + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + } + arg5 = static_cast< size_t >(val5); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_7(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; + unsigned int arg3 ; + unsigned int arg4 ; + int res1 = SWIG_OLDOBJ ; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + btllib::SeedAAHash *result = 0 ; + + (void)self; + if ((nobjs < 4) || (nobjs > 4)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; + } + { + std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj == Py_None ? -1 : 0; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + if (SWIG_IsNewObj(res2)) delete arg2; + return -1; +} + + +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::SeedAAHash *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_H____RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE is read-only."); - return 1; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__SeedAAHash, 0 | 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash const &""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash const &""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((btllib::SeedAAHash const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; } -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_SeedAAHash__SWIG_9(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + std::unique_ptr< btllib::SeedAAHash > rvrdeleter1 ; + btllib::SeedAAHash *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_H____LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE is read-only."); - return 1; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_RELEASE | 0 ); + if (!SWIG_IsOK(res1)) { + if (res1 == SWIG_ERROR_RELEASE_NOT_OWNED) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', cannot release ownership as memory is not owned for argument " "1"" of type '" "btllib::SeedAAHash &&""'"); + } else { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash &&""'"); + } + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash &&""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + rvrdeleter1.reset(arg1); + result = (btllib::SeedAAHash *)new btllib::SeedAAHash((btllib::SeedAAHash &&)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; } -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN int _wrap_new_SeedAAHash(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[6] = { + 0 + }; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_P____RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedAAHash")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedAAHash", 0, 5, argv))) SWIG_fail; + --argc; + if (argc == 1) { + int _v = 0; + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_new_SeedAAHash__SWIG_8(self, argc, argv); + } +check_1: - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_P____LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (argc == 1) { + int retval = _wrap_new_SeedAAHash__SWIG_9(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 4) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + { + int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + int retval = _wrap_new_SeedAAHash__SWIG_7(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_3: - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED______RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; + if (argc == 4) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + { + int res = swig::asptr(argv[1], (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_4; + int retval = _wrap_new_SeedAAHash__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_4: - (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED______LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE is read-only."); - return 1; + if (argc == 4) { + int _v = 0; + { + int res = swig::asptr(argv[1], (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_5; + int retval = _wrap_new_SeedAAHash__SWIG_1(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_5: + + if (argc == 4) { + int retval = _wrap_new_SeedAAHash__SWIG_5(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 5) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_7; + { + int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_7; + int retval = _wrap_new_SeedAAHash__SWIG_6(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_7: + + if (argc == 5) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_8; + { + int res = swig::asptr(argv[1], (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_8; + int retval = _wrap_new_SeedAAHash__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_8: + + if (argc == 5) { + int _v = 0; + { + int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_9; + int retval = _wrap_new_SeedAAHash__SWIG_4(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } +check_9: + + if (argc == 5) { + int retval = _wrap_new_SeedAAHash__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_SeedAAHash'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" + " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n" + " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" + " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n" + " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int,size_t)\n" + " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int)\n" + " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int,size_t)\n" + " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int)\n" + " btllib::SeedAAHash::SeedAAHash(btllib::SeedAAHash const &)\n" + " btllib::SeedAAHash::SeedAAHash(btllib::SeedAAHash &&)\n"); + return -1; } -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedAAHash_roll(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_roll", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_roll" "', argument " "1"" of type '" "btllib::SeedAAHash *""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (bool)(arg1)->roll(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedAAHash_hashes(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t *result = 0 ; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_3_AA_SEED_LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_TABLE is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_hashes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_hashes" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (uint64_t *)((btllib::SeedAAHash const *)arg1)->hashes(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedAAHash_get_pos(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_TABLE), SWIGTYPE_p_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_pos", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_pos" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = ((btllib::SeedAAHash const *)arg1)->get_pos(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedAAHash_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_RIGHT_33BITS_ROLL_TABLE), SWIGTYPE_p_p_p_unsigned_long_long, 0 ); - return pyobj; -} - - -SWIGINTERN int Swig_var_LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE is read-only."); - return 1; + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_hash_num" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (unsigned int)((btllib::SeedAAHash const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; } -SWIGINTERN PyObject *Swig_var_LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE_get(void) { - PyObject *pyobj = 0; - PyObject *self = 0; +SWIGINTERN PyObject *_wrap_SeedAAHash_get_hash_num_per_seed(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; (void)self; - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(btllib::LEVEL_X_AA_SEED_LEFT_31BITS_ROLL_TABLE), SWIGTYPE_p_p_p_unsigned_long_long, 0 ); - return pyobj; + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + } + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (unsigned int)((btllib::SeedAAHash 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 *_wrap_aahash_base__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_SeedAAHash_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned int arg2 ; - unsigned int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - uint64_t result; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "aahash_base" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_k" "', argument " "1"" of type '" "btllib::SeedAAHash 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 '" "aahash_base" "', 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 '" "aahash_base" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (uint64_t)btllib::aahash_base((char const *)arg1,arg2,arg3); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + result = (unsigned int)((btllib::SeedAAHash const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_aahash_base__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_SeedAAHash(PyObject *self, PyObject *args) { PyObject *resultobj = 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; + btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if (!SWIG_Python_UnpackTuple(args, "delete_SeedAAHash", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "aahash_base" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash *""'"); } - 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 '" "aahash_base" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)btllib::aahash_base((char const *)arg1,arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; return NULL; } -SWIGINTERN PyObject *_wrap_aahash_base(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedAAHash) /* defines _wrap_delete_SeedAAHash_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 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "aahash_base", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 2) { - PyObject *retobj = _wrap_aahash_base__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_aahash_base__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 'aahash_base'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::aahash_base(char const *,unsigned int,unsigned int)\n" - " btllib::aahash_base(char const *,unsigned int)\n"); - return 0; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; } -SWIGINTERN PyObject *_wrap_aahash_roll__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; + size_t arg1 ; unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - unsigned int arg5 ; - uint64_t val1 ; + std::string arg3 ; + size_t val1 ; int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - unsigned int val5 ; - int ecode5 = 0 ; - uint64_t result; + btllib::CountingBloomFilter< uint8_t > *result = 0 ; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "aahash_roll" "', argument " "1"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); } - arg1 = static_cast< uint64_t >(val1); + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "aahash_roll" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter8" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', argument " "4"" of type '" "unsigned char""'"); - } - arg4 = static_cast< unsigned char >(val4); - ecode5 = SWIG_AsVal_unsigned_SS_int(swig_obj[4], &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "aahash_roll" "', argument " "5"" of type '" "unsigned int""'"); - } - arg5 = static_cast< unsigned int >(val5); - result = (uint64_t)btllib::aahash_roll(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + { + 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_CountingBloomFilter8" "', argument " "3"" of type '" "std::string""'"); + } + arg3 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_aahash_roll__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; + size_t arg1 ; unsigned int arg2 ; - unsigned char arg3 ; - unsigned char arg4 ; - uint64_t val1 ; + size_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; + btllib::CountingBloomFilter< uint8_t > *result = 0 ; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[0], &val1); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "aahash_roll" "', argument " "1"" of type '" "uint64_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); } - arg1 = static_cast< uint64_t >(val1); + arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "aahash_roll" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter8" "', 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 '" "aahash_roll" "', 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 '" "aahash_roll" "', argument " "4"" of type '" "unsigned char""'"); - } - arg4 = static_cast< unsigned char >(val4); - result = (uint64_t)btllib::aahash_roll(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; + result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_aahash_roll(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::CountingBloomFilter< uint8_t > *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_CountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; + } + result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 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_CountingBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[6] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "aahash_roll", 0, 5, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter8")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter8", 0, 3, argv))) SWIG_fail; --argc; - if (argc == 4) { - PyObject *retobj = _wrap_aahash_roll__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 0) { + int retval = _wrap_new_CountingBloomFilter8__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } - if (argc == 5) { - PyObject *retobj = _wrap_aahash_roll__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 1) { + int retval = _wrap_new_CountingBloomFilter8__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 2) { + int retval = _wrap_new_CountingBloomFilter8__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { + int retval = _wrap_new_CountingBloomFilter8__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 'aahash_roll'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CountingBloomFilter8'.\n" " Possible C/C++ prototypes are:\n" - " btllib::aahash_roll(uint64_t,unsigned int,unsigned char,unsigned char,unsigned int)\n" - " btllib::aahash_roll(uint64_t,unsigned int,unsigned char,unsigned char)\n"); - return 0; + " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter()\n" + " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(size_t,unsigned int)\n" + " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_aa_modify_base_with_seed(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - uint64_t arg1 ; - btllib::SpacedSeed *arg2 = 0 ; - char *arg3 = (char *) 0 ; - unsigned int arg4 ; - uint64_t val1 ; - int ecode1 = 0 ; - int res2 = SWIG_OLDOBJ ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - PyObject *swig_obj[4] ; - uint64_t result; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "aa_modify_base_with_seed", 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 '" "aa_modify_base_with_seed" "', argument " "1"" of type '" "uint64_t""'"); - } - arg1 = static_cast< uint64_t >(val1); - { - std::vector< unsigned int,std::allocator< unsigned int > > *ptr = (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 '" "aa_modify_base_with_seed" "', argument " "2"" of type '" "btllib::SpacedSeed const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "aa_modify_base_with_seed" "', argument " "2"" of type '" "btllib::SpacedSeed const &""'"); - } - arg2 = ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - res3 = SWIG_AsCharPtrAndSize(swig_obj[2], &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "aa_modify_base_with_seed" "', argument " "3"" of type '" "char const *""'"); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "aa_modify_base_with_seed" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (uint64_t)btllib::aa_modify_base_with_seed(arg1,(std::vector< unsigned int,std::allocator< unsigned int > > const &)*arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; return NULL; } -SWIGINTERN PyObject *_wrap_aa_parse_seeds(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_1(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 ; - PyObject *swig_obj[1] ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > result; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *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__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + } + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); { - 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 '" "aa_parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "aa_parse_seeds" "', argument " "1"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - arg1 = ptr; + arg2 = ptr; } - result = btllib::aa_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; + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); + 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 _wrap_new_AAHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string_view arg1 ; - uint8_t arg2 ; - uint16_t arg3 ; - unsigned int arg4 ; - size_t arg5 ; - void *argp1 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::AAHash *result = 0 ; +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string_view, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); - } else { - std::string_view * temp = reinterpret_cast< std::string_view * >(argp1); - arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_1; + return _wrap_CountingBloomFilter8_insert__SWIG_0(self, argc, argv); } - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AAHash" "', argument " "2"" of type '" "uint8_t""'"); - } - arg2 = static_cast< uint8_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AAHash" "', argument " "3"" of type '" "uint16_t""'"); - } - arg3 = static_cast< uint16_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_AAHash" "', 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_AAHash" "', argument " "5"" of type '" "size_t""'"); - } - arg5 = static_cast< size_t >(val5); - result = (btllib::AAHash *)new btllib::AAHash(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_AAHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string_view arg1 ; - uint8_t arg2 ; - uint16_t arg3 ; - unsigned int arg4 ; - void *argp1 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::AAHash *result = 0 ; +check_1: - (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - { - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__string_view, 0 | 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AAHash" "', argument " "1"" of type '" "std::string_view""'"); - } else { - std::string_view * temp = reinterpret_cast< std::string_view * >(argp1); - arg1 = *temp; - if (SWIG_IsNewObj(res1)) delete temp; - } + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AAHash" "', argument " "2"" of type '" "uint8_t""'"); - } - arg2 = static_cast< uint8_t >(val2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AAHash" "', argument " "3"" of type '" "uint16_t""'"); - } - arg3 = static_cast< uint16_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_AAHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::AAHash *)new btllib::AAHash(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, 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 'CountingBloomFilter8_insert'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint8_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_AAHash_roll(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + void *argp2 = 0 ; + int res2 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_roll", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_roll" "', argument " "1"" of type '" "btllib::AAHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (bool)(arg1)->roll(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->remove((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_AAHash_hashes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t *result = 0 ; + int res2 = SWIG_OLDOBJ ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_hashes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_hashes" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (uint64_t *)((btllib::AAHash 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])); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; } - + (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > 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_AAHash_get_pos(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_pos", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_pos" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_remove", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_CountingBloomFilter8_remove__SWIG_0(self, argc, argv); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = ((btllib::AAHash const *)arg1)->get_pos(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_remove__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 'CountingBloomFilter8_remove'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::remove(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint8_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_AAHash_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + void *argp2 = 0 ; + int res2 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_hash_num" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (unsigned int)((btllib::AAHash const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->clear((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_AAHash_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_k" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (unsigned int)((btllib::AAHash const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > 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_AAHash_get_forward_hash(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_forward_hash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_forward_hash" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_clear", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_CountingBloomFilter8_clear__SWIG_0(self, argc, argv); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (uint64_t)((btllib::AAHash const *)arg1)->get_forward_hash(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_clear__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 'CountingBloomFilter8_clear'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::clear(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint8_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_AAHash_get_level(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_level", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_level" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (unsigned int)((btllib::AAHash const *)arg1)->get_level(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned char)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_AAHash_get_seq(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned char result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "AAHash_get_seq", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AAHash_get_seq" "', argument " "1"" of type '" "btllib::AAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - result = (char *)((btllib::AAHash const *)arg1)->get_seq(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN int _wrap_new_AAHash__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::AAHash *result = 0 ; - - (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(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_AAHash" "', argument " "1"" of type '" "std::string""'"); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', argument " "5"" of type '" "size_t""'"); - } - arg5 = static_cast< size_t >(val5); - result = (btllib::AAHash *)new_btllib_AAHash__SWIG_2(SWIG_STD_MOVE(arg1),arg2,arg3,arg4,SWIG_STD_MOVE(arg5)); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_AAHash__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - unsigned int arg4 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::AAHash *result = 0 ; - - (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_AAHash" "', argument " "1"" of type '" "std::string""'"); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - arg1 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; + 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_AAHash" "', 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_AAHash" "', 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_AAHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::AAHash *)new_btllib_AAHash__SWIG_2(SWIG_STD_MOVE(arg1),arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__AAHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + result = (unsigned char)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_AAHash(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[6] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_AAHash")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_AAHash", 0, 5, argv))) SWIG_fail; - --argc; - if (argc == 4) { + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { int _v = 0; { - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__string_view, SWIG_POINTER_NO_NULL | 0); + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_1; - { - { - int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_1; - int retval = _wrap_new_AAHash__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + return _wrap_CountingBloomFilter8_contains__SWIG_0(self, argc, argv); } check_1: - if (argc == 4) { - int retval = _wrap_new_AAHash__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 5) { - int _v = 0; - { - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__string_view, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_3; - { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_3; - { - { - int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); - _v = SWIG_CheckState(res); - } - } - if (!_v) goto check_3; - int retval = _wrap_new_AAHash__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_3: - - if (argc == 5) { - int retval = _wrap_new_AAHash__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_contains__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_AAHash'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter8_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::AAHash::AAHash(std::string_view,uint8_t,uint16_t,unsigned int,size_t)\n" - " btllib::AAHash::AAHash(std::string_view,uint8_t,uint16_t,unsigned int)\n" - " btllib::AAHash::AAHash(std::string,unsigned int,unsigned int,unsigned int,size_t)\n" - " btllib::AAHash::AAHash(std::string,unsigned int,unsigned int,unsigned int)\n"); - return -1; + " btllib::CountingBloomFilter< uint8_t >::contains(uint64_t const *) const\n" + " btllib::CountingBloomFilter< uint8_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + return 0; } -SWIGINTERN PyObject *_wrap_delete_AAHash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::AAHash *arg1 = (btllib::AAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_AAHash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__AAHash, SWIG_POINTER_DISOWN | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AAHash" "', argument " "1"" of type '" "btllib::AAHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::AAHash * >(argp1); - delete_btllib_AAHash(arg1); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned char)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_AAHash) /* defines _wrap_delete_AAHash_destructor_closure */ - -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(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; + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); - } - arg5 = static_cast< size_t >(val5); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + result = (unsigned char)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains_insert", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_CountingBloomFilter8_contains_insert__SWIG_0(self, argc, argv); + } +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert__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 'CountingBloomFilter8_contains_insert'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::contains_insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint8_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedAAHash *result = 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + } + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned char)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned char result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(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; + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + result = (unsigned char)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - int res1 = SWIG_OLDOBJ ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::SeedAAHash *result = 0 ; +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; (void)self; - if ((nobjs < 5) || (nobjs > 5)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert_contains", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); } - arg1 = ptr; + if (!_v) goto check_1; + return _wrap_CountingBloomFilter8_insert_contains__SWIG_0(self, argc, argv); } - { - 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - arg2 = ptr; +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_insert_contains__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); - } - arg5 = static_cast< size_t >(val5); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + fail: - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter8_insert_contains'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::insert_contains(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint8_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - int res1 = SWIG_OLDOBJ ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - { - 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "2"" of type '" "std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &""'"); - } - arg2 = ptr; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = reinterpret_cast< uint64_t * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< char * >(buf1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); } - arg5 = static_cast< size_t >(val5); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 3) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + PyObject *retobj = _wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } +check_1: + + if (argc == 3) { + PyObject *retobj = _wrap_CountingBloomFilter8_insert_thresh_contains__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 'CountingBloomFilter8_insert_thresh_contains'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::insert_thresh_contains(uint64_t const *,unsigned char)\n" + " btllib::CountingBloomFilter< uint8_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(swig_obj[0], &buf1, NULL, &alloc1); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< char * >(buf1); - { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - arg2 = ptr; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = reinterpret_cast< uint64_t * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((char const *)arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + return resultobj; fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_6(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - size_t arg5 ; - int res1 = SWIG_OLDOBJ ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - size_t val5 ; - int ecode5 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char result; (void)self; - if ((nobjs < 5) || (nobjs > 5)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', 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_SeedAAHash" "', argument " "5"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); } - arg5 = static_cast< size_t >(val5); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_7(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; - unsigned int arg3 ; - unsigned int arg4 ; - int res1 = SWIG_OLDOBJ ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - btllib::SeedAAHash *result = 0 ; +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; (void)self; - if ((nobjs < 4) || (nobjs > 4)) 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_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "std::string const &""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 3) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); } - arg1 = ptr; + if (!_v) goto check_1; + PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - { - std::vector< std::string,std::allocator< std::string > > *ptr = (std::vector< std::string,std::allocator< std::string > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'"); - } - arg2 = ptr; +check_1: + + if (argc == 3) { + PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert_thresh__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 'CountingBloomFilter8_contains_insert_thresh'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::contains_insert_thresh(uint64_t const *,unsigned char)\n" + " btllib::CountingBloomFilter< uint8_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_bytes(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SeedAAHash" "', 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_SeedAAHash" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((std::string const &)*arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = ((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - if (SWIG_IsNewObj(res2)) delete arg2; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::SeedAAHash *result = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + uint64_t result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__SeedAAHash, 0 | 0); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash const &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((btllib::SeedAAHash const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + result = (uint64_t)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash__SWIG_9(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::unique_ptr< btllib::SeedAAHash > rvrdeleter1 ; - btllib::SeedAAHash *result = 0 ; + uint64_t result; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_RELEASE | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - if (res1 == SWIG_ERROR_RELEASE_NOT_OWNED) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', cannot release ownership as memory is not owned for argument " "1"" of type '" "btllib::SeedAAHash &&""'"); - } else { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash &&""'"); - } - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash &&""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - rvrdeleter1.reset(arg1); - result = (btllib::SeedAAHash *)new btllib::SeedAAHash((btllib::SeedAAHash &&)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__SeedAAHash, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = (uint64_t)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_SeedAAHash(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[6] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_SeedAAHash")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_SeedAAHash", 0, 5, argv))) SWIG_fail; - --argc; - if (argc == 1) { - int _v = 0; - { - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_new_SeedAAHash__SWIG_8(self, argc, argv); - } -check_1: - + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; if (argc == 1) { - int retval = _wrap_new_SeedAAHash__SWIG_9(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 4) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_3; - { - int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_3; - int retval = _wrap_new_SeedAAHash__SWIG_7(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_CountingBloomFilter8_get_pop_cnt__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } -check_3: - - if (argc == 4) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_4; - { - int res = swig::asptr(argv[1], (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_4; - int retval = _wrap_new_SeedAAHash__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_get_pop_cnt__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } -check_4: - if (argc == 4) { - int _v = 0; - { - int res = swig::asptr(argv[1], (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_5; - int retval = _wrap_new_SeedAAHash__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_5: +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter8_get_pop_cnt'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::get_pop_cnt(unsigned char) const\n" + " btllib::CountingBloomFilter< uint8_t >::get_pop_cnt() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + unsigned char arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + double result; - if (argc == 4) { - int retval = _wrap_new_SeedAAHash__SWIG_5(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 5) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_7; - { - int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_7; - int retval = _wrap_new_SeedAAHash__SWIG_6(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } -check_7: + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; - if (argc == 5) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_8; - { - int res = swig::asptr(argv[1], (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_8; - int retval = _wrap_new_SeedAAHash__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } -check_8: + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; - if (argc == 5) { - int _v = 0; - { - int res = swig::asptr(argv[1], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_9; - int retval = _wrap_new_SeedAAHash__SWIG_4(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_occupancy", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_CountingBloomFilter8_get_occupancy__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } -check_9: - - if (argc == 5) { - int retval = _wrap_new_SeedAAHash__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_get_occupancy__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 'new_SeedAAHash'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter8_get_occupancy'.\n" " Possible C/C++ prototypes are:\n" - " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" - " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n" - " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)\n" - " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)\n" - " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int,size_t)\n" - " btllib::SeedAAHash::SeedAAHash(char const *,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int)\n" - " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int,size_t)\n" - " btllib::SeedAAHash::SeedAAHash(std::string const &,std::vector< std::string,std::allocator< std::string > > const &,unsigned int,unsigned int)\n" - " btllib::SeedAAHash::SeedAAHash(btllib::SeedAAHash const &)\n" - " btllib::SeedAAHash::SeedAAHash(btllib::SeedAAHash &&)\n"); - return -1; + " btllib::CountingBloomFilter< uint8_t >::get_occupancy(unsigned char) const\n" + " btllib::CountingBloomFilter< uint8_t >::get_occupancy() const\n"); + return 0; } -SWIGINTERN PyObject *_wrap_SeedAAHash_roll(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool result; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_roll", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_roll" "', argument " "1"" of type '" "btllib::SeedAAHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (bool)(arg1)->roll(); - resultobj = SWIG_From_bool(static_cast< bool >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = (unsigned int)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedAAHash_hashes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t *result = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_hashes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_hashes" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (uint64_t *)((btllib::SeedAAHash const *)arg1)->hashes(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_fpr(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedAAHash_get_pos(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + double result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_pos", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_pos" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = ((btllib::SeedAAHash const *)arg1)->get_pos(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedAAHash_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_fpr", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_CountingBloomFilter8_get_fpr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter8_get_fpr__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 'CountingBloomFilter8_get_fpr'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint8_t >::get_fpr(unsigned char) const\n" + " btllib::CountingBloomFilter< uint8_t >::get_fpr() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_hash_num" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (unsigned int)((btllib::SeedAAHash const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + result = (std::string *) &((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_SeedAAHash_get_hash_num_per_seed(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_hash_num_per_seed", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_hash_num_per_seed" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (unsigned int)((btllib::SeedAAHash const *)arg1)->get_hash_num_per_seed(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(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 '" "CountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + (arg1)->save((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_SeedAAHash_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter8_is_bloom_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int result; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "SeedAAHash_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SeedAAHash_get_k" "', argument " "1"" of type '" "btllib::SeedAAHash const *""'"); + 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 '" "CountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); - result = (unsigned int)((btllib::SeedAAHash const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = (bool)btllib::CountingBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: + if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_SeedAAHash(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter8(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::SeedAAHash *arg1 = (btllib::SeedAAHash *) 0 ; + btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_SeedAAHash", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__SeedAAHash, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter8", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SeedAAHash" "', argument " "1"" of type '" "btllib::SeedAAHash *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter8" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::SeedAAHash * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -44476,23 +44549,23 @@ SWIGINTERN PyObject *_wrap_delete_SeedAAHash(PyObject *self, PyObject *args) { } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_SeedAAHash) /* defines _wrap_delete_SeedAAHash_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter8) /* defines _wrap_delete_CountingBloomFilter8_destructor_closure */ -SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *result = 0 ; + btllib::CountingBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -44501,38 +44574,38 @@ SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::CountingBloomFilter< uint8_t > *result = 0 ; + btllib::CountingBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_CountingBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_CountingBloomFilter8" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_CountingBloomFilter16" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -44540,33 +44613,33 @@ SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::CountingBloomFilter< uint8_t > *result = 0 ; + btllib::CountingBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_CountingBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - btllib::CountingBloomFilter< uint8_t > *result = 0 ; + btllib::CountingBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; @@ -44574,15 +44647,15 @@ SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t 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_CountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (btllib::CountingBloomFilter< uint8_t > *)new btllib::CountingBloomFilter< uint8_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -44591,51 +44664,51 @@ SWIGINTERN int _wrap_new_CountingBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t } -SWIGINTERN int _wrap_new_CountingBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_CountingBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter8")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter8", 0, 3, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter16")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter16", 0, 3, argv))) SWIG_fail; --argc; if (argc == 0) { - int retval = _wrap_new_CountingBloomFilter8__SWIG_0(self, argc, argv); + int retval = _wrap_new_CountingBloomFilter16__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 1) { - int retval = _wrap_new_CountingBloomFilter8__SWIG_3(self, argc, argv); + int retval = _wrap_new_CountingBloomFilter16__SWIG_3(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 2) { - int retval = _wrap_new_CountingBloomFilter8__SWIG_2(self, argc, argv); + int retval = _wrap_new_CountingBloomFilter16__SWIG_2(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 3) { - int retval = _wrap_new_CountingBloomFilter8__SWIG_1(self, argc, argv); + int retval = _wrap_new_CountingBloomFilter16__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 'new_CountingBloomFilter8'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CountingBloomFilter16'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter()\n" - " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(size_t,unsigned int)\n" - " btllib::CountingBloomFilter< uint8_t >::CountingBloomFilter(std::string const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter()\n" + " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(size_t,unsigned int)\n" + " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(std::string const &)\n"); return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44644,14 +44717,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_0(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->insert((uint64_t const *)arg2); @@ -44662,9 +44735,9 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_0(PyObject *self, P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44672,19 +44745,19 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_1(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -44698,14 +44771,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert__SWIG_1(PyObject *self, P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -44715,28 +44788,28 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert(PyObject *self, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_insert__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_insert__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_insert__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_insert__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 'CountingBloomFilter8_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint8_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint16_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44745,14 +44818,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_0(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->remove((uint64_t const *)arg2); @@ -44763,9 +44836,9 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_0(PyObject *self, P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44773,19 +44846,19 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_1(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -44799,14 +44872,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove__SWIG_1(PyObject *self, P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_remove", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_remove", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -44816,28 +44889,28 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_remove(PyObject *self, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_remove__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_remove__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_remove__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_remove__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 'CountingBloomFilter8_remove'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_remove'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::remove(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint8_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::remove(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint16_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44846,14 +44919,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_0(PyObject *self, Py (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->clear((uint64_t const *)arg2); @@ -44864,9 +44937,9 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_0(PyObject *self, Py } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -44874,19 +44947,19 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_1(PyObject *self, Py (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -44900,14 +44973,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear__SWIG_1(PyObject *self, Py } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_clear", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_clear", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -44917,84 +44990,84 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_clear(PyObject *self, PyObject * _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_clear__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_clear__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_clear__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_clear__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 'CountingBloomFilter8_clear'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_clear'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::clear(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint8_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::clear(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint16_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned char)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -45003,14 +45076,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains__SWIG_1(PyObject *self, } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -45020,84 +45093,84 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains(PyObject *self, PyObjec _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_contains__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_contains__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_contains__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 'CountingBloomFilter8_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::contains(uint64_t const *) const\n" - " btllib::CountingBloomFilter< uint8_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::CountingBloomFilter< uint16_t >::contains(uint64_t const *) const\n" + " btllib::CountingBloomFilter< uint16_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned char)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -45106,14 +45179,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert__SWIG_1(PyObject } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains_insert", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -45123,84 +45196,84 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert(PyObject *self, _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_contains_insert__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_contains_insert__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert__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 'CountingBloomFilter8_contains_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::contains_insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint8_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::contains_insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint16_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned char)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (unsigned short)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -45209,14 +45282,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains__SWIG_1(PyObject } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -45226,100 +45299,100 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_contains(PyObject *self, _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter8_insert_contains__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter16_insert_contains__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_insert_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_insert_contains__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 'CountingBloomFilter8_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_insert_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::insert_contains(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint8_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint16_t >::insert_contains(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint16_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char arg3 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char val3 ; + unsigned short val3 ; int ecode3 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char arg3 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; + unsigned short val3 ; int ecode3 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -45328,14 +45401,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_1(P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -45345,102 +45418,102 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_insert_thresh_contains(PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter8_insert_thresh_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_insert_thresh_contains__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 'CountingBloomFilter8_insert_thresh_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_insert_thresh_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::insert_thresh_contains(uint64_t const *,unsigned char)\n" - " btllib::CountingBloomFilter< uint8_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + " btllib::CountingBloomFilter< uint16_t >::insert_thresh_contains(uint64_t const *,unsigned short)\n" + " btllib::CountingBloomFilter< uint16_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char arg3 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char val3 ; + unsigned short val3 ; int ecode3 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char arg3 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; + unsigned short val3 ; int ecode3 = 0 ; - unsigned char result; + unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -45449,14 +45522,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_1(P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -45466,42 +45539,42 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_contains_insert_thresh(PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter8_contains_insert_thresh__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert_thresh__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 'CountingBloomFilter8_contains_insert_thresh'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_contains_insert_thresh'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::contains_insert_thresh(uint64_t const *,unsigned char)\n" - " btllib::CountingBloomFilter< uint8_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + " btllib::CountingBloomFilter< uint16_t >::contains_insert_thresh(uint64_t const *,unsigned short)\n" + " btllib::CountingBloomFilter< uint16_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = ((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_bytes(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = ((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_bytes(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -45509,29 +45582,29 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_bytes(PyObject *self, PyObje } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; + unsigned short val2 ; int ecode2 = 0 ; uint64_t result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "2"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "2"" of type '" "unsigned short""'"); } - arg2 = static_cast< unsigned char >(val2); - result = (uint64_t)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(arg2); + arg2 = static_cast< unsigned short >(val2); + result = (uint64_t)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(arg2); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -45539,21 +45612,21 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = (uint64_t)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = (uint64_t)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: @@ -45561,58 +45634,58 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_pop_cnt__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_pop_cnt__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_pop_cnt__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_pop_cnt__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 'CountingBloomFilter8_get_pop_cnt'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_get_pop_cnt'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::get_pop_cnt(unsigned char) const\n" - " btllib::CountingBloomFilter< uint8_t >::get_pop_cnt() const\n"); + " btllib::CountingBloomFilter< uint16_t >::get_pop_cnt(unsigned short) const\n" + " btllib::CountingBloomFilter< uint16_t >::get_pop_cnt() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; + unsigned short val2 ; int ecode2 = 0 ; double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "2"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "2"" of type '" "unsigned short""'"); } - arg2 = static_cast< unsigned char >(val2); - result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(arg2); + arg2 = static_cast< unsigned short >(val2); + result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(arg2); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -45620,21 +45693,21 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_0(PyObject * } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -45642,50 +45715,50 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy__SWIG_1(PyObject * } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_occupancy", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_occupancy", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_occupancy__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_occupancy__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_occupancy__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_occupancy__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 'CountingBloomFilter8_get_occupancy'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_get_occupancy'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::get_occupancy(unsigned char) const\n" - " btllib::CountingBloomFilter< uint8_t >::get_occupancy() const\n"); + " btllib::CountingBloomFilter< uint16_t >::get_occupancy(unsigned short) const\n" + " btllib::CountingBloomFilter< uint16_t >::get_occupancy() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = (unsigned int)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = (unsigned int)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -45693,29 +45766,29 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_num(PyObject *self, PyO } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; + unsigned short val2 ; int ecode2 = 0 ; double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "2"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "2"" of type '" "unsigned short""'"); } - arg2 = static_cast< unsigned char >(val2); - result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_fpr(arg2); + arg2 = static_cast< unsigned short >(val2); + result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_fpr(arg2); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -45723,21 +45796,21 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_0(PyObject *self, } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; double result; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_fpr(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_fpr(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: @@ -45745,50 +45818,50 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr__SWIG_1(PyObject *self, } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_fpr", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_fpr", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_fpr__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_fpr__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter8_get_fpr__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter16_get_fpr__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 'CountingBloomFilter8_get_fpr'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter16_get_fpr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint8_t >::get_fpr(unsigned char) const\n" - " btllib::CountingBloomFilter< uint8_t >::get_fpr() const\n"); + " btllib::CountingBloomFilter< uint16_t >::get_fpr(unsigned short) const\n" + " btllib::CountingBloomFilter< uint16_t >::get_fpr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); - result = (std::string *) &((btllib::CountingBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + result = (std::string *) &((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -45796,9 +45869,9 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_get_hash_fn(PyObject *self, PyOb } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -45808,19 +45881,19 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_save(PyObject *self, PyObject *a (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter8_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(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 '" "CountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -45834,7 +45907,7 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_save(PyObject *self, PyObject *a } -SWIGINTERN PyObject *_wrap_CountingBloomFilter8_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter16_is_bloom_file(PyObject *self, PyObject *args) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; @@ -45848,14 +45921,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_is_bloom_file(PyObject *self, Py 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 '" "CountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (bool)btllib::CountingBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + result = (bool)btllib::CountingBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; @@ -45865,19 +45938,19 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter8_is_bloom_file(PyObject *self, Py } -SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter8(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter16(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint8_t > *arg1 = (btllib::CountingBloomFilter< uint8_t > *) 0 ; + btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter8", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter16", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter8" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter16" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -45886,23 +45959,23 @@ SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter8(PyObject *self, PyObject } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter8) /* defines _wrap_delete_CountingBloomFilter8_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter16) /* defines _wrap_delete_CountingBloomFilter16_destructor_closure */ -SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *result = 0 ; + btllib::CountingBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -45911,38 +45984,38 @@ SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_1(PyObject *self, Py_ssize_ int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::CountingBloomFilter< uint16_t > *result = 0 ; + btllib::CountingBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_CountingBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_CountingBloomFilter16" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_CountingBloomFilter32" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -45950,461 +46023,156 @@ SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_2(PyObject *self, Py_ssize_ int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::CountingBloomFilter< uint16_t > *result = 0 ; + btllib::CountingBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_CountingBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_CountingBloomFilter16__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::CountingBloomFilter< uint16_t > *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_CountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (btllib::CountingBloomFilter< uint16_t > *)new btllib::CountingBloomFilter< uint16_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 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_CountingBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter16")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter16", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_CountingBloomFilter16__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 1) { - int retval = _wrap_new_CountingBloomFilter16__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 2) { - int retval = _wrap_new_CountingBloomFilter16__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int retval = _wrap_new_CountingBloomFilter16__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 'new_CountingBloomFilter16'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter()\n" - " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(size_t,unsigned int)\n" - " btllib::CountingBloomFilter< uint16_t >::CountingBloomFilter(std::string const &)\n"); - return -1; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > 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_CountingBloomFilter16_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_insert__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_insert__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 'CountingBloomFilter16_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint16_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->remove((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > 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_CountingBloomFilter16_remove(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_remove", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_remove__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_remove__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 'CountingBloomFilter16_remove'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::remove(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint16_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->clear((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; + result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::CountingBloomFilter< uint32_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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_CountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_clear(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_CountingBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_clear", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_clear__SWIG_0(self, argc, argv); + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter32")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter32", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_CountingBloomFilter32__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 1) { + int retval = _wrap_new_CountingBloomFilter32__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } -check_1: - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_clear__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_CountingBloomFilter32__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { + int retval = _wrap_new_CountingBloomFilter32__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 'CountingBloomFilter16_clear'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CountingBloomFilter32'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::clear(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint16_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter()\n" + " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(size_t,unsigned int)\n" + " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned short)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -46413,14 +46181,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains__SWIG_1(PyObject *self } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -46430,84 +46198,82 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains(PyObject *self, PyObje _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_contains__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter32_insert__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_insert__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 'CountingBloomFilter16_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::contains(uint64_t const *) const\n" - " btllib::CountingBloomFilter< uint16_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::CountingBloomFilter< uint32_t >::insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint32_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned short)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -46516,14 +46282,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert__SWIG_1(PyObjec } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_remove", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -46533,84 +46299,82 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert(PyObject *self, _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_contains_insert__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter32_remove__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_remove__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 'CountingBloomFilter16_contains_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_remove'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::contains_insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint16_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint32_t >::remove(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint32_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned short)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -46619,14 +46383,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains__SWIG_1(PyObjec } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_clear", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -46636,100 +46400,84 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_contains(PyObject *self, _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter16_insert_contains__SWIG_0(self, argc, argv); + return _wrap_CountingBloomFilter32_clear__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_insert_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_clear__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 'CountingBloomFilter16_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_clear'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::insert_contains(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint16_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint32_t >::clear(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint32_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -46738,16 +46486,16 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_1( } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -46755,102 +46503,84 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_insert_thresh_contains(PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_CountingBloomFilter32_contains__SWIG_0(self, argc, argv); } check_1: - if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter16_insert_thresh_contains__SWIG_1(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_CountingBloomFilter32_contains__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 'CountingBloomFilter16_insert_thresh_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::insert_thresh_contains(uint64_t const *,unsigned short)\n" - " btllib::CountingBloomFilter< uint16_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); + " btllib::CountingBloomFilter< uint32_t >::contains(uint64_t const *) const\n" + " btllib::CountingBloomFilter< uint32_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + result = (unsigned int)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + result = (unsigned int)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -46859,16 +46589,16 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_1( } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains_insert", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -46876,366 +46606,324 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_contains_insert_thresh(PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert_thresh__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_CountingBloomFilter32_contains_insert__SWIG_0(self, argc, argv); } check_1: - if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter16_contains_insert_thresh__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 'CountingBloomFilter16_contains_insert_thresh'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::contains_insert_thresh(uint64_t const *,unsigned short)\n" - " btllib::CountingBloomFilter< uint16_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_bytes(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = ((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "2"" of type '" "unsigned short""'"); - } - arg2 = static_cast< unsigned short >(val2); - result = (uint64_t)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = (uint64_t)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_pop_cnt__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_pop_cnt__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert__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 'CountingBloomFilter16_get_pop_cnt'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::get_pop_cnt(unsigned short) const\n" - " btllib::CountingBloomFilter< uint16_t >::get_pop_cnt() const\n"); + " btllib::CountingBloomFilter< uint32_t >::contains_insert(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint32_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - double result; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "2"" of type '" "unsigned short""'"); - } - arg2 = static_cast< unsigned short >(val2); - result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned int)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + result = (unsigned int)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_occupancy", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_occupancy__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_CountingBloomFilter32_insert_contains__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_occupancy__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_insert_contains__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 'CountingBloomFilter16_get_occupancy'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_insert_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::get_occupancy(unsigned short) const\n" - " btllib::CountingBloomFilter< uint16_t >::get_occupancy() const\n"); + " btllib::CountingBloomFilter< uint32_t >::insert_contains(uint64_t const *)\n" + " btllib::CountingBloomFilter< uint32_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = (unsigned int)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - double result; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "2"" of type '" "unsigned short""'"); + arg2 = reinterpret_cast< uint64_t * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); } - arg2 = static_cast< unsigned short >(val2); - result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_fpr(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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 '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_fpr", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_fpr__SWIG_1(self, argc, argv); + if (argc == 3) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + PyObject *retobj = _wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter16_get_fpr__SWIG_0(self, argc, argv); +check_1: + + if (argc == 3) { + PyObject *retobj = _wrap_CountingBloomFilter32_insert_thresh_contains__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 'CountingBloomFilter16_get_fpr'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_insert_thresh_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint16_t >::get_fpr(unsigned short) const\n" - " btllib::CountingBloomFilter< uint16_t >::get_fpr() const\n"); + " btllib::CountingBloomFilter< uint32_t >::insert_thresh_contains(uint64_t const *,unsigned int)\n" + " btllib::CountingBloomFilter< uint32_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - result = (std::string *) &((btllib::CountingBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; - std::string *arg2 = 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter16_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->save((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -47244,473 +46932,382 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter16_save(PyObject *self, PyObject * } -SWIGINTERN PyObject *_wrap_CountingBloomFilter16_is_bloom_file(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 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 '" "CountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 3) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); } - arg1 = ptr; + if (!_v) goto check_1; + PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } - result = (bool)btllib::CountingBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; +check_1: + + if (argc == 3) { + PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_contains_insert_thresh'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::CountingBloomFilter< uint32_t >::contains_insert_thresh(uint64_t const *,unsigned int)\n" + " btllib::CountingBloomFilter< uint32_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter16(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint16_t > *arg1 = (btllib::CountingBloomFilter< uint16_t > *) 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter16", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_bytes", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter16" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint16_t > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + result = ((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter16) /* defines _wrap_delete_CountingBloomFilter16_destructor_closure */ - -SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - std::string arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::CountingBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_CountingBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - { - 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_CountingBloomFilter32" "', argument " "3"" of type '" "std::string""'"); - } - arg3 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - size_t arg1 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; unsigned int arg2 ; - size_t val1 ; - int ecode1 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::CountingBloomFilter< uint32_t > *result = 0 ; + uint64_t result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_t >(val1); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CountingBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + result = (uint64_t)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_CountingBloomFilter32__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::CountingBloomFilter< uint32_t > *result = 0 ; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + uint64_t result; (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_CountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } - result = (btllib::CountingBloomFilter< uint32_t > *)new btllib::CountingBloomFilter< uint32_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + result = (uint64_t)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + return NULL; } -SWIGINTERN int _wrap_new_CountingBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_CountingBloomFilter32")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_CountingBloomFilter32", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_CountingBloomFilter32__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; if (argc == 1) { - int retval = _wrap_new_CountingBloomFilter32__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_CountingBloomFilter32_get_pop_cnt__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 2) { - int retval = _wrap_new_CountingBloomFilter32__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int retval = _wrap_new_CountingBloomFilter32__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_CountingBloomFilter32_get_pop_cnt__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 'new_CountingBloomFilter32'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_get_pop_cnt'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter()\n" - " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(size_t,unsigned int)\n" - " btllib::CountingBloomFilter< uint32_t >::CountingBloomFilter(std::string const &)\n"); - return -1; + " btllib::CountingBloomFilter< uint32_t >::get_pop_cnt(unsigned int) const\n" + " btllib::CountingBloomFilter< uint32_t >::get_pop_cnt() const\n"); + return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + double result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_occupancy(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_occupancy", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_insert__SWIG_0(self, argc, argv); + if (argc == 1) { + PyObject *retobj = _wrap_CountingBloomFilter32_get_occupancy__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } -check_1: - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_insert__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_get_occupancy__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 'CountingBloomFilter32_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_get_occupancy'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint32_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint32_t >::get_occupancy(unsigned int) const\n" + " btllib::CountingBloomFilter< uint32_t >::get_occupancy() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->remove((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + unsigned int val2 ; + int ecode2 = 0 ; + double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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 '" "CountingBloomFilter32_get_fpr" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_fpr(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } - (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_remove(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_remove", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_fpr", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_remove__SWIG_0(self, argc, argv); + if (argc == 1) { + PyObject *retobj = _wrap_CountingBloomFilter32_get_fpr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } -check_1: - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_remove__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_CountingBloomFilter32_get_fpr__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 'CountingBloomFilter32_remove'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_get_fpr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::remove(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint32_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::CountingBloomFilter< uint32_t >::get_fpr(unsigned int) const\n" + " btllib::CountingBloomFilter< uint32_t >::get_fpr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + std::string *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->clear((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (std::string *) &((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); + 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 '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + (arg1)->save((std::string const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -47720,307 +47317,310 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear__SWIG_1(PyObject *self, P } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_clear(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; +SWIGINTERN PyObject *_wrap_CountingBloomFilter32_is_bloom_file(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + bool result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_clear", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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 '" "CountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_clear__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_clear__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } - + result = (bool)btllib::CountingBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CountingBloomFilter32_clear'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::clear(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint32_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter32(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter32", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter32" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter32) /* defines _wrap_delete_CountingBloomFilter32_destructor_closure */ + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int result; + btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + size_t arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; + + (void)self; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_KmerCountingBloomFilter8" "', 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_KmerCountingBloomFilter8" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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_KmerCountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_KmerCountingBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_contains__SWIG_0(self, argc, argv); + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter8")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter8", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_KmerCountingBloomFilter8__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_contains__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 1) { + int retval = _wrap_new_KmerCountingBloomFilter8__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { + int retval = _wrap_new_KmerCountingBloomFilter8__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 'CountingBloomFilter32_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_KmerCountingBloomFilter8'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::contains(uint64_t const *) const\n" - " btllib::CountingBloomFilter< uint32_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); - return 0; + " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter()\n" + " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + (arg1)->insert((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &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 '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::string const &""'"); } - arg2 = ptr; - } - result = (unsigned int)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; -fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains_insert", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::string const &""'"); } - if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_contains_insert__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg2 = ptr; } - + (arg1)->insert((std::string const &)*arg2); + 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 'CountingBloomFilter32_contains_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::contains_insert(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint32_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned int)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48029,14 +47629,14 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains__SWIG_1(PyObjec } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -48046,100 +47646,111 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_contains(PyObject *self, _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_CountingBloomFilter32_insert_contains__SWIG_0(self, argc, argv); + return _wrap_KmerCountingBloomFilter8_insert__SWIG_2(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_insert_contains__SWIG_1(self, argc, argv); + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter8_insert__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert__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 'CountingBloomFilter32_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::insert_contains(uint64_t const *)\n" - " btllib::CountingBloomFilter< uint32_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int arg3 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int val3 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; int ecode3 = 0 ; - unsigned int result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "char const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "3"" of type '" "size_t""'"); } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg3 = static_cast< size_t >(val3); + (arg1)->remove((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int arg3 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &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 '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::string 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 '" "CountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->remove((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48148,119 +47759,63 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_1( } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_insert_thresh_contains(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_insert_thresh_contains", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 3) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter32_insert_thresh_contains__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } -check_1: - - if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter32_insert_thresh_contains__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 'CountingBloomFilter32_insert_thresh_contains'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::insert_thresh_contains(uint64_t const *,unsigned int)\n" - " btllib::CountingBloomFilter< uint32_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->remove((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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 '" "CountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48269,16 +47824,16 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_1( } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_contains_insert_thresh", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_remove", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -48286,366 +47841,507 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_contains_insert_thresh(PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter8_remove__SWIG_2(self, argc, argv); } check_1: + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter8_remove__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_remove__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } if (argc == 3) { - PyObject *retobj = _wrap_CountingBloomFilter32_contains_insert_thresh__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_remove__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 'CountingBloomFilter32_contains_insert_thresh'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_remove'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::contains_insert_thresh(uint64_t const *,unsigned int)\n" - " btllib::CountingBloomFilter< uint32_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::remove(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::remove(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::remove(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_bytes" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = ((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "2"" of type '" "unsigned int""'"); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "3"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg3 = static_cast< size_t >(val3); + (arg1)->clear((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; + int res2 = SWIG_OLDOBJ ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = (uint64_t)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + (arg1)->clear((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_CountingBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_pop_cnt__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_pop_cnt__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 'CountingBloomFilter32_get_pop_cnt'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::get_pop_cnt(unsigned int) const\n" - " btllib::CountingBloomFilter< uint32_t >::get_pop_cnt() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - double result; + void *argp2 = 0 ; + int res2 = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->clear((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > 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_CountingBloomFilter32_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_occupancy", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_occupancy__SWIG_1(self, argc, argv); + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_clear", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter8_clear__SWIG_2(self, argc, argv); + } +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter8_clear__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_clear__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_occupancy__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_clear__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 'CountingBloomFilter32_get_occupancy'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_clear'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::get_occupancy(unsigned int) const\n" - " btllib::CountingBloomFilter< uint32_t >::get_occupancy() const\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::clear(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::clear(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::clear(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = (unsigned int)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; + uint64_t result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CountingBloomFilter32_get_fpr" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_fpr(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = (double)((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned char)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned char result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + result = (unsigned char)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; +fail: + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_fpr", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_fpr__SWIG_1(self, argc, argv); + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter8_contains__SWIG_2(self, argc, argv); + } +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter8_contains__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_CountingBloomFilter32_get_fpr__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains__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 'CountingBloomFilter32_get_fpr'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::CountingBloomFilter< uint32_t >::get_fpr(unsigned int) const\n" - " btllib::CountingBloomFilter< uint32_t >::get_fpr() const\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::contains(char const *,size_t) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains(std::string const &) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains(uint64_t const *) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "CountingBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - result = (std::string *) &((btllib::CountingBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (unsigned char)(arg1)->contains_insert((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + unsigned char result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CountingBloomFilter32_save" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->save((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned char)(arg1)->contains_insert((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48654,178 +48350,128 @@ SWIGINTERN PyObject *_wrap_CountingBloomFilter32_save(PyObject *self, PyObject * } -SWIGINTERN PyObject *_wrap_CountingBloomFilter32_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char 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 '" "CountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - result = (bool)btllib::CountingBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned char)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_CountingBloomFilter32(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::CountingBloomFilter< uint32_t > *arg1 = (btllib::CountingBloomFilter< uint32_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned char result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_CountingBloomFilter32", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CountingBloomFilter32" "', argument " "1"" of type '" "btllib::CountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::CountingBloomFilter< uint32_t > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_CountingBloomFilter32) /* defines _wrap_delete_CountingBloomFilter32_destructor_closure */ - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; - - (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter8" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_KmerCountingBloomFilter8" "', 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_KmerCountingBloomFilter8" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::KmerCountingBloomFilter< uint8_t > *result = 0 ; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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_KmerCountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - arg1 = ptr; + arg2 = ptr; } - result = (btllib::KmerCountingBloomFilter< uint8_t > *)new btllib::KmerCountingBloomFilter< uint8_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + result = (unsigned char)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_KmerCountingBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter8")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter8", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_KmerCountingBloomFilter8__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains_insert", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_2(self, argc, argv); } - if (argc == 1) { - int retval = _wrap_new_KmerCountingBloomFilter8__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - int retval = _wrap_new_KmerCountingBloomFilter8__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert__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 'new_KmerCountingBloomFilter8'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter()\n" - " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::KmerCountingBloomFilter(std::string const &)\n"); - return -1; + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; char *arg2 = (char *) 0 ; @@ -48837,26 +48483,27 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_0(PyObject *sel int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned char result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->insert((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + result = (unsigned char)(arg1)->insert_contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -48865,34 +48512,35 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_0(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->insert((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned char)(arg1)->insert_contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48901,7 +48549,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_1(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; @@ -48909,55 +48557,57 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_2(PyObject *sel int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned char result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned char)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned char)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -48966,14 +48616,14 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert__SWIG_3(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -48983,7 +48633,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_insert__SWIG_2(self, argc, argv); + return _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_2(self, argc, argv); } check_1: @@ -48994,37 +48644,38 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_insert__SWIG_1(self, argc, argv); + return _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_contains__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 'KmerCountingBloomFilter8_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_insert_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned char arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -49032,26 +48683,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_0(PyObject *sel int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->remove((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "4"" of type '" "unsigned char""'"); + } + arg4 = static_cast< unsigned char >(val4); + result = (unsigned char)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -49060,34 +48719,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_0(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::string *arg2 = 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->remove((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -49096,63 +48764,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_1(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->remove((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -49161,16 +48847,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove__SWIG_3(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_remove", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -49178,48 +48864,53 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_remove(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_remove__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_remove__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_remove__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_remove__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__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 'KmerCountingBloomFilter8_remove'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_insert_thresh_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::remove(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::remove(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::remove(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(char const *,size_t,unsigned char)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(std::string const &,unsigned char const)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(uint64_t const *,unsigned char const)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned char arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -49227,26 +48918,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_0(PyObject *self int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned char val4 ; + int ecode4 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->clear((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "4"" of type '" "unsigned char""'"); + } + arg4 = static_cast< unsigned char >(val4); + result = (unsigned char)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -49255,34 +48954,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_0(PyObject *self } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::string *arg2 = 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->clear((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -49291,63 +48999,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_1(PyObject *self } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->clear((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned char val3 ; + int ecode3 = 0 ; + unsigned char result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); + } + arg3 = static_cast< unsigned char >(val3); + result = (unsigned char)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -49356,16 +49082,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear__SWIG_3(PyObject *self } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_clear", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -49373,379 +49099,430 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_clear(PyObject *self, PyObje _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_clear__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_clear__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_clear__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_clear__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__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 'KmerCountingBloomFilter8_clear'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_contains_insert_thresh'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::clear(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::clear(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::clear(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(char const *,size_t,unsigned char)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(std::string const &,unsigned char const)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(uint64_t const *,unsigned char const)\n" + " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - uint64_t result; + size_t result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_bytes", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "char const *""'"); + result = ((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + unsigned char arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "3"" of type '" "size_t""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "2"" of type '" "unsigned char""'"); } - arg3 = static_cast< size_t >(val3); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((char const *)arg2,arg3); + arg2 = static_cast< unsigned char >(val2); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(arg2); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; uint64_t result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((std::string const &)*arg2); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_pop_cnt__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 'KmerCountingBloomFilter8_get_pop_cnt'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint8_t >::get_pop_cnt(unsigned char) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::get_pop_cnt() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned char result; + unsigned char val2 ; + int ecode2 = 0 ; + double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_occupancy", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_occupancy__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 'KmerCountingBloomFilter8_get_occupancy'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint8_t >::get_occupancy(unsigned char) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::get_occupancy() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + unsigned char arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned char val2 ; + int ecode2 = 0 ; + double result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "2"" of type '" "unsigned char""'"); + } + arg2 = static_cast< unsigned char >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_fpr(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned char result; + double result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - result = (unsigned char)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_fpr(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_fpr", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_contains__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_contains__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains__SWIG_3(self, argc, argv); + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_fpr__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains__SWIG_0(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_fpr__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 'KmerCountingBloomFilter8_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_get_fpr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains(char const *,size_t) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains(std::string const &) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains(uint64_t const *) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::KmerCountingBloomFilter< uint8_t >::get_fpr(unsigned char) const\n" + " btllib::KmerCountingBloomFilter< uint8_t >::get_fpr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned char result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_k", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (unsigned char)(arg1)->contains_insert((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned char result; + std::string *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (unsigned char)(arg1)->contains_insert((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (std::string *) &((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_counting_bloom_filter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned char result; + btllib::CountingBloomFilter< unsigned char > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + result = (btllib::CountingBloomFilter< unsigned char > *) &(arg1)->get_counting_bloom_filter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char result; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); + 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 '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned char)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->save((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -49754,265 +49531,182 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert__SWIG_3(PyOb } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_is_bloom_file(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + bool result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains_insert", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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 '" "KmerCountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg1 = ptr; } - + result = (bool)btllib::KmerCountingBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_contains_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter8(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter8", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter8" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (unsigned char)(arg1)->insert_contains((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter8) /* defines _wrap_delete_KmerCountingBloomFilter8_destructor_closure */ + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned char result; + btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(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 '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (unsigned char)(arg1)->insert_contains((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned char result; + size_t arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned char)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - return resultobj; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_KmerCountingBloomFilter16" "', 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_KmerCountingBloomFilter16" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned char result; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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_KmerCountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - result = (unsigned char)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_KmerCountingBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert_contains", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_1(self, argc, argv); + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter16")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter16", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_KmerCountingBloomFilter16__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (argc == 1) { + int retval = _wrap_new_KmerCountingBloomFilter16__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_contains__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_KmerCountingBloomFilter16__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 'KmerCountingBloomFilter8_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_KmerCountingBloomFilter16'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter()\n" + " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; - unsigned char arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -50020,34 +49714,26 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "4"" of type '" "unsigned char""'"); - } - arg4 = static_cast< unsigned char >(val4); - result = (unsigned char)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->insert((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -50056,43 +49742,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->insert((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -50101,81 +49778,63 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_insert_thresh_contains" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -50184,16 +49843,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -50201,53 +49860,48 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_insert_thresh_contains(PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter16_insert__SWIG_2(self, argc, argv); } check_1: - if (argc == 3) { + if (argc == 2) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter16_insert__SWIG_1(self, argc, argv); } check_2: - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_3(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_insert_thresh_contains__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert__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 'KmerCountingBloomFilter8_insert_thresh_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(char const *,size_t,unsigned char)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(std::string const &,unsigned char const)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(uint64_t const *,unsigned char const)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; - unsigned char arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -50255,34 +49909,26 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "4"" of type '" "unsigned char""'"); - } - arg4 = static_cast< unsigned char >(val4); - result = (unsigned char)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->remove((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -50291,43 +49937,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->remove((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -50336,81 +49973,63 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->remove((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char val3 ; - int ecode3 = 0 ; - unsigned char result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter8_contains_insert_thresh" "', argument " "3"" of type '" "unsigned char""'"); - } - arg3 = static_cast< unsigned char >(val3); - result = (unsigned char)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); + (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -50419,16 +50038,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_remove", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -50436,430 +50055,375 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_contains_insert_thresh(PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter16_remove__SWIG_2(self, argc, argv); } check_1: - if (argc == 3) { + if (argc == 2) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter16_remove__SWIG_1(self, argc, argv); } check_2: - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_3(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_remove__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_contains_insert_thresh__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_remove__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 'KmerCountingBloomFilter8_contains_insert_thresh'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_remove'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(char const *,size_t,unsigned char)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(std::string const &,unsigned char const)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(uint64_t const *,unsigned char const)\n" - " btllib::KmerCountingBloomFilter< uint8_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const)\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::remove(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::remove(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::remove(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = ((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "2"" of type '" "unsigned char""'"); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "3"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned char >(val2); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg3 = static_cast< size_t >(val3); + (arg1)->clear((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_pop_cnt__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_pop_cnt__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 'KmerCountingBloomFilter8_get_pop_cnt'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_pop_cnt(unsigned char) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_pop_cnt() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - double result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_occupancy(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_occupancy", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_occupancy__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - -fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter8_get_occupancy'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_occupancy(unsigned char) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_occupancy() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->clear((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_KmerCountingBloomFilter8_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - unsigned char arg2 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - double result; + void *argp2 = 0 ; + int res2 = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_fpr(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + (arg1)->clear((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > 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_KmerCountingBloomFilter8_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_fpr", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_clear", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_fpr__SWIG_1(self, argc, argv); + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter16_clear__SWIG_2(self, argc, argv); + } +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter16_clear__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_clear__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter8_get_fpr__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_clear__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 'KmerCountingBloomFilter8_get_fpr'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_clear'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_fpr(unsigned char) const\n" - " btllib::KmerCountingBloomFilter< uint8_t >::get_fpr() const\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::clear(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::clear(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::clear(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + int res2 = SWIG_OLDOBJ ; + uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (std::string *) &((btllib::KmerCountingBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_get_counting_bloom_filter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::CountingBloomFilter< unsigned char > *result = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned short result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter8_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - result = (btllib::CountingBloomFilter< unsigned char > *) &(arg1)->get_counting_bloom_filter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_char_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned short)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; - std::string *arg2 = 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + unsigned short result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter8_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->save((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned short)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -50868,178 +50432,260 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_save(PyObject *self, PyObjec } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter8_is_bloom_file(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[4] = { + 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 '" "KmerCountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter8_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter16_contains__SWIG_2(self, argc, argv); + } +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); } - arg1 = ptr; + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter16_contains__SWIG_1(self, argc, argv); } - result = (bool)btllib::KmerCountingBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj; +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return NULL; + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_contains'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains(char const *,size_t) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains(std::string const &) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains(uint64_t const *) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + return 0; } -SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter8(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint8_t > *arg1 = (btllib::KmerCountingBloomFilter< uint8_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter8", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter8" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint8_t > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (unsigned short)(arg1)->contains_insert((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter8) /* defines _wrap_delete_KmerCountingBloomFilter8_destructor_closure */ - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::string *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned short result; (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + result = (unsigned short)(arg1)->contains_insert((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter16" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_KmerCountingBloomFilter16" "', 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_KmerCountingBloomFilter16" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned short)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_KmerCountingBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::KmerCountingBloomFilter< uint16_t > *result = 0 ; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned short result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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_KmerCountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - arg1 = ptr; + arg2 = ptr; } - result = (btllib::KmerCountingBloomFilter< uint16_t > *)new btllib::KmerCountingBloomFilter< uint16_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + result = (unsigned short)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_KmerCountingBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter16")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter16", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_KmerCountingBloomFilter16__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains_insert", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_2(self, argc, argv); } - if (argc == 1) { - int retval = _wrap_new_KmerCountingBloomFilter16__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - int retval = _wrap_new_KmerCountingBloomFilter16__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert__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 'new_KmerCountingBloomFilter16'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter()\n" - " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::KmerCountingBloomFilter(std::string const &)\n"); - return -1; + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; char *arg2 = (char *) 0 ; @@ -51051,26 +50697,27 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_0(PyObject *se int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->insert((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + result = (unsigned short)(arg1)->insert_contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -51079,34 +50726,35 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->insert((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned short)(arg1)->insert_contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51115,7 +50763,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; @@ -51123,55 +50771,57 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_2(PyObject *se int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned short)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned short)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51180,14 +50830,14 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert__SWIG_3(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -51197,7 +50847,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_insert__SWIG_2(self, argc, argv); + return _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_2(self, argc, argv); } check_1: @@ -51208,37 +50858,38 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_insert__SWIG_1(self, argc, argv); + return _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_contains__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 'KmerCountingBloomFilter16_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_insert_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -51246,26 +50897,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_0(PyObject *se int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned short val4 ; + int ecode4 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->remove((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_short(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "4"" of type '" "unsigned short""'"); + } + arg4 = static_cast< unsigned short >(val4); + result = (unsigned short)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -51274,34 +50933,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->remove((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51310,63 +50978,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->remove((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51375,16 +51061,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove__SWIG_3(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_remove", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -51392,48 +51078,53 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_remove(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_remove__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_remove__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_remove__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_remove__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__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 'KmerCountingBloomFilter16_remove'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_insert_thresh_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::remove(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::remove(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::remove(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(char const *,size_t,unsigned short)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(std::string const &,unsigned short const)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(uint64_t const *,unsigned short const)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -51441,26 +51132,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_0(PyObject *sel int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned short val4 ; + int ecode4 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->clear((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_short(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "4"" of type '" "unsigned short""'"); + } + arg4 = static_cast< unsigned short >(val4); + result = (unsigned short)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -51469,34 +51168,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_0(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->clear((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51505,63 +51213,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_1(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->clear((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (unsigned short)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51570,16 +51296,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear__SWIG_3(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_clear", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -51587,379 +51313,430 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_clear(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_clear__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_clear__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_clear__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_clear__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__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 'KmerCountingBloomFilter16_clear'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_contains_insert_thresh'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::clear(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::clear(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::clear(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(char const *,size_t,unsigned short)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(std::string const &,unsigned short const)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(uint64_t const *,unsigned short const)\n" + " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - uint64_t result; + size_t result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_bytes", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "char const *""'"); + result = ((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + unsigned short arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "3"" of type '" "size_t""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "2"" of type '" "unsigned short""'"); } - arg3 = static_cast< size_t >(val3); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((char const *)arg2,arg3); + arg2 = static_cast< unsigned short >(val2); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(arg2); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; uint64_t result; + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_pop_cnt__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 'KmerCountingBloomFilter16_get_pop_cnt'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint16_t >::get_pop_cnt(unsigned short) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::get_pop_cnt() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + unsigned short arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + double result; + (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_occupancy", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_occupancy__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 'KmerCountingBloomFilter16_get_occupancy'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint16_t >::get_occupancy(unsigned short) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::get_occupancy() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned short result; + unsigned short val2 ; + int ecode2 = 0 ; + double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_fpr(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned short result; + double result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - result = (unsigned short)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_fpr", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_contains__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_contains__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains__SWIG_3(self, argc, argv); + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_fpr__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains__SWIG_0(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_fpr__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 'KmerCountingBloomFilter16_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter16_get_fpr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains(char const *,size_t) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains(std::string const &) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains(uint64_t const *) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::KmerCountingBloomFilter< uint16_t >::get_fpr(unsigned short) const\n" + " btllib::KmerCountingBloomFilter< uint16_t >::get_fpr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned short result; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_k", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (unsigned short)(arg1)->contains_insert((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned short result; + std::string *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(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 '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (unsigned short)(arg1)->contains_insert((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (std::string *) &((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_counting_bloom_filter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned short result; + btllib::CountingBloomFilter< unsigned short > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + result = (btllib::CountingBloomFilter< unsigned short > *) &(arg1)->get_counting_bloom_filter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); + 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 '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned short)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->save((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -51968,63 +51745,180 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert__SWIG_3(PyO } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_is_bloom_file(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + bool result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains_insert", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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 '" "KmerCountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_2(self, argc, argv); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } -check_1: + result = (bool)btllib::KmerCountingBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; +fail: + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter16(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); + (void)self; + if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter16", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter16" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter16) /* defines _wrap_delete_KmerCountingBloomFilter16_destructor_closure */ + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint32_t > *result = 0 ; + + (void)self; + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + size_t arg1 ; + unsigned int arg2 ; + unsigned int arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *result = 0 ; + + (void)self; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_KmerCountingBloomFilter32" "', 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_KmerCountingBloomFilter32" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::KmerCountingBloomFilter< uint32_t > *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_KmerCountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_1(self, argc, argv); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); + } + arg1 = ptr; } -check_2: + result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 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_KmerCountingBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { + Py_ssize_t argc; + PyObject *argv[4] = { + 0 + }; - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + (void)self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter32")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter32", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_KmerCountingBloomFilter32__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 1) { + int retval = _wrap_new_KmerCountingBloomFilter32__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_KmerCountingBloomFilter32__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 'KmerCountingBloomFilter16_contains_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_KmerCountingBloomFilter32'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter()\n" + " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; @@ -52034,27 +51928,26 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_0(PyO int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned short result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - result = (unsigned short)(arg1)->insert_contains((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -52063,35 +51956,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_0(PyO } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned short)(arg1)->insert_contains((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52100,65 +51992,63 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_1(PyO } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned short)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - result = (unsigned short)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52167,14 +52057,14 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains__SWIG_3(PyO } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -52184,7 +52074,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains(PyObject *s _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_2(self, argc, argv); + return _wrap_KmerCountingBloomFilter32_insert__SWIG_2(self, argc, argv); } check_1: @@ -52195,38 +52085,37 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_contains(PyObject *s _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_1(self, argc, argv); + return _wrap_KmerCountingBloomFilter32_insert__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_contains__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert__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 'KmerCountingBloomFilter16_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; - unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -52234,34 +52123,26 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWI int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned short val4 ; - int ecode4 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_short(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "4"" of type '" "unsigned short""'"); - } - arg4 = static_cast< unsigned short >(val4); - result = (unsigned short)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -52270,43 +52151,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52315,81 +52187,63 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_insert_thresh_contains" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52398,16 +52252,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_remove", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -52415,53 +52269,48 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_insert_thresh_contains(PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter32_remove__SWIG_2(self, argc, argv); } check_1: - if (argc == 3) { + if (argc == 2) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter32_remove__SWIG_1(self, argc, argv); } check_2: - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_3(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_remove__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_insert_thresh_contains__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_remove__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 'KmerCountingBloomFilter16_insert_thresh_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_remove'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(char const *,size_t,unsigned short)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(std::string const &,unsigned short const)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(uint64_t const *,unsigned short const)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::remove(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::remove(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::remove(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; - unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -52469,34 +52318,26 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWI int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - unsigned short val4 ; - int ecode4 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_short(swig_obj[3], &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "4"" of type '" "unsigned short""'"); - } - arg4 = static_cast< unsigned short >(val4); - result = (unsigned short)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((char const *)arg2,arg3); + resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -52505,43 +52346,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52550,81 +52382,63 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short val3 ; - int ecode3 = 0 ; - unsigned short result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter16_contains_insert_thresh" "', argument " "3"" of type '" "unsigned short""'"); - } - arg3 = static_cast< unsigned short >(val3); - result = (unsigned short)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -52633,16 +52447,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_clear", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -52650,430 +52464,312 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_contains_insert_thresh(PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter32_clear__SWIG_2(self, argc, argv); } check_1: - if (argc == 3) { + if (argc == 2) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_KmerCountingBloomFilter32_clear__SWIG_1(self, argc, argv); } check_2: - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_3(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_clear__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_contains_insert_thresh__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_clear__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 'KmerCountingBloomFilter16_contains_insert_thresh'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_clear'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(char const *,size_t,unsigned short)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(std::string const &,unsigned short const)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(uint64_t const *,unsigned short const)\n" - " btllib::KmerCountingBloomFilter< uint16_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::clear(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::clear(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::clear(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_bytes(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - size_t result; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = ((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; uint64_t result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "2"" of type '" "unsigned short""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "3"" of type '" "size_t""'"); } - arg2 = static_cast< unsigned short >(val2); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(arg2); + arg3 = static_cast< size_t >(val3); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((char const *)arg2,arg3); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; uint64_t result; - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_pop_cnt__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_pop_cnt__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 'KmerCountingBloomFilter16_get_pop_cnt'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_pop_cnt(unsigned short) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_pop_cnt() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - double result; - (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "2"" of type '" "unsigned short""'"); - } - arg2 = static_cast< unsigned short >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - double result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_occupancy(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_occupancy", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_occupancy__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_occupancy__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 'KmerCountingBloomFilter16_get_occupancy'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_occupancy(unsigned short) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_occupancy() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; unsigned int result; - (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - unsigned short arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned short val2 ; - int ecode2 = 0 ; - double result; - (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_short(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "2"" of type '" "unsigned short""'"); - } - arg2 = static_cast< unsigned short >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_fpr(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_fpr(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_fpr", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_fpr__SWIG_1(self, argc, argv); + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter32_contains__SWIG_2(self, argc, argv); + } +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter32_contains__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter16_get_fpr__SWIG_0(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains__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 'KmerCountingBloomFilter16_get_fpr'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_fpr(unsigned short) const\n" - " btllib::KmerCountingBloomFilter< uint16_t >::get_fpr() const\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::contains(char const *,size_t) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains(std::string const &) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains(uint64_t const *) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + char *arg2 = (char *) 0 ; + size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (std::string *) &((btllib::KmerCountingBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_get_counting_bloom_filter(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - btllib::CountingBloomFilter< unsigned short > *result = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter16_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "char const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - result = (btllib::CountingBloomFilter< unsigned short > *) &(arg1)->get_counting_bloom_filter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_short_t, 0 | 0 ); + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + result = (unsigned int)(arg1)->contains_insert((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - PyObject *swig_obj[2] ; + unsigned int result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter16_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[0], &ptr); + res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->save((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned int)(arg1)->contains_insert((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53082,178 +52778,128 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_save(PyObject *self, PyObje } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter16_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned int 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 '" "KmerCountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter16_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - result = (bool)btllib::KmerCountingBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (unsigned int)(arg1)->contains_insert((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter16(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint16_t > *arg1 = (btllib::KmerCountingBloomFilter< uint16_t > *) 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; + int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter16", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter16" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint16_t > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter16) /* defines _wrap_delete_KmerCountingBloomFilter16_destructor_closure */ - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - unsigned int arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - btllib::KmerCountingBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KmerCountingBloomFilter32" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_KmerCountingBloomFilter32" "', 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_KmerCountingBloomFilter32" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_KmerCountingBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::KmerCountingBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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_KmerCountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_KmerCountingBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } - arg1 = ptr; + arg2 = ptr; } - result = (btllib::KmerCountingBloomFilter< uint32_t > *)new btllib::KmerCountingBloomFilter< uint32_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + result = (unsigned int)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (SWIG_IsNewObj(res2)) delete arg2; + return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; - return -1; + if (SWIG_IsNewObj(res2)) delete arg2; + return NULL; } -SWIGINTERN int _wrap_new_KmerCountingBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_KmerCountingBloomFilter32")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_KmerCountingBloomFilter32", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_KmerCountingBloomFilter32__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains_insert", 0, 3, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_2(self, argc, argv); } - if (argc == 1) { - int retval = _wrap_new_KmerCountingBloomFilter32__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; +check_1: + + if (argc == 2) { + int _v = 0; + { + int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_1(self, argc, argv); + } +check_2: + + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - int retval = _wrap_new_KmerCountingBloomFilter32__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert__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 'new_KmerCountingBloomFilter32'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_contains_insert'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter()\n" - " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter(size_t,unsigned int,unsigned int)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::KmerCountingBloomFilter(std::string const &)\n"); - return -1; + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; @@ -53265,26 +52911,27 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_0(PyObject *se int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned int result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->insert((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + result = (unsigned int)(arg1)->insert_contains((char const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -53293,34 +52940,35 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->insert((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned int)(arg1)->insert_contains((std::string const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53329,7 +52977,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; @@ -53337,55 +52985,57 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_2(PyObject *se int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned int)(arg1)->insert_contains((uint64_t const *)arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + result = (unsigned int)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53394,14 +53044,14 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert__SWIG_3(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert_contains", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -53411,7 +53061,7 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_insert__SWIG_2(self, argc, argv); + return _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_2(self, argc, argv); } check_1: @@ -53422,37 +53072,38 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_insert__SWIG_1(self, argc, argv); + return _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_1(self, argc, argv); } check_2: if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert__SWIG_3(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_contains__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 'KmerCountingBloomFilter32_insert'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_insert_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(char const *,size_t)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(std::string const &)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(uint64_t const *)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -53460,26 +53111,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_0(PyObject *se int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->remove((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (unsigned int)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -53488,34 +53147,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->remove((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53524,63 +53192,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->remove((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_remove" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->remove((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53589,16 +53275,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove__SWIG_3(PyObject *se } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_remove", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -53606,48 +53292,53 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_remove(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_remove__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_remove__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_remove__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_remove__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__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 'KmerCountingBloomFilter32_remove'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_insert_thresh_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::remove(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::remove(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::remove(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::remove(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(char const *,size_t,unsigned int)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(std::string const &,unsigned int const)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(uint64_t const *,unsigned int const)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -53655,26 +53346,34 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_0(PyObject *sel int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "3"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); - (arg1)->clear((char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); + ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (unsigned int)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: @@ -53683,34 +53382,43 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_0(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - (arg1)->clear((std::string const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53719,63 +53427,81 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_1(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->clear((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_clear" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - (arg1)->clear((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -53784,16 +53510,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear__SWIG_3(PyObject *sel } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[5] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_clear", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 2) { + if (argc == 3) { int _v = 0; { void *vptr = 0; @@ -53801,379 +53527,430 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_clear(PyObject *self, PyObj _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_clear__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_1: - if (argc == 2) { + if (argc == 3) { int _v = 0; { int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_clear__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } check_2: - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_clear__SWIG_3(self, argc, argv); + if (argc == 3) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_3(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_clear__SWIG_0(self, argc, argv); + if (argc == 4) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__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 'KmerCountingBloomFilter32_clear'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_contains_insert_thresh'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::clear(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::clear(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::clear(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::clear(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(char const *,size_t,unsigned int)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(std::string const &,unsigned int const)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(uint64_t const *,unsigned int const)\n" + " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_bytes(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - uint64_t result; + size_t result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_bytes", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "char const *""'"); + result = ((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_bytes(); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + uint64_t result; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "3"" of type '" "size_t""'"); + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "2"" of type '" "unsigned int""'"); } - arg3 = static_cast< size_t >(val3); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((char const *)arg2,arg3); + arg2 = static_cast< unsigned int >(val2); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(arg2); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; uint64_t result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((std::string const &)*arg2); + result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_pop_cnt__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 'KmerCountingBloomFilter32_get_pop_cnt'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint32_t >::get_pop_cnt(unsigned int) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::get_pop_cnt() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int result; + unsigned int val2 ; + int ecode2 = 0 ; + double result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int result; + double result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(); + resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_occupancy(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_occupancy", 0, 2, argv+1))) SWIG_fail; argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_contains__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } -check_1: - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_contains__SWIG_1(self, argc, argv); +fail: + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_get_occupancy'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::KmerCountingBloomFilter< uint32_t >::get_occupancy(unsigned int) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::get_occupancy() const\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } -check_2: + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_hash_num(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + double result; - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains__SWIG_3(self, argc, argv); + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_fpr(arg2); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { + PyObject *resultobj = 0; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + } + arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_fpr(); + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_fpr(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_fpr", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 1) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_fpr__SWIG_1(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains__SWIG_0(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_fpr__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 'KmerCountingBloomFilter32_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_get_fpr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains(char const *,size_t) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains(std::string const &) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains(uint64_t const *) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains(std::vector< uint64_t,std::allocator< uint64_t > > const &) const\n"); + " btllib::KmerCountingBloomFilter< uint32_t >::get_fpr(unsigned int) const\n" + " btllib::KmerCountingBloomFilter< uint32_t >::get_fpr() const\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; + btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_k", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (unsigned int)(arg1)->contains_insert((char const *)arg2,arg3); + result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_k(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int result; + std::string *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; - } - result = (unsigned int)(arg1)->contains_insert((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + result = (std::string *) &((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_counting_bloom_filter(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int result; + btllib::CountingBloomFilter< unsigned int > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)(arg1)->contains_insert((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = (btllib::CountingBloomFilter< unsigned int > *) &(arg1)->get_counting_bloom_filter(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int result; + PyObject *swig_obj[2] ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + if (!args) SWIG_fail; + swig_obj[0] = args; res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); + 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 '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } - result = (unsigned int)(arg1)->contains_insert((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->save((std::string const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -54182,428 +53959,420 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert__SWIG_3(PyO } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_is_bloom_file(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + PyObject *swig_obj[1] ; + bool result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains_insert", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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 '" "KmerCountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_2(self, argc, argv); - } -check_1: - - if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg1 = ptr; } - + result = (bool)btllib::KmerCountingBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'KmerCountingBloomFilter32_contains_insert'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + if (SWIG_IsNewObj(res1)) delete arg1; + return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter32(PyObject *self, PyObject *args) { PyObject *resultobj = 0; btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter32", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter32" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); } arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "3"" of type '" "size_t""'"); - } - arg3 = static_cast< size_t >(val3); - result = (unsigned int)(arg1)->insert_contains((char const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter32) /* defines _wrap_delete_KmerCountingBloomFilter32_destructor_closure */ + +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int result; + btllib::MIBloomFilter< uint8_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + size_t arg1 ; + unsigned int arg2 ; + std::string arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + btllib::MIBloomFilter< uint8_t > *result = 0 ; + + (void)self; + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); { 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 '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::string const &""'"); + 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_MIBloomFilter8" "', argument " "3"" of type '" "std::string""'"); } - arg2 = ptr; + arg3 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - result = (unsigned int)(arg1)->insert_contains((std::string const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + size_t arg1 ; + unsigned int arg2 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + btllib::MIBloomFilter< uint8_t > *result = 0 ; + + (void)self; + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_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_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + sdsl::bit_vector *arg1 = 0 ; + unsigned int arg2 ; + std::string arg3 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int result; + unsigned int val2 ; + int ecode2 = 0 ; + btllib::MIBloomFilter< uint8_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (unsigned int)(arg1)->insert_contains((uint64_t const *)arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; + arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + { + 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_MIBloomFilter8" "', argument " "3"" of type '" "std::string""'"); + } + arg3 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; + } + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + sdsl::bit_vector *arg1 = 0 ; + unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int result; + unsigned int val2 ; + int ecode2 = 0 ; + btllib::MIBloomFilter< uint8_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + } + arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + std::string *arg1 = 0 ; + int res1 = SWIG_OLDOBJ ; + btllib::MIBloomFilter< uint8_t > *result = 0 ; + + (void)self; + if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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_MIBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); } - arg2 = ptr; + arg1 = ptr; } - result = (unsigned int)(arg1)->insert_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + if (SWIG_IsNewObj(res1)) delete arg1; + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + if (SWIG_IsNewObj(res1)) delete arg1; + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_contains(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_MIBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert_contains", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter8")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter8", 0, 3, argv))) SWIG_fail; + --argc; + if (argc == 0) { + int retval = _wrap_new_MIBloomFilter8__SWIG_0(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 1) { + int retval = _wrap_new_MIBloomFilter8__SWIG_5(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } if (argc == 2) { int _v = 0; { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sdsl__bit_vector, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); } - if (!_v) goto check_1; - return _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_2(self, argc, argv); + if (!_v) goto check_3; + int retval = _wrap_new_MIBloomFilter8__SWIG_4(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; } -check_1: +check_3: if (argc == 2) { + int retval = _wrap_new_MIBloomFilter8__SWIG_2(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; + SWIG_fail; + } + if (argc == 3) { int _v = 0; { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sdsl__bit_vector, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); } - if (!_v) goto check_2; - return _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_1(self, argc, argv); - } -check_2: - - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + if (!_v) goto check_5; + int retval = _wrap_new_MIBloomFilter8__SWIG_3(self, argc, argv); + if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } +check_5: + if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_contains__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + int retval = _wrap_new_MIBloomFilter8__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 'KmerCountingBloomFilter32_insert_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_MIBloomFilter8'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(char const *,size_t)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(std::string const &)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(uint64_t const *)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter()\n" + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(size_t,unsigned int)\n" + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" + " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(std::string const &)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_bv_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - unsigned int arg4 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int result; - - (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', 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 '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (unsigned int)(arg1)->insert_thresh_contains((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + (void)self; + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_complete_bv_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + } + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + (arg1)->complete_bv_insertion(); + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_id_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; - unsigned int arg3 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_complete_id_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(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 '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->insert_thresh_contains((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + (arg1)->complete_id_insertion(); + resultobj = SWIG_Py_Void(); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->insert_thresh_contains((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->insert_bv((uint64_t const *)arg2); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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 '" "KmerCountingBloomFilter32_insert_thresh_contains" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->insert_thresh_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + (arg1)->insert_bv((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -54612,16 +54381,16 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_insert_thresh_contains", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_bv", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 3) { + if (argc == 2) { int _v = 0; { void *vptr = 0; @@ -54629,133 +54398,84 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_insert_thresh_contains(PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_2(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + return _wrap_MIBloomFilter8_insert_bv__SWIG_0(self, argc, argv); } check_1: - if (argc == 3) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } -check_2: - - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_insert_thresh_contains__SWIG_0(self, argc, argv); + if (argc == 2) { + PyObject *retobj = _wrap_MIBloomFilter8_insert_bv__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 'KmerCountingBloomFilter32_insert_thresh_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter8_insert_bv'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(char const *,size_t,unsigned int)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(std::string const &,unsigned int const)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(uint64_t const *,unsigned int const)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::insert_thresh_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); + " btllib::MIBloomFilter< uint8_t >::insert_bv(uint64_t const *)\n" + " btllib::MIBloomFilter< uint8_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - char *arg2 = (char *) 0 ; - size_t arg3 ; - unsigned int arg4 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - size_t val3 ; - int ecode3 = 0 ; - unsigned int val4 ; - int ecode4 = 0 ; - unsigned int result; + void *argp2 = 0 ; + int res2 = 0 ; + bool result; (void)self; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "char const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', 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 '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "4"" of type '" "unsigned int""'"); - } - arg4 = static_cast< unsigned int >(val4); - result = (unsigned int)(arg1)->contains_insert_thresh((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (bool)(arg1)->bv_contains((uint64_t const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; - unsigned int arg3 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; - int ecode3 = 0 ; - unsigned int result; + bool result; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); { - std::string *ptr = (std::string *)0; - res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr); + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > 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 '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); - } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->contains_insert_thresh((std::string const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + result = (bool)(arg1)->bv_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -54764,81 +54484,119 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains(PyObject *self, PyObject *args) { + Py_ssize_t argc; + PyObject *argv[3] = { + 0 + }; + + (void)self; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_bv_contains", 0, 2, argv+1))) SWIG_fail; + argv[0] = self; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_MIBloomFilter8_bv_contains__SWIG_0(self, argc, argv); + } +check_1: + + if (argc == 2) { + PyObject *retobj = _wrap_MIBloomFilter8_bv_contains__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 'MIBloomFilter8_bv_contains'.\n" + " Possible C/C++ prototypes are:\n" + " btllib::MIBloomFilter< uint8_t >::bv_contains(uint64_t const *)\n" + " btllib::MIBloomFilter< uint8_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int arg3 ; + unsigned char *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned int val3 ; + unsigned char temp3 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_id" "', argument " "3"" of type '" "unsigned char""'"); } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->contains_insert_thresh((uint64_t const *)arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + temp3 = static_cast< unsigned char >(val3); + arg3 = &temp3; + (arg1)->insert_id((uint64_t const *)arg2,(unsigned char const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int arg3 ; + unsigned char *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned int val3 ; + unsigned char temp3 ; + unsigned char val3 ; int ecode3 = 0 ; - unsigned int result; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "KmerCountingBloomFilter32_contains_insert_thresh" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_id" "', argument " "3"" of type '" "unsigned char""'"); } - arg3 = static_cast< unsigned int >(val3); - result = (unsigned int)(arg1)->contains_insert_thresh((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,arg3); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + temp3 = static_cast< unsigned char >(val3); + arg3 = &temp3; + (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned char const &)*arg3); + resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: @@ -54847,14 +54605,14 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWI } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[5] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_contains_insert_thresh", 0, 4, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_id", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -54864,349 +54622,364 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_contains_insert_thresh(PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_2(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter8_insert_id__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - int _v = 0; - { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_2; - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } -check_2: - - if (argc == 3) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_3(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 4) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_contains_insert_thresh__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter8_insert_id__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 'KmerCountingBloomFilter32_contains_insert_thresh'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter8_insert_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(char const *,size_t,unsigned int)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(std::string const &,unsigned int const)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(uint64_t const *,unsigned int const)\n" - " btllib::KmerCountingBloomFilter< uint32_t >::contains_insert_thresh(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const)\n"); + " btllib::MIBloomFilter< uint8_t >::insert_id(uint64_t const *,unsigned char const &)\n" + " btllib::MIBloomFilter< uint8_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_bytes(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t result; + void *argp2 = 0 ; + int res2 = 0 ; + std::vector< unsigned char,std::allocator< unsigned char > > result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_bytes", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_bytes" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + } + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + result = (arg1)->get_id((uint64_t const *)arg2); + { + const std::vector& vec = result; + resultobj = PyList_New(vec.size()); + for (unsigned i = 0; i < vec.size(); ++i) { + PyObject *item = PyLong_FromUnsignedLong(vec[i]); + PyList_SetItem(resultobj, i, item); + } } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = ((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_bytes(); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - uint64_t result; + int res2 = SWIG_OLDOBJ ; + std::vector< unsigned char,std::allocator< unsigned char > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(arg2); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint64_t result; - - (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (uint64_t)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + result = (arg1)->get_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + { + const std::vector& vec = result; + resultobj = PyList_New(vec.size()); + for (unsigned i = 0; i < vec.size(); ++i) { + PyObject *item = PyLong_FromUnsignedLong(vec[i]); + PyList_SetItem(resultobj, i, item); + } + } + if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: + if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_pop_cnt", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_id", 0, 2, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (argc == 2) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + return _wrap_MIBloomFilter8_get_id__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_pop_cnt__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter8_get_id__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 'KmerCountingBloomFilter32_get_pop_cnt'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter8_get_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_pop_cnt(unsigned int) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_pop_cnt() const\n"); + " btllib::MIBloomFilter< uint8_t >::get_id(uint64_t const *)\n" + " btllib::MIBloomFilter< uint8_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + uint64_t *arg2 = (uint64_t *) 0 ; + unsigned char *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - double result; + void *argp2 = 0 ; + int res2 = 0 ; + unsigned char temp3 ; + unsigned char val3 ; + int ecode3 = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "2"" of type '" "unsigned int""'"); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "uint64_t const *""'"); + } + arg2 = reinterpret_cast< uint64_t * >(argp2); + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "3"" of type '" "unsigned char""'"); } - arg2 = static_cast< unsigned int >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + temp3 = static_cast< unsigned char >(val3); + arg3 = &temp3; + (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned char const &)*arg3); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + unsigned char *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + int res2 = SWIG_OLDOBJ ; + unsigned char temp3 ; + unsigned char val3 ; + int ecode3 = 0 ; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_occupancy" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_occupancy(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + { + std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; + res2 = swig::asptr(swig_obj[1], &ptr); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + } + arg2 = ptr; + } + ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "3"" of type '" "unsigned char""'"); + } + temp3 = static_cast< unsigned char >(val3); + arg3 = &temp3; + (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned char const &)*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_KmerCountingBloomFilter32_get_occupancy(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation(PyObject *self, PyObject *args) { Py_ssize_t argc; - PyObject *argv[3] = { + PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_occupancy", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_saturation", 0, 3, argv+1))) SWIG_fail; argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_1(self, argc, argv); + if (argc == 3) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + PyObject *retobj = _wrap_MIBloomFilter8_insert_saturation__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_occupancy__SWIG_0(self, argc, argv); +check_1: + + if (argc == 3) { + PyObject *retobj = _wrap_MIBloomFilter8_insert_saturation__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 'KmerCountingBloomFilter32_get_occupancy'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter8_insert_saturation'.\n" " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_occupancy(unsigned int) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_occupancy() const\n"); + " btllib::MIBloomFilter< uint8_t >::insert_saturation(uint64_t const *,unsigned char const &)\n" + " btllib::MIBloomFilter< uint8_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + int res2 = SWIG_OLDOBJ ; + PyObject *swig_obj[2] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(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 '" "MIBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + } + if (!ptr) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + } + arg2 = ptr; + } + (arg1)->save((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_KmerCountingBloomFilter32_get_fpr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - unsigned int arg2 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - double result; + uint64_t result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_fpr(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + result = (uint64_t)(arg1)->get_pop_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_fpr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_saturated_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - double result; + uint64_t result; (void)self; - if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_fpr" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (double)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_fpr(); - resultobj = SWIG_From_double(static_cast< double >(result)); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + result = (uint64_t)(arg1)->get_pop_saturated_cnt(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_fpr(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; - - (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_fpr", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 1) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_fpr__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; - } - if (argc == 2) { - PyObject *retobj = _wrap_KmerCountingBloomFilter32_get_fpr__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 'KmerCountingBloomFilter32_get_fpr'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_fpr(unsigned int) const\n" - " btllib::KmerCountingBloomFilter< uint32_t >::get_fpr() const\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_k" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (unsigned int)((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_k(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -55214,132 +54987,143 @@ SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_k(PyObject *self, PyObj } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - std::string *result = 0 ; + unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (std::string *) &((btllib::KmerCountingBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_k(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_get_counting_bloom_filter(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - btllib::CountingBloomFilter< unsigned int > *result = 0 ; + std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "KmerCountingBloomFilter32_get_counting_bloom_filter", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_get_counting_bloom_filter" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); - result = (btllib::CountingBloomFilter< unsigned int > *) &(arg1)->get_counting_bloom_filter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__CountingBloomFilterT_unsigned_int_t, 0 | 0 ); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + result = (std::string *) &((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); + resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_KmerCountingBloomFilter32_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id_occurence_count(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + bool *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; + bool temp2 ; + bool val2 ; + int ecode2 = 0 ; PyObject *swig_obj[2] ; + SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > result; (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KmerCountingBloomFilter32_save" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter8_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); + } + temp2 = static_cast< bool >(val2); + arg2 = &temp2; + result = (arg1)->get_id_occurence_count((bool const &)*arg2); { - 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 '" "KmerCountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); + const std::vector& vec = result; + resultobj = PyList_New(vec.size()); + for (unsigned i = 0; i < vec.size(); ++i) { + PyObject *item = PyLong_FromUnsignedLong(vec[i]); + PyList_SetItem(resultobj, i, item); } - arg2 = ptr; } - (arg1)->save((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_KmerCountingBloomFilter32_is_bloom_file(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter8_calc_optimal_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - PyObject *swig_obj[1] ; - bool result; + size_t arg1 ; + unsigned int arg2 ; + double arg3 ; + size_t val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + double val3 ; + int ecode3 = 0 ; + PyObject *swig_obj[3] ; + size_t 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 '" "KmerCountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "KmerCountingBloomFilter32_is_bloom_file" "', argument " "1"" of type '" "std::string const &""'"); - } - arg1 = ptr; - } - result = (bool)btllib::KmerCountingBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR is_bloom_file((std::string const &)*arg1); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res1)) delete arg1; + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; + ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); + } + arg1 = static_cast< size_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "3"" of type '" "double""'"); + } + arg3 = static_cast< double >(val3); + result = btllib::MIBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } -SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter32(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_MIBloomFilter8(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::KmerCountingBloomFilter< uint32_t > *arg1 = (btllib::KmerCountingBloomFilter< uint32_t > *) 0 ; + btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_KmerCountingBloomFilter32", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__KmerCountingBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter8", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_KmerCountingBloomFilter32" "', argument " "1"" of type '" "btllib::KmerCountingBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter8" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); } - arg1 = reinterpret_cast< btllib::KmerCountingBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -55348,23 +55132,23 @@ SWIGINTERN PyObject *_wrap_delete_KmerCountingBloomFilter32(PyObject *self, PyOb } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_KmerCountingBloomFilter32) /* defines _wrap_delete_KmerCountingBloomFilter32_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter8) /* defines _wrap_delete_MIBloomFilter8_destructor_closure */ -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -55373,38 +55157,38 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_1(PyObject *self, Py_ssize_t nobjs int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_MIBloomFilter8" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_MIBloomFilter16" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -55412,29 +55196,29 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_2(PyObject *self, Py_ssize_t nobjs int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; sdsl::bit_vector *arg1 = 0 ; unsigned int arg2 ; @@ -55443,41 +55227,41 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_3(PyObject *self, Py_ssize_t nobjs int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_MIBloomFilter8" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_MIBloomFilter16" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(*arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; sdsl::bit_vector *arg1 = 0 ; unsigned int arg2 ; @@ -55485,36 +55269,36 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_4(PyObject *self, Py_ssize_t nobjs int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter8" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >(*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - btllib::MIBloomFilter< uint8_t > *result = 0 ; + btllib::MIBloomFilter< uint16_t > *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; @@ -55522,15 +55306,15 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_5(PyObject *self, Py_ssize_t nobjs 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_MIBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter8" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (btllib::MIBloomFilter< uint8_t > *)new btllib::MIBloomFilter< uint8_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -55539,23 +55323,23 @@ SWIGINTERN int _wrap_new_MIBloomFilter8__SWIG_5(PyObject *self, Py_ssize_t nobjs } -SWIGINTERN int _wrap_new_MIBloomFilter8(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_MIBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter8")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter8", 0, 3, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter16")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter16", 0, 3, argv))) SWIG_fail; --argc; if (argc == 0) { - int retval = _wrap_new_MIBloomFilter8__SWIG_0(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 1) { - int retval = _wrap_new_MIBloomFilter8__SWIG_5(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__SWIG_5(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } @@ -55567,14 +55351,14 @@ SWIGINTERN int _wrap_new_MIBloomFilter8(PyObject *self, PyObject *args, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_3; - int retval = _wrap_new_MIBloomFilter8__SWIG_4(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__SWIG_4(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } check_3: if (argc == 2) { - int retval = _wrap_new_MIBloomFilter8__SWIG_2(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__SWIG_2(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } @@ -55586,44 +55370,44 @@ SWIGINTERN int _wrap_new_MIBloomFilter8(PyObject *self, PyObject *args, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_5; - int retval = _wrap_new_MIBloomFilter8__SWIG_3(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__SWIG_3(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } check_5: if (argc == 3) { - int retval = _wrap_new_MIBloomFilter8__SWIG_1(self, argc, argv); + int retval = _wrap_new_MIBloomFilter16__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 'new_MIBloomFilter8'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_MIBloomFilter16'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter()\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(size_t,unsigned int)\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" - " btllib::MIBloomFilter< uint8_t >::MIBloomFilter(std::string const &)\n"); + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter()\n" + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(size_t,unsigned int)\n" + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" + " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(std::string const &)\n"); return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_bv_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_bv_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_complete_bv_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_complete_bv_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); (arg1)->complete_bv_insertion(); resultobj = SWIG_Py_Void(); return resultobj; @@ -55632,19 +55416,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_bv_insertion(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_id_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_id_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_complete_id_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_complete_id_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); (arg1)->complete_id_insertion(); resultobj = SWIG_Py_Void(); return resultobj; @@ -55653,9 +55437,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_complete_id_insertion(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -55664,14 +55448,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_0(PyObject *self, Py_s (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->insert_bv((uint64_t const *)arg2); @@ -55682,9 +55466,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_0(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -55692,19 +55476,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_1(PyObject *self, Py_s (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -55718,14 +55502,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv__SWIG_1(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_bv", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_bv", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -55735,28 +55519,28 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_bv(PyObject *self, PyObject *ar _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter8_insert_bv__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter16_insert_bv__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter8_insert_bv__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_insert_bv__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 'MIBloomFilter8_insert_bv'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter16_insert_bv'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::insert_bv(uint64_t const *)\n" - " btllib::MIBloomFilter< uint8_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint16_t >::insert_bv(uint64_t const *)\n" + " btllib::MIBloomFilter< uint16_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -55766,14 +55550,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_0(PyObject *self, Py (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)(arg1)->bv_contains((uint64_t const *)arg2); @@ -55784,9 +55568,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_0(PyObject *self, Py } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -55795,19 +55579,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_1(PyObject *self, Py (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -55821,14 +55605,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains__SWIG_1(PyObject *self, Py } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_bv_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_bv_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -55838,57 +55622,57 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_bv_contains(PyObject *self, PyObject * _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter8_bv_contains__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter16_bv_contains__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter8_bv_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_bv_contains__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 'MIBloomFilter8_bv_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter16_bv_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::bv_contains(uint64_t const *)\n" - " btllib::MIBloomFilter< uint8_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint16_t >::bv_contains(uint64_t const *)\n" + " btllib::MIBloomFilter< uint16_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char *arg3 = 0 ; + unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char temp3 ; - unsigned char val3 ; + unsigned short temp3 ; + unsigned short val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_id" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_id" "', argument " "3"" of type '" "unsigned short""'"); } - temp3 = static_cast< unsigned char >(val3); + temp3 = static_cast< unsigned short >(val3); arg3 = &temp3; - (arg1)->insert_id((uint64_t const *)arg2,(unsigned char const &)*arg3); + (arg1)->insert_id((uint64_t const *)arg2,(unsigned short const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -55896,43 +55680,43 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_0(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char *arg3 = 0 ; + unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char temp3 ; - unsigned char val3 ; + unsigned short temp3 ; + unsigned short val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_id" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_id" "', argument " "3"" of type '" "unsigned short""'"); } - temp3 = static_cast< unsigned char >(val3); + temp3 = static_cast< unsigned short >(val3); arg3 = &temp3; - (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned char const &)*arg3); + (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned short const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -55942,14 +55726,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id__SWIG_1(PyObject *self, Py_s } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_id", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_id", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -55959,52 +55743,52 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_id(PyObject *self, PyObject *ar _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_MIBloomFilter8_insert_id__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_insert_id__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_MIBloomFilter8_insert_id__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_insert_id__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 'MIBloomFilter8_insert_id'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter16_insert_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::insert_id(uint64_t const *,unsigned char const &)\n" - " btllib::MIBloomFilter< uint8_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const &)\n"); + " btllib::MIBloomFilter< uint16_t >::insert_id(uint64_t const *,unsigned short const &)\n" + " btllib::MIBloomFilter< uint16_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - std::vector< unsigned char,std::allocator< unsigned char > > result; + SwigValueWrapper< std::vector< unsigned short,std::allocator< unsigned short > > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (arg1)->get_id((uint64_t const *)arg2); { - const std::vector& vec = result; + const std::vector& vec = result; resultobj = PyList_New(vec.size()); for (unsigned i = 0; i < vec.size(); ++i) { PyObject *item = PyLong_FromUnsignedLong(vec[i]); @@ -56017,36 +55801,36 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_0(PyObject *self, Py_ssiz } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - std::vector< unsigned char,std::allocator< unsigned char > > result; + SwigValueWrapper< std::vector< unsigned short,std::allocator< unsigned short > > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } result = (arg1)->get_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); { - const std::vector& vec = result; + const std::vector& vec = result; resultobj = PyList_New(vec.size()); for (unsigned i = 0; i < vec.size(); ++i) { PyObject *item = PyLong_FromUnsignedLong(vec[i]); @@ -56061,14 +55845,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id__SWIG_1(PyObject *self, Py_ssiz } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_id", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_id", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -56078,57 +55862,57 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id(PyObject *self, PyObject *args) _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter8_get_id__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter16_get_id__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter8_get_id__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_get_id__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 'MIBloomFilter8_get_id'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter16_get_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::get_id(uint64_t const *)\n" - " btllib::MIBloomFilter< uint8_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint16_t >::get_id(uint64_t const *)\n" + " btllib::MIBloomFilter< uint16_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned char *arg3 = 0 ; + unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned char temp3 ; - unsigned char val3 ; + unsigned short temp3 ; + unsigned short val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "3"" of type '" "unsigned short""'"); } - temp3 = static_cast< unsigned char >(val3); + temp3 = static_cast< unsigned short >(val3); arg3 = &temp3; - (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned char const &)*arg3); + (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned short const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -56136,43 +55920,43 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_0(PyObject *se } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned char *arg3 = 0 ; + unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned char temp3 ; - unsigned char val3 ; + unsigned short temp3 ; + unsigned short val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_char(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_insert_saturation" "', argument " "3"" of type '" "unsigned char""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "3"" of type '" "unsigned short""'"); } - temp3 = static_cast< unsigned char >(val3); + temp3 = static_cast< unsigned short >(val3); arg3 = &temp3; - (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned char const &)*arg3); + (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned short const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -56182,14 +55966,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation__SWIG_1(PyObject *se } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter8_insert_saturation", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_saturation", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -56199,30 +55983,30 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_insert_saturation(PyObject *self, PyOb _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_MIBloomFilter8_insert_saturation__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_insert_saturation__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_MIBloomFilter8_insert_saturation__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter16_insert_saturation__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 'MIBloomFilter8_insert_saturation'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter16_insert_saturation'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint8_t >::insert_saturation(uint64_t const *,unsigned char const &)\n" - " btllib::MIBloomFilter< uint8_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned char const &)\n"); + " btllib::MIBloomFilter< uint16_t >::insert_saturation(uint64_t const *,unsigned short const &)\n" + " btllib::MIBloomFilter< uint16_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56232,19 +56016,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_save(PyObject *self, PyObject *args) { (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(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 '" "MIBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter8_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -56258,20 +56042,20 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_save(PyObject *self, PyObject *args) { } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); result = (uint64_t)(arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; @@ -56280,20 +56064,20 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_cnt(PyObject *self, PyObject * } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_saturated_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_saturated_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); result = (uint64_t)(arg1)->get_pop_saturated_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; @@ -56302,21 +56086,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_pop_saturated_cnt(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -56324,21 +56108,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_num(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_k(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_k(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -56346,21 +56130,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_k(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); - result = (std::string *) &((btllib::MIBloomFilter< uint8_t > const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + result = (std::string *) &((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -56368,9 +56152,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_hash_fn(PyObject *self, PyObject * } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id_occurence_count(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id_occurence_count(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; bool *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56383,14 +56167,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id_occurence_count(PyObject *self, (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter8_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter8_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter16_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); } temp2 = static_cast< bool >(val2); arg2 = &temp2; @@ -56409,7 +56193,7 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_get_id_occurence_count(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter8_calc_optimal_size(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter16_calc_optimal_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -56424,23 +56208,23 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_calc_optimal_size(PyObject *self, PyOb size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter8_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter8_calc_optimal_size" "', argument " "3"" of type '" "double""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "3"" of type '" "double""'"); } arg3 = static_cast< double >(val3); - result = btllib::MIBloomFilter< uint8_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); + result = btllib::MIBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -56448,19 +56232,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter8_calc_optimal_size(PyObject *self, PyOb } -SWIGINTERN PyObject *_wrap_delete_MIBloomFilter8(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_MIBloomFilter16(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint8_t > *arg1 = (btllib::MIBloomFilter< uint8_t > *) 0 ; + btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter8", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_char_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter16", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter8" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint8_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter16" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint8_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -56469,23 +56253,23 @@ SWIGINTERN PyObject *_wrap_delete_MIBloomFilter8(PyObject *self, PyObject *args) } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter8) /* defines _wrap_delete_MIBloomFilter8_destructor_closure */ +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter16) /* defines _wrap_delete_MIBloomFilter16_destructor_closure */ -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -56494,38 +56278,38 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_1(PyObject *self, Py_ssize_t nobj int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_MIBloomFilter16" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_MIBloomFilter32" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -56533,29 +56317,29 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_2(PyObject *self, Py_ssize_t nobj int ecode1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_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_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; sdsl::bit_vector *arg1 = 0 ; unsigned int arg2 ; @@ -56564,41 +56348,41 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_3(PyObject *self, Py_ssize_t nobj int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { 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_MIBloomFilter16" "', argument " "3"" of type '" "std::string""'"); + SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_MIBloomFilter32" "', argument " "3"" of type '" "std::string""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(*arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(*arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; sdsl::bit_vector *arg1 = 0 ; unsigned int arg2 ; @@ -56606,36 +56390,36 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_4(PyObject *self, Py_ssize_t nobj int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); } arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter16" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >(*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(*arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); return resultobj == Py_None ? -1 : 0; fail: return -1; } -SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; std::string *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; - btllib::MIBloomFilter< uint16_t > *result = 0 ; + btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; @@ -56643,15 +56427,15 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_5(PyObject *self, Py_ssize_t nobj 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_MIBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter16" "', argument " "1"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); } arg1 = ptr; } - result = (btllib::MIBloomFilter< uint16_t > *)new btllib::MIBloomFilter< uint16_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_BUILTIN_INIT | 0 ); + result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >((std::string const &)*arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj == Py_None ? -1 : 0; fail: @@ -56660,23 +56444,23 @@ SWIGINTERN int _wrap_new_MIBloomFilter16__SWIG_5(PyObject *self, Py_ssize_t nobj } -SWIGINTERN int _wrap_new_MIBloomFilter16(PyObject *self, PyObject *args, PyObject *kwargs) { +SWIGINTERN int _wrap_new_MIBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter16")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter16", 0, 3, argv))) SWIG_fail; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter32")) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter32", 0, 3, argv))) SWIG_fail; --argc; if (argc == 0) { - int retval = _wrap_new_MIBloomFilter16__SWIG_0(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__SWIG_0(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } if (argc == 1) { - int retval = _wrap_new_MIBloomFilter16__SWIG_5(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__SWIG_5(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } @@ -56688,14 +56472,14 @@ SWIGINTERN int _wrap_new_MIBloomFilter16(PyObject *self, PyObject *args, PyObjec _v = SWIG_CheckState(res); } if (!_v) goto check_3; - int retval = _wrap_new_MIBloomFilter16__SWIG_4(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__SWIG_4(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } check_3: if (argc == 2) { - int retval = _wrap_new_MIBloomFilter16__SWIG_2(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__SWIG_2(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } @@ -56707,44 +56491,44 @@ SWIGINTERN int _wrap_new_MIBloomFilter16(PyObject *self, PyObject *args, PyObjec _v = SWIG_CheckState(res); } if (!_v) goto check_5; - int retval = _wrap_new_MIBloomFilter16__SWIG_3(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__SWIG_3(self, argc, argv); if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; SWIG_fail; } check_5: if (argc == 3) { - int retval = _wrap_new_MIBloomFilter16__SWIG_1(self, argc, argv); + int retval = _wrap_new_MIBloomFilter32__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 'new_MIBloomFilter16'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_MIBloomFilter32'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter()\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(size_t,unsigned int)\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" - " btllib::MIBloomFilter< uint16_t >::MIBloomFilter(std::string const &)\n"); + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter()\n" + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(size_t,unsigned int)\n" + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" + " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(std::string const &)\n"); return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_bv_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_complete_bv_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_complete_bv_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_complete_bv_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); (arg1)->complete_bv_insertion(); resultobj = SWIG_Py_Void(); return resultobj; @@ -56753,19 +56537,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_bv_insertion(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_id_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_complete_id_insertion(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_complete_id_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_complete_id_insertion", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); (arg1)->complete_id_insertion(); resultobj = SWIG_Py_Void(); return resultobj; @@ -56774,9 +56558,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_complete_id_insertion(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56785,14 +56569,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_0(PyObject *self, Py_ (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); (arg1)->insert_bv((uint64_t const *)arg2); @@ -56803,9 +56587,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_0(PyObject *self, Py_ } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56813,19 +56597,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_1(PyObject *self, Py_ (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -56839,14 +56623,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv__SWIG_1(PyObject *self, Py_ } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_bv", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_bv", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -56856,28 +56640,28 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_bv(PyObject *self, PyObject *a _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter16_insert_bv__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter32_insert_bv__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter16_insert_bv__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_insert_bv__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 'MIBloomFilter16_insert_bv'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_bv'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::insert_bv(uint64_t const *)\n" - " btllib::MIBloomFilter< uint16_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint32_t >::insert_bv(uint64_t const *)\n" + " btllib::MIBloomFilter< uint32_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56887,14 +56671,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_0(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)(arg1)->bv_contains((uint64_t const *)arg2); @@ -56905,9 +56689,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_0(PyObject *self, P } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -56916,19 +56700,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_1(PyObject *self, P (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } @@ -56942,14 +56726,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains__SWIG_1(PyObject *self, P } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_bv_contains", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_bv_contains", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -56959,57 +56743,57 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_bv_contains(PyObject *self, PyObject _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter16_bv_contains__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter32_bv_contains__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter16_bv_contains__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_bv_contains__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 'MIBloomFilter16_bv_contains'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_bv_contains'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::bv_contains(uint64_t const *)\n" - " btllib::MIBloomFilter< uint16_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint32_t >::bv_contains(uint64_t const *)\n" + " btllib::MIBloomFilter< uint32_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short *arg3 = 0 ; + unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short temp3 ; - unsigned short val3 ; + unsigned int temp3 ; + unsigned int val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_id" "', argument " "3"" of type '" "unsigned short""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_insert_id" "', argument " "3"" of type '" "unsigned int""'"); } - temp3 = static_cast< unsigned short >(val3); + temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; - (arg1)->insert_id((uint64_t const *)arg2,(unsigned short const &)*arg3); + (arg1)->insert_id((uint64_t const *)arg2,(unsigned int const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -57017,43 +56801,43 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_0(PyObject *self, Py_ } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short *arg3 = 0 ; + unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short temp3 ; - unsigned short val3 ; + unsigned int temp3 ; + unsigned int val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_id" "', argument " "3"" of type '" "unsigned short""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_insert_id" "', argument " "3"" of type '" "unsigned int""'"); } - temp3 = static_cast< unsigned short >(val3); + temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; - (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned short const &)*arg3); + (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned int const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -57063,14 +56847,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id__SWIG_1(PyObject *self, Py_ } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_id", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_id", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -57080,52 +56864,52 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_id(PyObject *self, PyObject *a _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_MIBloomFilter16_insert_id__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_insert_id__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_MIBloomFilter16_insert_id__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_insert_id__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 'MIBloomFilter16_insert_id'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::insert_id(uint64_t const *,unsigned short const &)\n" - " btllib::MIBloomFilter< uint16_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const &)\n"); + " btllib::MIBloomFilter< uint32_t >::insert_id(uint64_t const *,unsigned int const &)\n" + " btllib::MIBloomFilter< uint32_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - SwigValueWrapper< std::vector< unsigned short,std::allocator< unsigned short > > > result; + std::vector< unsigned int,std::allocator< unsigned int > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (arg1)->get_id((uint64_t const *)arg2); { - const std::vector& vec = result; + const std::vector& vec = result; resultobj = PyList_New(vec.size()); for (unsigned i = 0; i < vec.size(); ++i) { PyObject *item = PyLong_FromUnsignedLong(vec[i]); @@ -57138,36 +56922,36 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_0(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - SwigValueWrapper< std::vector< unsigned short,std::allocator< unsigned short > > > result; + std::vector< unsigned int,std::allocator< unsigned int > > result; (void)self; if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } result = (arg1)->get_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); { - const std::vector& vec = result; + const std::vector& vec = result; resultobj = PyList_New(vec.size()); for (unsigned i = 0; i < vec.size(); ++i) { PyObject *item = PyLong_FromUnsignedLong(vec[i]); @@ -57182,14 +56966,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id__SWIG_1(PyObject *self, Py_ssi } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[3] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_id", 0, 2, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_id", 0, 2, argv+1))) SWIG_fail; argv[0] = self; if (argc == 2) { int _v = 0; @@ -57199,57 +56983,57 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id(PyObject *self, PyObject *args _v = SWIG_CheckState(res); } if (!_v) goto check_1; - return _wrap_MIBloomFilter16_get_id__SWIG_0(self, argc, argv); + return _wrap_MIBloomFilter32_get_id__SWIG_0(self, argc, argv); } check_1: if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter16_get_id__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_get_id__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 'MIBloomFilter16_get_id'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_get_id'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::get_id(uint64_t const *)\n" - " btllib::MIBloomFilter< uint16_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); + " btllib::MIBloomFilter< uint32_t >::get_id(uint64_t const *)\n" + " btllib::MIBloomFilter< uint32_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; uint64_t *arg2 = (uint64_t *) 0 ; - unsigned short *arg3 = 0 ; + unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - unsigned short temp3 ; - unsigned short val3 ; + unsigned int temp3 ; + unsigned int val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "uint64_t const *""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "3"" of type '" "unsigned short""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "3"" of type '" "unsigned int""'"); } - temp3 = static_cast< unsigned short >(val3); + temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; - (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned short const &)*arg3); + (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned int const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: @@ -57257,43 +57041,43 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_0(PyObject *s } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned short *arg3 = 0 ; + unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; - unsigned short temp3 ; - unsigned short val3 ; + unsigned int temp3 ; + unsigned int val3 ; int ecode3 = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; res2 = swig::asptr(swig_obj[1], &ptr); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); } arg2 = ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_short(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_insert_saturation" "', argument " "3"" of type '" "unsigned short""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "3"" of type '" "unsigned int""'"); } - temp3 = static_cast< unsigned short >(val3); + temp3 = static_cast< unsigned int >(val3); arg3 = &temp3; - (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned short const &)*arg3); + (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned int const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; @@ -57303,14 +57087,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation__SWIG_1(PyObject *s } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation(PyObject *self, PyObject *args) { Py_ssize_t argc; PyObject *argv[4] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter16_insert_saturation", 0, 3, argv+1))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_saturation", 0, 3, argv+1))) SWIG_fail; argv[0] = self; if (argc == 3) { int _v = 0; @@ -57320,30 +57104,30 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_insert_saturation(PyObject *self, PyO _v = SWIG_CheckState(res); } if (!_v) goto check_1; - PyObject *retobj = _wrap_MIBloomFilter16_insert_saturation__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_insert_saturation__SWIG_0(self, argc, argv); if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; SWIG_fail; } check_1: if (argc == 3) { - PyObject *retobj = _wrap_MIBloomFilter16_insert_saturation__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_MIBloomFilter32_insert_saturation__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 'MIBloomFilter16_insert_saturation'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_saturation'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint16_t >::insert_saturation(uint64_t const *,unsigned short const &)\n" - " btllib::MIBloomFilter< uint16_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned short const &)\n"); + " btllib::MIBloomFilter< uint32_t >::insert_saturation(uint64_t const *,unsigned int const &)\n" + " btllib::MIBloomFilter< uint32_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const &)\n"); return 0; } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_save(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; std::string *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -57353,19 +57137,19 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_save(PyObject *self, PyObject *args) (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(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 '" "MIBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter16_save" "', argument " "2"" of type '" "std::string const &""'"); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); } arg2 = ptr; } @@ -57379,20 +57163,20 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_save(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_pop_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); result = (uint64_t)(arg1)->get_pop_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; @@ -57401,20 +57185,20 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_cnt(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_saturated_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_pop_saturated_cnt(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); result = (uint64_t)(arg1)->get_pop_saturated_cnt(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); return resultobj; @@ -57423,21 +57207,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_pop_saturated_cnt(PyObject *self, } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_hash_num(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_hash_num(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -57445,21 +57229,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_num(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_k(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_k", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_k(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + result = (unsigned int)((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_k(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: @@ -57467,21 +57251,21 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_k(PyObject *self, PyObject *args) } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_fn(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::string *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); - result = (std::string *) &((btllib::MIBloomFilter< uint16_t > const *)arg1)->get_hash_fn(); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + result = (std::string *) &((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); return resultobj; fail: @@ -57489,9 +57273,9 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_hash_fn(PyObject *self, PyObject } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id_occurence_count(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id_occurence_count(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; bool *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -57504,14 +57288,14 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id_occurence_count(PyObject *self (void)self; if (!args) SWIG_fail; swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, 0 | 0 ); + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter16_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter16_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter32_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); } temp2 = static_cast< bool >(val2); arg2 = &temp2; @@ -57530,7 +57314,7 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_get_id_occurence_count(PyObject *self } -SWIGINTERN PyObject *_wrap_MIBloomFilter16_calc_optimal_size(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_MIBloomFilter32_calc_optimal_size(PyObject *self, PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; unsigned int arg2 ; @@ -57545,23 +57329,23 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_calc_optimal_size(PyObject *self, PyO size_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter16_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_t >(val1); ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter16_calc_optimal_size" "', argument " "3"" of type '" "double""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "3"" of type '" "double""'"); } arg3 = static_cast< double >(val3); - result = btllib::MIBloomFilter< uint16_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); + result = btllib::MIBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: @@ -57569,456 +57353,198 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter16_calc_optimal_size(PyObject *self, PyO } -SWIGINTERN PyObject *_wrap_delete_MIBloomFilter16(PyObject *self, PyObject *args) { - PyObject *resultobj = 0; - btllib::MIBloomFilter< uint16_t > *arg1 = (btllib::MIBloomFilter< uint16_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - - (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter16", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_short_t, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter16" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint16_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint16_t > * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter16) /* defines _wrap_delete_MIBloomFilter16_destructor_closure */ - -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { - PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - std::string arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::MIBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - { - 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_MIBloomFilter32" "', argument " "3"" of type '" "std::string""'"); - } - arg3 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::MIBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_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_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { - PyObject *resultobj = 0; - sdsl::bit_vector *arg1 = 0 ; - unsigned int arg2 ; - std::string arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::MIBloomFilter< uint32_t > *result = 0 ; - - (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); - } - arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - { - 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_MIBloomFilter32" "', argument " "3"" of type '" "std::string""'"); - } - arg3 = *ptr; - if (SWIG_IsNewObj(res)) delete ptr; - } - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(*arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; -fail: - return -1; -} - - -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_4(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_delete_MIBloomFilter32(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - sdsl::bit_vector *arg1 = 0 ; - unsigned int arg2 ; + btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - btllib::MIBloomFilter< uint32_t > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_sdsl__bit_vector, 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter32", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', argument " "1"" of type '" "sdsl::bit_vector &""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter32" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); } - arg1 = reinterpret_cast< sdsl::bit_vector * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MIBloomFilter32" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >(*arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; fail: - return -1; + return NULL; } -SWIGINTERN int _wrap_new_MIBloomFilter32__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter32) /* defines _wrap_delete_MIBloomFilter32_destructor_closure */ + +SWIGINTERN PyObject *_wrap_Indexlr_output_id(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - std::string *arg1 = 0 ; - int res1 = SWIG_OLDOBJ ; - btllib::MIBloomFilter< uint32_t > *result = 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (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_MIBloomFilter32" "', argument " "1"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MIBloomFilter32" "', 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__IndexlrT_btllib__NtHash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_id" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - result = (btllib::MIBloomFilter< uint32_t > *)new btllib::MIBloomFilter< uint32_t >((std::string const &)*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_BUILTIN_INIT | 0 ); - if (SWIG_IsNewObj(res1)) delete arg1; - return resultobj == Py_None ? -1 : 0; + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > 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_MIBloomFilter32(PyObject *self, PyObject *args, PyObject *kwargs) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN PyObject *_wrap_Indexlr_output_bx(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_CheckNoKeywords(kwargs, "new_MIBloomFilter32")) SWIG_fail; - if (!(argc = SWIG_Python_UnpackTuple(args, "new_MIBloomFilter32", 0, 3, argv))) SWIG_fail; - --argc; - if (argc == 0) { - int retval = _wrap_new_MIBloomFilter32__SWIG_0(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 1) { - int retval = _wrap_new_MIBloomFilter32__SWIG_5(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sdsl__bit_vector, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_3; - int retval = _wrap_new_MIBloomFilter32__SWIG_4(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_3: - - if (argc == 2) { - int retval = _wrap_new_MIBloomFilter32__SWIG_2(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } - if (argc == 3) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sdsl__bit_vector, SWIG_POINTER_NO_NULL); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_5; - int retval = _wrap_new_MIBloomFilter32__SWIG_3(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; - } -check_5: - - if (argc == 3) { - int retval = _wrap_new_MIBloomFilter32__SWIG_1(self, argc, argv); - if (retval == 0 || !SWIG_Python_TypeErrorOccurred(NULL)) return retval; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_bx", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_bx" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->output_bx(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_MIBloomFilter32'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter()\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(size_t,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(size_t,unsigned int)\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int,std::string)\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(sdsl::bit_vector &,unsigned int)\n" - " btllib::MIBloomFilter< uint32_t >::MIBloomFilter(std::string const &)\n"); - return -1; + return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_complete_bv_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_output_seq(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_complete_bv_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_seq", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_complete_bv_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_seq" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - (arg1)->complete_bv_insertion(); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->output_seq(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_complete_id_insertion(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_output_qual(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; + bool result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_complete_id_insertion", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_output_qual", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_complete_id_insertion" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_output_qual" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - (arg1)->complete_id_insertion(); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->output_qual(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv__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::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; + bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_in", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_in" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - (arg1)->insert_bv((uint64_t const *)arg2); - resultobj = SWIG_Py_Void(); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->filter_in(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv__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::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 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__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_filter_out", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_bv" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_bv" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_filter_out" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - (arg1)->insert_bv((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->filter_out(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_bv(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; +SWIGINTERN PyObject *_wrap_Indexlr_short_mode(PyObject *self, PyObject *args) { + PyObject *resultobj = 0; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_bv", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); - } - if (!_v) goto check_1; - return _wrap_MIBloomFilter32_insert_bv__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter32_insert_bv__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "Indexlr_short_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_short_mode" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->short_mode(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_bv'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::insert_bv(uint64_t const *)\n" - " btllib::MIBloomFilter< uint32_t >::insert_bv(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_long_mode(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; bool result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_long_mode", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "uint64_t const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_long_mode" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > const *""'"); } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (bool)(arg1)->bv_contains((uint64_t const *)arg2); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (bool)((btllib::Indexlr< btllib::NtHash > const *)arg1)->long_mode(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: @@ -58026,683 +57552,1176 @@ SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains__SWIG_0(PyObject *self, P } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_Indexlr_read(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - bool result; + btllib::Record result; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_read", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_bv_contains" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_read" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (arg1)->read(); + resultobj = SWIG_NewPointerObj((new btllib::Record(result)), SWIGTYPE_p_btllib__Record, SWIG_POINTER_OWN | 0 ); + 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< btllib::NtHash > *result = 0 ; + + (void)self; + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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 (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_bv_contains" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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 (!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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7,(btllib::BloomFilter const &)*arg8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_Indexlr__SWIG_1(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 ; + 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< btllib::NtHash > *result = 0 ; + + (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""'"); } - arg2 = ptr; + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - result = (bool)(arg1)->bv_contains((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); - resultobj = SWIG_From_bool(static_cast< bool >(result)); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + 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); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6,(btllib::BloomFilter const &)*arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_bv_contains(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; +SWIGINTERN int _wrap_new_Indexlr__SWIG_2(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 ; + 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< btllib::NtHash > *result = 0 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_bv_contains", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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""'"); } - if (!_v) goto check_1; - return _wrap_MIBloomFilter32_bv_contains__SWIG_0(self, argc, argv); + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } -check_1: + 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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; +fail: + return -1; +} + + +SWIGINTERN int _wrap_new_Indexlr__SWIG_3(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 ; + 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< btllib::NtHash > *result = 0 ; - if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter32_bv_contains__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + (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; } - + 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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_bv_contains'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::bv_contains(uint64_t const *)\n" - " btllib::MIBloomFilter< uint32_t >::bv_contains(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id__SWIG_0(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; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int temp3 ; - unsigned int val3 ; + 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< btllib::NtHash > *result = 0 ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "uint64_t const *""'"); + 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; } - arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + 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 '" "MIBloomFilter32_insert_id" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - temp3 = static_cast< unsigned int >(val3); - arg3 = &temp3; - (arg1)->insert_id((uint64_t const *)arg2,(unsigned int const &)*arg3); - resultobj = SWIG_Py_Void(); - return resultobj; + 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); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id__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; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int temp3 ; - unsigned int val3 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; int ecode3 = 0 ; + btllib::Indexlr< btllib::NtHash > *result = 0 ; (void)self; if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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""'"); } - arg2 = ptr; + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + 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 '" "MIBloomFilter32_insert_id" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - temp3 = static_cast< unsigned int >(val3); - arg3 = &temp3; - (arg1)->insert_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned int const &)*arg3); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + arg3 = static_cast< size_t >(val3); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_id(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[4] = { - 0 - }; +SWIGINTERN int _wrap_new_Indexlr__SWIG_6(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 ; + 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< btllib::NtHash > *result = 0 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_id", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 3) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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""'"); } - if (!_v) goto check_1; - PyObject *retobj = _wrap_MIBloomFilter32_insert_id__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } -check_1: - - if (argc == 3) { - PyObject *retobj = _wrap_MIBloomFilter32_insert_id__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + 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""'"); + } + 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 (!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); + 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 (!argp9) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Indexlr" "', argument " "9"" of type '" "btllib::BloomFilter const &""'"); + } + arg9 = reinterpret_cast< btllib::BloomFilter * >(argp9); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(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__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_id'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::insert_id(uint64_t const *,unsigned int const &)\n" - " btllib::MIBloomFilter< uint32_t >::insert_id(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const &)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id__SWIG_0(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; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - std::vector< unsigned int,std::allocator< unsigned int > > result; + 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< btllib::NtHash > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "uint64_t const *""'"); - } - arg2 = reinterpret_cast< uint64_t * >(argp2); - result = (arg1)->get_id((uint64_t const *)arg2); + if ((nobjs < 8) || (nobjs > 8)) SWIG_fail; { - const std::vector& vec = result; - resultobj = PyList_New(vec.size()); - for (unsigned i = 0; i < vec.size(); ++i) { - PyObject *item = PyLong_FromUnsignedLong(vec[i]); - PyList_SetItem(resultobj, i, item); + 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; } - return resultobj; + 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""'"); + } + 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 (!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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6,arg7,(btllib::BloomFilter const &)*arg8); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_8(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - std::vector< unsigned int,std::allocator< unsigned int > > result; + 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< btllib::NtHash > *result = 0 ; (void)self; - if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_get_id" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - arg2 = ptr; - } - result = (arg1)->get_id((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2); + if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; { - const std::vector& vec = result; - resultobj = PyList_New(vec.size()); - for (unsigned i = 0; i < vec.size(); ++i) { - PyObject *item = PyLong_FromUnsignedLong(vec[i]); - PyList_SetItem(resultobj, i, item); + 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 (SWIG_IsNewObj(res2)) delete arg2; - return resultobj; + 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""'"); + } + arg7 = static_cast< bool >(val7); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id(PyObject *self, PyObject *args) { - Py_ssize_t argc; - PyObject *argv[3] = { - 0 - }; +SWIGINTERN int _wrap_new_Indexlr__SWIG_9(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 ; + 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< btllib::NtHash > *result = 0 ; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_id", 0, 2, argv+1))) SWIG_fail; - argv[0] = self; - if (argc == 2) { - int _v = 0; - { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 0); - _v = SWIG_CheckState(res); + 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""'"); } - if (!_v) goto check_1; - return _wrap_MIBloomFilter32_get_id__SWIG_0(self, argc, argv); - } -check_1: - - if (argc == 2) { - PyObject *retobj = _wrap_MIBloomFilter32_get_id__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; - SWIG_fail; + 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); + result = (btllib::Indexlr< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_get_id'.\n" - " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::get_id(uint64_t const *)\n" - " btllib::MIBloomFilter< uint32_t >::get_id(std::vector< uint64_t,std::allocator< uint64_t > > const &)\n"); - return 0; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_10(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - uint64_t *arg2 = (uint64_t *) 0 ; - unsigned int *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - unsigned int temp3 ; - unsigned int val3 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + unsigned int arg5 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + btllib::Indexlr< btllib::NtHash > *result = 0 ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_unsigned_long_long, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "uint64_t 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; } - arg2 = reinterpret_cast< uint64_t * >(argp2); - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + 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 '" "MIBloomFilter32_insert_saturation" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - temp3 = static_cast< unsigned int >(val3); - arg3 = &temp3; - (arg1)->insert_saturation((uint64_t const *)arg2,(unsigned int const &)*arg3); - 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); + 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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { +SWIGINTERN int _wrap_new_Indexlr__SWIG_11(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::vector< uint64_t,std::allocator< uint64_t > > *arg2 = 0 ; - unsigned int *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 = SWIG_OLDOBJ ; - unsigned int temp3 ; - unsigned int val3 ; + std::string arg1 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + btllib::Indexlr< btllib::NtHash > *result = 0 ; (void)self; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; { - std::vector< uint64_t,std::allocator< uint64_t > > *ptr = (std::vector< uint64_t,std::allocator< uint64_t > > *)0; - res2 = swig::asptr(swig_obj[1], &ptr); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_insert_saturation" "', argument " "2"" of type '" "std::vector< uint64_t,std::allocator< uint64_t > > const &""'"); + 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""'"); } - arg2 = ptr; + arg1 = *ptr; + if (SWIG_IsNewObj(res)) delete ptr; } - ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3); + 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 '" "MIBloomFilter32_insert_saturation" "', argument " "3"" of type '" "unsigned int""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Indexlr" "', argument " "3"" of type '" "size_t""'"); } - temp3 = static_cast< unsigned int >(val3); - arg3 = &temp3; - (arg1)->insert_saturation((std::vector< uint64_t,std::allocator< uint64_t > > const &)*arg2,(unsigned int const &)*arg3); - resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; - 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< btllib::NtHash > *)new btllib::Indexlr< btllib::NtHash >(arg1,arg2,arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - if (SWIG_IsNewObj(res2)) delete arg2; - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_insert_saturation(PyObject *self, PyObject *args) { +SWIGINTERN int _wrap_new_Indexlr(PyObject *self, PyObject *args, PyObject *kwargs) { Py_ssize_t argc; - PyObject *argv[4] = { + PyObject *argv[10] = { 0 }; (void)self; - if (!(argc = SWIG_Python_UnpackTuple(args, "MIBloomFilter32_insert_saturation", 0, 3, argv+1))) SWIG_fail; - argv[0] = self; + 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; + } + if (argc == 4) { int _v = 0; { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_long_long, 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_1; - PyObject *retobj = _wrap_MIBloomFilter32_insert_saturation__SWIG_0(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + 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; } -check_1: + 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 == 3) { - PyObject *retobj = _wrap_MIBloomFilter32_insert_saturation__SWIG_1(self, argc, argv); - if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + 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: - SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'MIBloomFilter32_insert_saturation'.\n" + SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_Indexlr'.\n" " Possible C/C++ prototypes are:\n" - " btllib::MIBloomFilter< uint32_t >::insert_saturation(uint64_t const *,unsigned int const &)\n" - " btllib::MIBloomFilter< uint32_t >::insert_saturation(std::vector< uint64_t,std::allocator< uint64_t > > const &,unsigned int const &)\n"); - return 0; + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int,bool)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,unsigned int,unsigned int)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,unsigned int)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &,btllib::BloomFilter const &)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool,btllib::BloomFilter const &)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int,bool)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t,unsigned int,unsigned int)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t,unsigned int)\n" + " btllib::Indexlr< btllib::NtHash >::Indexlr(std::string,size_t,size_t,size_t)\n"); + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_save(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_Indexlr(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - std::string *arg2 = 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 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__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_Indexlr", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_save" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(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 '" "MIBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); - } - if (!ptr) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MIBloomFilter32_save" "', argument " "2"" of type '" "std::string const &""'"); - } - arg2 = ptr; + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Indexlr" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - (arg1)->save((std::string const &)*arg2); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + delete arg1; resultobj = SWIG_Py_Void(); - if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: - if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_pop_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr_close(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_pop_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr_close", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_pop_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr_close" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - result = (uint64_t)(arg1)->get_pop_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + (arg1)->close(); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_pop_saturated_cnt(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr___iter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; + SwigValueWrapper< btllib::Indexlr< btllib::NtHash >::RecordIterator > result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_pop_saturated_cnt", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr___iter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_pop_saturated_cnt" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___iter__" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - result = (uint64_t)(arg1)->get_pop_saturated_cnt(); - resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< uint64_t >(result)); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (arg1)->begin(); + resultobj = SWIG_NewPointerObj((new btllib::Indexlr< btllib::NtHash >::RecordIterator(result)), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_hash_num(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr___enter__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + btllib::Indexlr< btllib::NtHash > *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_hash_num", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr___enter__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_hash_num" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___enter__" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_hash_num(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + result = (btllib::Indexlr< btllib::NtHash > *)btllib_Indexlr_Sl_btllib_NtHash_Sg____enter__(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_k(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_Indexlr___exit__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash > *arg1 = (btllib::Indexlr< btllib::NtHash > *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + PyObject *arg3 = (PyObject *) 0 ; + PyObject *arg4 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; + PyObject *swig_obj[4] ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_k", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "Indexlr___exit__", 3, 3, swig_obj)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_k" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Indexlr___exit__" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash > *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - result = (unsigned int)((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_k(); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash > * >(argp1); + arg2 = swig_obj[0]; + arg3 = swig_obj[1]; + arg4 = swig_obj[2]; + btllib_Indexlr_Sl_btllib_NtHash_Sg____exit__(arg1,arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_hash_fn(PyObject *self, PyObject *args) { +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::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - std::string *result = 0 ; + btllib::Indexlr< btllib::NtHash >::Flag *result = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_get_hash_fn", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_hash_fn" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > const *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - result = (std::string *) &((btllib::MIBloomFilter< uint32_t > const *)arg1)->get_hash_fn(); - resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); - return resultobj; + if (!SWIG_Python_CheckNoKeywords(kwargs, "new_IndexlrFlag")) SWIG_fail; + if (!SWIG_Python_UnpackTuple(args, "new_IndexlrFlag", 0, 0, 0)) SWIG_fail; + result = (btllib::Indexlr< btllib::NtHash >::Flag *)new btllib::Indexlr< btllib::NtHash >::Flag(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__Flag, SWIG_BUILTIN_INIT | 0 ); + return resultobj == Py_None ? -1 : 0; fail: - return NULL; + return -1; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_get_id_occurence_count(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_IndexlrFlag(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; - bool *arg2 = 0 ; + btllib::Indexlr< btllib::NtHash >::Flag *arg1 = (btllib::Indexlr< btllib::NtHash >::Flag *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - bool temp2 ; - bool val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; - SwigValueWrapper< std::vector< size_t,std::allocator< size_t > > > result; (void)self; - if (!args) SWIG_fail; - swig_obj[0] = args; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, 0 | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrFlag", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__Flag, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MIBloomFilter32_get_id_occurence_count" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); - } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); - ecode2 = SWIG_AsVal_bool(swig_obj[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter32_get_id_occurence_count" "', argument " "2"" of type '" "bool""'"); - } - temp2 = static_cast< bool >(val2); - arg2 = &temp2; - result = (arg1)->get_id_occurence_count((bool const &)*arg2); - { - const std::vector& vec = result; - resultobj = PyList_New(vec.size()); - for (unsigned i = 0; i < vec.size(); ++i) { - PyObject *item = PyLong_FromUnsignedLong(vec[i]); - PyList_SetItem(resultobj, i, item); - } + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrFlag" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash >::Flag *""'"); } + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash >::Flag * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_MIBloomFilter32_calc_optimal_size(PyObject *self, PyObject *args) { +SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_IndexlrFlag) /* defines _wrap_delete_IndexlrFlag_destructor_closure */ + +SWIGINTERN PyObject *_wrap_IndexlrRecordIterator___next__(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - size_t arg1 ; - unsigned int arg2 ; - double arg3 ; - size_t val1 ; - int ecode1 = 0 ; - unsigned int val2 ; - int ecode2 = 0 ; - double val3 ; - int ecode3 = 0 ; - PyObject *swig_obj[3] ; - size_t result; + btllib::Indexlr< btllib::NtHash >::RecordIterator *arg1 = (btllib::Indexlr< btllib::NtHash >::RecordIterator *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + btllib::Record result; (void)self; - if (!SWIG_Python_UnpackTuple(args, "MIBloomFilter32_calc_optimal_size", 3, 3, swig_obj)) SWIG_fail; - ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "1"" of type '" "size_t""'"); - } - arg1 = static_cast< size_t >(val1); - ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "2"" of type '" "unsigned int""'"); - } - arg2 = static_cast< unsigned int >(val2); - ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MIBloomFilter32_calc_optimal_size" "', argument " "3"" of type '" "double""'"); - } - arg3 = static_cast< double >(val3); - result = btllib::MIBloomFilter< uint32_t >::SWIGTEMPLATEDISAMBIGUATOR calc_optimal_size(SWIG_STD_MOVE(arg1),arg2,arg3); - resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + if (!SWIG_Python_UnpackTuple(args, "IndexlrRecordIterator___next__", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndexlrRecordIterator___next__" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash >::RecordIterator *""'"); + } + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash >::RecordIterator * >(argp1); + { + result = (arg1)->next(); + if (!bool(result)) { + PyErr_SetNone(PyExc_StopIteration); + SWIG_fail; + } + } + resultobj = SWIG_NewPointerObj((new btllib::Record(result)), SWIGTYPE_p_btllib__Record, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } -SWIGINTERN PyObject *_wrap_delete_MIBloomFilter32(PyObject *self, PyObject *args) { +SWIGINTERN PyObject *_wrap_delete_IndexlrRecordIterator(PyObject *self, PyObject *args) { PyObject *resultobj = 0; - btllib::MIBloomFilter< uint32_t > *arg1 = (btllib::MIBloomFilter< uint32_t > *) 0 ; + btllib::Indexlr< btllib::NtHash >::RecordIterator *arg1 = (btllib::Indexlr< btllib::NtHash >::RecordIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; (void)self; - if (!SWIG_Python_UnpackTuple(args, "delete_MIBloomFilter32", 0, 0, 0)) SWIG_fail; - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__MIBloomFilterT_unsigned_int_t, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_Python_UnpackTuple(args, "delete_IndexlrRecordIterator", 0, 0, 0)) SWIG_fail; + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MIBloomFilter32" "', argument " "1"" of type '" "btllib::MIBloomFilter< uint32_t > *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IndexlrRecordIterator" "', argument " "1"" of type '" "btllib::Indexlr< btllib::NtHash >::RecordIterator *""'"); } - arg1 = reinterpret_cast< btllib::MIBloomFilter< uint32_t > * >(argp1); + arg1 = reinterpret_cast< btllib::Indexlr< btllib::NtHash >::RecordIterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; @@ -58711,7 +58730,9 @@ SWIGINTERN PyObject *_wrap_delete_MIBloomFilter32(PyObject *self, PyObject *args } -SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_MIBloomFilter32) /* defines _wrap_delete_MIBloomFilter32_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 */ static PyMethodDef SwigMethods[] = { { "ios_base_boolalpha_get", _wrap_ios_base_boolalpha_get, METH_VARARGS, NULL}, @@ -61929,13 +61950,13 @@ static PyHeapTypeObject 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[] = { +SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__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) { +SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -61948,7 +61969,7 @@ SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare(PyObject *s return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_methods[] = { { "iterator", _wrap_VectorMinimizer_iterator, METH_NOARGS, "" }, { "__nonzero__", _wrap_VectorMinimizer___nonzero__, METH_NOARGS, "" }, { "__bool__", _wrap_VectorMinimizer___bool__, METH_NOARGS, "" }, @@ -61983,7 +62004,7 @@ SWIGINTERN PyMethodDef SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_ { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type = { +static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -62008,30 +62029,30 @@ 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__Minimizer_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__std__vectorT_btllib__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 */ + &SwigPyBuiltin__std__vectorT_btllib__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 */ + "std::vector< btllib::Minimizer >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__std__vectorT_btllib__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 */ + SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_getset,/* tp_getset */ + SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_getset, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ (descrgetfunc) 0, /* tp_descr_get */ @@ -62185,7 +62206,7 @@ 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__Minimizer_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_type}; static SwigPyGetSet VectorSpacedSeed___dict___getset = { SwigPyObject_get___dict__, 0 }; SWIGINTERN PyGetSetDef SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_t_getset[] = { @@ -62446,14 +62467,26 @@ static PyHeapTypeObject SwigPyBuiltin__std__vectorT_btllib__SpacedSeed_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 Indexlr___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__Indexlr_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Indexlr___dict___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__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__Indexlr_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__Minimizer_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -62466,24 +62499,11 @@ 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__Minimizer_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Minimizer_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -62491,10 +62511,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Indexlr", /* tp_name */ + "btllib.Minimizer", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Indexlr_destructor_closure, /* tp_dealloc */ + _wrap_delete_Minimizer_destructor_closure,/* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -62508,36 +62528,275 @@ 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__Minimizer_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Minimizer_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__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__Indexlr_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__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::Indexlr", /* tp_doc */ + "btllib::Minimizer", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Minimizer_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - _wrap_Indexlr___iter___getiterfunc_closure, /* tp_iter */ + (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Minimizer_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr_getset, /* tp_getset */ + SwigPyBuiltin__btllib__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_Indexlr, /* tp_init */ + _wrap_new_Minimizer, /* 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 */ + (inquiry) 0, /* 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__Minimizer_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Minimizer_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__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__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__Record_methods[] = { + { "__nonzero__", _wrap_IndexlrRecord___nonzero__, METH_NOARGS, "" }, + { NULL, NULL, 0, NULL } /* Sentinel */ +}; + +static PyHeapTypeObject SwigPyBuiltin__btllib__Record_type = { + { +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + "btllib.IndexlrRecord", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + _wrap_delete_IndexlrRecord_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__Record_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__Record_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__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__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::Record", /* tp_doc */ + (traverseproc) 0, /* tp_traverse */ + (inquiry) 0, /* tp_clear */ + SwigPyBuiltin__btllib__Record_richcompare,/* tp_richcompare */ + 0, /* tp_weaklistoffset */ + (getiterfunc) 0, /* tp_iter */ + (iternextfunc) 0, /* tp_iternext */ + SwigPyBuiltin__btllib__Record_methods, /* tp_methods */ + 0, /* tp_members */ + SwigPyBuiltin__btllib__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_IndexlrRecord, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -62589,7 +62848,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr_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 */ @@ -62685,16 +62944,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__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Record_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 BloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__BloomFilter_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &BloomFilter___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Flag_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__BloomFilter_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -62707,11 +62966,23 @@ SwigPyBuiltin__btllib__Indexlr__Flag_richcompare(PyObject *self, PyObject *other return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Flag_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__BloomFilter_methods[] = { + { "insert", _wrap_BloomFilter_insert, METH_VARARGS, "" }, + { "contains", _wrap_BloomFilter_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_BloomFilter_contains_insert, METH_VARARGS, "" }, + { "get_bytes", _wrap_BloomFilter_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_BloomFilter_get_pop_cnt, METH_NOARGS, "" }, + { "get_occupancy", _wrap_BloomFilter_get_occupancy, METH_NOARGS, "" }, + { "get_hash_num", _wrap_BloomFilter_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_BloomFilter_get_fpr, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_BloomFilter_get_hash_fn, METH_NOARGS, "" }, + { "save", _wrap_BloomFilter_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_BloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, + { "check_file_signature", (PyCFunction)(void(*)(void))_wrap_BloomFilter_check_file_signature, METH_STATIC|METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__BloomFilter_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -62719,10 +62990,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Flag_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.IndexlrFlag", /* tp_name */ + "btllib.BloomFilter", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_IndexlrFlag_destructor_closure, /* tp_dealloc */ + _wrap_delete_BloomFilter_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -62736,36 +63007,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__BloomFilter_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__BloomFilter_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__BloomFilter_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__BloomFilter_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::BloomFilter", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Flag_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__BloomFilter_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Flag_methods, /* tp_methods */ + SwigPyBuiltin__btllib__BloomFilter_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__Flag_getset, /* tp_getset */ + SwigPyBuiltin__btllib__BloomFilter_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_BloomFilter, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -62913,28 +63184,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__BloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__BloomFilter_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 KmerBloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerBloomFilter_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerBloomFilter___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__KmerBloomFilter_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -62947,11 +63206,24 @@ SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare(PyObject *self, PyObject * return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Indexlr__Minimizer_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerBloomFilter_methods[] = { + { "insert", _wrap_KmerBloomFilter_insert, METH_VARARGS, "" }, + { "contains", _wrap_KmerBloomFilter_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_KmerBloomFilter_contains_insert, METH_VARARGS, "" }, + { "get_bytes", _wrap_KmerBloomFilter_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_KmerBloomFilter_get_pop_cnt, METH_NOARGS, "" }, + { "get_occupancy", _wrap_KmerBloomFilter_get_occupancy, METH_NOARGS, "" }, + { "get_hash_num", _wrap_KmerBloomFilter_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_KmerBloomFilter_get_fpr, METH_NOARGS, "" }, + { "get_k", _wrap_KmerBloomFilter_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_KmerBloomFilter_get_hash_fn, METH_NOARGS, "" }, + { "get_bloom_filter", _wrap_KmerBloomFilter_get_bloom_filter, METH_NOARGS, "" }, + { "save", _wrap_KmerBloomFilter_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerBloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__KmerBloomFilter_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -62959,10 +63231,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Minimizer_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Minimizer", /* tp_name */ + "btllib.KmerBloomFilter", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Minimizer_destructor_closure,/* tp_dealloc */ + _wrap_delete_KmerBloomFilter_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -62976,36 +63248,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__KmerBloomFilter_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__KmerBloomFilter_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__KmerBloomFilter_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__KmerBloomFilter_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::KmerBloomFilter", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__KmerBloomFilter_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_methods, /* tp_methods */ + SwigPyBuiltin__btllib__KmerBloomFilter_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__Minimizer_getset, /* tp_getset */ + SwigPyBuiltin__btllib__KmerBloomFilter_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_KmerBloomFilter, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -63153,26 +63425,16 @@ 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__KmerBloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerBloomFilter_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 SeedBloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedBloomFilter_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedBloomFilter___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__Record_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeedBloomFilter_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -63185,12 +63447,28 @@ 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__SeedBloomFilter_methods[] = { + { "insert", _wrap_SeedBloomFilter_insert, METH_VARARGS, "" }, + { "contains", _wrap_SeedBloomFilter_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_SeedBloomFilter_contains_insert, METH_VARARGS, "" }, + { "get_bytes", _wrap_SeedBloomFilter_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_SeedBloomFilter_get_pop_cnt, METH_NOARGS, "" }, + { "get_occupancy", _wrap_SeedBloomFilter_get_occupancy, METH_NOARGS, "" }, + { "get_total_hash_num", _wrap_SeedBloomFilter_get_total_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_SeedBloomFilter_get_fpr, METH_NOARGS, "" }, + { "get_k", _wrap_SeedBloomFilter_get_k, METH_NOARGS, "" }, + { "get_seeds", _wrap_SeedBloomFilter_get_seeds, METH_NOARGS, "" }, + { "get_parsed_seeds", _wrap_SeedBloomFilter_get_parsed_seeds, METH_NOARGS, "" }, + { "get_hash_num_per_seed", _wrap_SeedBloomFilter_get_hash_num_per_seed, METH_NOARGS, "" }, + { "get_hash_num", _wrap_SeedBloomFilter_get_hash_num, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_SeedBloomFilter_get_hash_fn, METH_NOARGS, "" }, + { "get_kmer_bloom_filter", _wrap_SeedBloomFilter_get_kmer_bloom_filter, METH_NOARGS, "" }, + { "save", _wrap_SeedBloomFilter_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_SeedBloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -63198,10 +63476,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__Record_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.IndexlrRecord", /* tp_name */ + "btllib.SeedBloomFilter", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_IndexlrRecord_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeedBloomFilter_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -63215,265 +63493,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__SeedBloomFilter_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeedBloomFilter_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeedBloomFilter_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__SeedBloomFilter_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::SeedBloomFilter", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__Record_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeedBloomFilter_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__Record_methods, /* tp_methods */ - 0, /* tp_members */ - 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_IndexlrRecord, /* 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_IndexlrRecord___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__Indexlr__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_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 }, - { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ -}; - -SWIGINTERN PyObject * -SwigPyBuiltin__btllib__Indexlr__RecordIterator_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__Indexlr__RecordIterator_methods[] = { - { "__next__", _wrap_IndexlrRecordIterator___next__, METH_NOARGS, "" }, - { NULL, NULL, 0, NULL } /* Sentinel */ -}; - -static PyHeapTypeObject SwigPyBuiltin__btllib__Indexlr__RecordIterator_type = { - { -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - "btllib.IndexlrRecordIterator", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - _wrap_delete_IndexlrRecordIterator_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__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__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::Indexlr::RecordIterator", /* tp_doc */ - (traverseproc) 0, /* tp_traverse */ - (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_richcompare, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - (getiterfunc) 0, /* tp_iter */ - _wrap_IndexlrRecordIterator___next___iternextfunc_closure, /* tp_iternext */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeedBloomFilter_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Indexlr__RecordIterator_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeedBloomFilter_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_SeedBloomFilter, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -63621,16 +63670,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__SeedBloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedBloomFilter_type}; -static SwigPyGetSet BloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__BloomFilter_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &BloomFilter___dict___getset }, +static SwigPyGetSet SeqReader___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReader___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__BloomFilter_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeqReader_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -63643,23 +63692,23 @@ SwigPyBuiltin__btllib__BloomFilter_richcompare(PyObject *self, PyObject *other, return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__BloomFilter_methods[] = { - { "insert", _wrap_BloomFilter_insert, METH_VARARGS, "" }, - { "contains", _wrap_BloomFilter_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_BloomFilter_contains_insert, METH_VARARGS, "" }, - { "get_bytes", _wrap_BloomFilter_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_BloomFilter_get_pop_cnt, METH_NOARGS, "" }, - { "get_occupancy", _wrap_BloomFilter_get_occupancy, METH_NOARGS, "" }, - { "get_hash_num", _wrap_BloomFilter_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_BloomFilter_get_fpr, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_BloomFilter_get_hash_fn, METH_NOARGS, "" }, - { "save", _wrap_BloomFilter_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_BloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, - { "check_file_signature", (PyCFunction)(void(*)(void))_wrap_BloomFilter_check_file_signature, METH_STATIC|METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader_methods[] = { + { "close", _wrap_SeqReader_close, METH_NOARGS, "" }, + { "fold_case", _wrap_SeqReader_fold_case, METH_NOARGS, "" }, + { "trim_masked", _wrap_SeqReader_trim_masked, METH_NOARGS, "" }, + { "short_mode", _wrap_SeqReader_short_mode, METH_NOARGS, "" }, + { "long_mode", _wrap_SeqReader_long_mode, METH_NOARGS, "" }, + { "get_format", _wrap_SeqReader_get_format, METH_NOARGS, "" }, + { "read", _wrap_SeqReader_read, METH_NOARGS, "" }, + { "__iter__", _wrap_SeqReader___iter__, METH_NOARGS, "" }, + { "get_buffer_size", _wrap_SeqReader_get_buffer_size, METH_NOARGS, "" }, + { "get_block_size", _wrap_SeqReader_get_block_size, METH_NOARGS, "" }, + { "__enter__", _wrap_SeqReader___enter__, METH_NOARGS, "" }, + { "__exit__", _wrap_SeqReader___exit__, METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__BloomFilter_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -63667,10 +63716,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BloomFilter_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.BloomFilter", /* tp_name */ + "btllib.SeqReader", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_BloomFilter_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqReader_destructor_closure,/* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -63684,36 +63733,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BloomFilter_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__BloomFilter_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__BloomFilter_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__BloomFilter_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeqReader_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeqReader_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeqReader_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__BloomFilter_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeqReader_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::BloomFilter", /* tp_doc */ + "btllib::SeqReader", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__BloomFilter_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - (getiterfunc) 0, /* tp_iter */ + _wrap_SeqReader___iter___getiterfunc_closure, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__BloomFilter_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeqReader_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__BloomFilter_getset,/* tp_getset */ + SwigPyBuiltin__btllib__SeqReader_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_BloomFilter, /* tp_init */ + _wrap_new_SeqReader, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -63861,16 +63910,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BloomFilter_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__BloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__BloomFilter_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader_type}; -static SwigPyGetSet KmerBloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerBloomFilter_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerBloomFilter___dict___getset }, +static SwigPyGetSet SeqReaderFlag___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__Flag_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderFlag___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__KmerBloomFilter_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeqReader__Flag_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -63883,24 +63932,11 @@ SwigPyBuiltin__btllib__KmerBloomFilter_richcompare(PyObject *self, PyObject *oth return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerBloomFilter_methods[] = { - { "insert", _wrap_KmerBloomFilter_insert, METH_VARARGS, "" }, - { "contains", _wrap_KmerBloomFilter_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_KmerBloomFilter_contains_insert, METH_VARARGS, "" }, - { "get_bytes", _wrap_KmerBloomFilter_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_KmerBloomFilter_get_pop_cnt, METH_NOARGS, "" }, - { "get_occupancy", _wrap_KmerBloomFilter_get_occupancy, METH_NOARGS, "" }, - { "get_hash_num", _wrap_KmerBloomFilter_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_KmerBloomFilter_get_fpr, METH_NOARGS, "" }, - { "get_k", _wrap_KmerBloomFilter_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_KmerBloomFilter_get_hash_fn, METH_NOARGS, "" }, - { "get_bloom_filter", _wrap_KmerBloomFilter_get_bloom_filter, METH_NOARGS, "" }, - { "save", _wrap_KmerBloomFilter_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerBloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Flag_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__KmerBloomFilter_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Flag_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -63908,10 +63944,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerBloomFilter_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.KmerBloomFilter", /* tp_name */ + "btllib.SeqReaderFlag", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_KmerBloomFilter_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqReaderFlag_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -63925,36 +63961,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerBloomFilter_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__KmerBloomFilter_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__KmerBloomFilter_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__KmerBloomFilter_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__SeqReader__Flag_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeqReader__Flag_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeqReader__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__KmerBloomFilter_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__SeqReader__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::KmerBloomFilter", /* tp_doc */ + "btllib::SeqReader::Flag", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__KmerBloomFilter_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader__Flag_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__KmerBloomFilter_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeqReader__Flag_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__KmerBloomFilter_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeqReader__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_KmerBloomFilter, /* tp_init */ + _wrap_new_SeqReaderFlag, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -64102,16 +64138,26 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerBloomFilter_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerBloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerBloomFilter_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Flag_type}; -static SwigPyGetSet SeedBloomFilter___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedBloomFilter_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedBloomFilter___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__SeedBloomFilter_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)) { @@ -64124,28 +64170,12 @@ SwigPyBuiltin__btllib__SeedBloomFilter_richcompare(PyObject *self, PyObject *oth return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeedBloomFilter_methods[] = { - { "insert", _wrap_SeedBloomFilter_insert, METH_VARARGS, "" }, - { "contains", _wrap_SeedBloomFilter_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_SeedBloomFilter_contains_insert, METH_VARARGS, "" }, - { "get_bytes", _wrap_SeedBloomFilter_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_SeedBloomFilter_get_pop_cnt, METH_NOARGS, "" }, - { "get_occupancy", _wrap_SeedBloomFilter_get_occupancy, METH_NOARGS, "" }, - { "get_total_hash_num", _wrap_SeedBloomFilter_get_total_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_SeedBloomFilter_get_fpr, METH_NOARGS, "" }, - { "get_k", _wrap_SeedBloomFilter_get_k, METH_NOARGS, "" }, - { "get_seeds", _wrap_SeedBloomFilter_get_seeds, METH_NOARGS, "" }, - { "get_parsed_seeds", _wrap_SeedBloomFilter_get_parsed_seeds, METH_NOARGS, "" }, - { "get_hash_num_per_seed", _wrap_SeedBloomFilter_get_hash_num_per_seed, METH_NOARGS, "" }, - { "get_hash_num", _wrap_SeedBloomFilter_get_hash_num, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_SeedBloomFilter_get_hash_fn, METH_NOARGS, "" }, - { "get_kmer_bloom_filter", _wrap_SeedBloomFilter_get_kmer_bloom_filter, METH_NOARGS, "" }, - { "save", _wrap_SeedBloomFilter_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_SeedBloomFilter_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Record_methods[] = { + { "__nonzero__", _wrap_SeqReaderRecord___nonzero__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -64153,10 +64183,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeedBloomFilter", /* tp_name */ + "btllib.SeqReaderRecord", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeedBloomFilter_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqReaderRecord_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -64170,36 +64200,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeedBloomFilter_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeedBloomFilter_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeedBloomFilter_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__SeedBloomFilter_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::SeedBloomFilter", /* tp_doc */ + "btllib::SeqReader::Record", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeedBloomFilter_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader__Record_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeedBloomFilter_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeqReader__Record_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeedBloomFilter_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 */ - _wrap_new_SeedBloomFilter, /* tp_init */ + _wrap_new_SeqReaderRecord, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -64251,7 +64281,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_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 */ @@ -64347,16 +64377,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedBloomFilter_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeedBloomFilter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedBloomFilter_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Record_type}; -static SwigPyGetSet SeqReader___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReader___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__SeqReader_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)) { @@ -64369,23 +64399,12 @@ SwigPyBuiltin__btllib__SeqReader_richcompare(PyObject *self, PyObject *other, in return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader_methods[] = { - { "close", _wrap_SeqReader_close, METH_NOARGS, "" }, - { "fold_case", _wrap_SeqReader_fold_case, METH_NOARGS, "" }, - { "trim_masked", _wrap_SeqReader_trim_masked, METH_NOARGS, "" }, - { "short_mode", _wrap_SeqReader_short_mode, METH_NOARGS, "" }, - { "long_mode", _wrap_SeqReader_long_mode, METH_NOARGS, "" }, - { "get_format", _wrap_SeqReader_get_format, METH_NOARGS, "" }, - { "read", _wrap_SeqReader_read, METH_NOARGS, "" }, - { "__iter__", _wrap_SeqReader___iter__, METH_NOARGS, "" }, - { "get_buffer_size", _wrap_SeqReader_get_buffer_size, METH_NOARGS, "" }, - { "get_block_size", _wrap_SeqReader_get_block_size, METH_NOARGS, "" }, - { "__enter__", _wrap_SeqReader___enter__, METH_NOARGS, "" }, - { "__exit__", _wrap_SeqReader___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__SeqReader_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -64393,10 +64412,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqReader", /* tp_name */ + "btllib.SeqReaderRecordIterator", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqReader_destructor_closure,/* tp_dealloc */ + _wrap_delete_SeqReaderRecordIterator_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -64410,36 +64429,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeqReader_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeqReader_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeqReader_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__SeqReader_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::SeqReader", /* tp_doc */ + "btllib::SeqReader::RecordIterator", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - _wrap_SeqReader___iter___getiterfunc_closure, /* tp_iter */ - (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqReader_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__SeqReader_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_SeqReader, /* tp_init */ + SwigPyBuiltin_BadInit, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -64587,16 +64606,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__RecordIterator_type}; -static SwigPyGetSet SeqReaderFlag___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeqReader__Flag_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeqReaderFlag___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__SeqReader__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)) { @@ -64609,11 +64628,12 @@ SwigPyBuiltin__btllib__SeqReader__Flag_richcompare(PyObject *self, PyObject *oth return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Flag_methods[] = { +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Barrier_methods[] = { + { "wait", _wrap_Barrier_wait, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Flag_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -64621,10 +64641,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Flag_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqReaderFlag", /* tp_name */ + "btllib.Barrier", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqReaderFlag_destructor_closure, /* tp_dealloc */ + _wrap_delete_Barrier_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -64638,36 +64658,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Flag_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeqReader__Flag_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeqReader__Flag_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeqReader__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__SeqReader__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::SeqReader::Flag", /* tp_doc */ + "btllib::Barrier", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader__Flag_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Barrier_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqReader__Flag_methods, /* tp_methods */ + SwigPyBuiltin__btllib__Barrier_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqReader__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_SeqReaderFlag, /* tp_init */ + _wrap_new_Barrier, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -64815,26 +64835,16 @@ 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}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__Barrier_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Barrier_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 }, +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__SeqReader__Record_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)) { @@ -64847,12 +64857,15 @@ SwigPyBuiltin__btllib__SeqReader__Record_richcompare(PyObject *self, PyObject *o return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeqReader__Record_methods[] = { - { "__nonzero__", _wrap_SeqReaderRecord___nonzero__, METH_NOARGS, "" }, +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__SeqReader__Record_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -64860,10 +64873,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqReaderRecord", /* tp_name */ + "btllib.SeqWriter", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqReaderRecord_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeqWriter_destructor_closure,/* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -64877,36 +64890,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { (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 */ + &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__SeqReader__Record_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::SeqReader::Record", /* tp_doc */ + "btllib::SeqWriter", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader__Record_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeqWriter_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqReader__Record_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeqWriter_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqReader__Record_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_SeqReaderRecord, /* tp_init */ + _wrap_new_SeqWriter, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -64958,7 +64971,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { (unaryfunc) 0, /* nb_negative */ (unaryfunc) 0, /* nb_positive */ (unaryfunc) 0, /* nb_absolute */ - _wrap_SeqReaderRecord___nonzero___inquiry_closure, /* nb_nonzero */ + (inquiry) 0, /* nb_nonzero */ (unaryfunc) 0, /* nb_invert */ (binaryfunc) 0, /* nb_lshift */ (binaryfunc) 0, /* nb_rshift */ @@ -65054,16 +65067,28 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__Record_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqReader__Record_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqReader__Record_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeqWriter_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeqWriter_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 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__SeqReader__RecordIterator_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)) { @@ -65076,12 +65101,11 @@ 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__Datatype_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -65089,10 +65113,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqReader__RecordIterator_type = PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqReaderRecordIterator", /* tp_name */ + "btllib.Datatype", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqReaderRecordIterator_destructor_closure, /* tp_dealloc */ + _wrap_delete_Datatype_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -65106,36 +65130,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__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__SeqReader__RecordIterator_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::SeqReader::RecordIterator", /* tp_doc */ + "btllib::Datatype", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqReader__RecordIterator_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__Datatype_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__Datatype_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqReader__RecordIterator_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 */ - SwigPyBuiltin_BadInit, /* tp_init */ + _wrap_new_Datatype, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -65283,16 +65307,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__Datatype_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__Datatype_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 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__Barrier_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)) { @@ -65305,12 +65329,11 @@ 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__DataSource_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -65318,10 +65341,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Barrier_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Barrier", /* tp_name */ + "btllib.DataSource", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Barrier_destructor_closure, /* tp_dealloc */ + _wrap_delete_DataSource_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -65335,36 +65358,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__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__Barrier_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::Barrier", /* tp_doc */ + "btllib::DataSource", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Barrier_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__DataSource_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Barrier_methods, /* tp_methods */ + SwigPyBuiltin__btllib__DataSource_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Barrier_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 */ - _wrap_new_Barrier, /* tp_init */ + _wrap_new_DataSource, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -65512,16 +65535,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__DataSource_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSource_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 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__SeqWriter_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)) { @@ -65534,15 +65557,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__DataSink_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -65550,10 +65569,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeqWriter_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeqWriter", /* tp_name */ + "btllib.DataSink", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeqWriter_destructor_closure,/* tp_dealloc */ + _wrap_delete_DataSink_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -65567,36 +65586,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__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__SeqWriter_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::SeqWriter", /* tp_doc */ + "btllib::DataSink", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeqWriter_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__DataSink_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeqWriter_methods, /* tp_methods */ + SwigPyBuiltin__btllib__DataSink_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeqWriter_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_SeqWriter, /* tp_init */ + _wrap_new_DataSink, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -65744,28 +65763,16 @@ 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__DataSink_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__DataSink_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 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__Datatype_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)) { @@ -65778,11 +65785,24 @@ SwigPyBuiltin__btllib__Datatype_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__Datatype_methods[] = { +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__Datatype_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -65790,10 +65810,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__Datatype_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.Datatype", /* tp_name */ + "btllib.NtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_Datatype_destructor_closure, /* tp_dealloc */ + _wrap_delete_NtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -65807,36 +65827,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__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__Datatype_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::Datatype", /* tp_doc */ + "btllib::NtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__Datatype_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__NtHash_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__Datatype_methods, /* tp_methods */ + SwigPyBuiltin__btllib__NtHash_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__Datatype_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_Datatype, /* tp_init */ + _wrap_new_NtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -65984,16 +66004,16 @@ 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__NtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__NtHash_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 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__DataSource_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)) { @@ -66006,11 +66026,24 @@ SwigPyBuiltin__btllib__DataSource_richcompare(PyObject *self, PyObject *other, i return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSource_methods[] = { +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__DataSource_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -66018,10 +66051,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSource_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.DataSource", /* tp_name */ + "btllib.BlindNtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_DataSource_destructor_closure, /* tp_dealloc */ + _wrap_delete_BlindNtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -66035,36 +66068,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__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__DataSource_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::DataSource", /* tp_doc */ + "btllib::BlindNtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__DataSource_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__BlindNtHash_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__DataSource_methods,/* tp_methods */ + SwigPyBuiltin__btllib__BlindNtHash_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__DataSource_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_DataSource, /* tp_init */ + _wrap_new_BlindNtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -66212,16 +66245,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__BlindNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__BlindNtHash_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 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__DataSink_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)) { @@ -66234,11 +66267,24 @@ SwigPyBuiltin__btllib__DataSink_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__DataSink_methods[] = { +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__DataSink_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -66246,10 +66292,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__DataSink_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.DataSink", /* tp_name */ + "btllib.SeedNtHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_DataSink_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeedNtHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -66263,36 +66309,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__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__DataSink_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::DataSink", /* tp_doc */ + "btllib::SeedNtHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__DataSink_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeedNtHash_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__DataSink_methods, /* tp_methods */ + SwigPyBuiltin__btllib__SeedNtHash_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__DataSink_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_DataSink, /* tp_init */ + _wrap_new_SeedNtHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -66440,16 +66486,16 @@ 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__SeedNtHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedNtHash_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 RandSeq___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__RandSeq_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &RandSeq___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__NtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__RandSeq_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -66462,24 +66508,13 @@ 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__RandSeq_methods[] = { + { "set_seed", _wrap_RandSeq_set_seed, METH_O, "" }, + { "generate", _wrap_RandSeq_generate, METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__RandSeq_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -66487,10 +66522,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__NtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.NtHash", /* tp_name */ + "btllib.RandSeq", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_NtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_RandSeq_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -66504,36 +66539,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__RandSeq_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__RandSeq_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__RandSeq_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__RandSeq_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::RandSeq", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__NtHash_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__RandSeq_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__NtHash_methods, /* tp_methods */ + SwigPyBuiltin__btllib__RandSeq_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__NtHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__RandSeq_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_RandSeq, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -66681,16 +66716,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__RandSeq_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__RandSeq_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 AAHash___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__AAHash_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &AAHash___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__BlindNtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__AAHash_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -66703,24 +66738,20 @@ 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__AAHash_methods[] = { + { "roll", _wrap_AAHash_roll, METH_NOARGS, "" }, + { "hashes", _wrap_AAHash_hashes, METH_NOARGS, "" }, + { "get_pos", _wrap_AAHash_get_pos, METH_NOARGS, "" }, + { "get_hash_num", _wrap_AAHash_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_AAHash_get_k, METH_NOARGS, "" }, + { "forward", _wrap_AAHash_forward, METH_NOARGS, "" }, + { "get_forward_hash", _wrap_AAHash_get_forward_hash, METH_NOARGS, "" }, + { "get_level", _wrap_AAHash_get_level, METH_NOARGS, "" }, + { "get_seq", _wrap_AAHash_get_seq, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__AAHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -66728,10 +66759,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__BlindNtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.BlindNtHash", /* tp_name */ + "btllib.AAHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_BlindNtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_AAHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -66745,36 +66776,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__AAHash_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__AAHash_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__AAHash_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__AAHash_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::AAHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__BlindNtHash_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__AAHash_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__BlindNtHash_methods, /* tp_methods */ + SwigPyBuiltin__btllib__AAHash_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__BlindNtHash_getset,/* tp_getset */ + SwigPyBuiltin__btllib__AAHash_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_AAHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -66922,16 +66953,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__AAHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__AAHash_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 SeedAAHash___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedAAHash_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedAAHash___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeedNtHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__SeedAAHash_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -66944,24 +66975,17 @@ 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__SeedAAHash_methods[] = { + { "roll", _wrap_SeedAAHash_roll, METH_NOARGS, "" }, + { "hashes", _wrap_SeedAAHash_hashes, METH_NOARGS, "" }, + { "get_pos", _wrap_SeedAAHash_get_pos, METH_NOARGS, "" }, + { "get_hash_num", _wrap_SeedAAHash_get_hash_num, METH_NOARGS, "" }, + { "get_hash_num_per_seed", _wrap_SeedAAHash_get_hash_num_per_seed, METH_NOARGS, "" }, + { "get_k", _wrap_SeedAAHash_get_k, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__SeedAAHash_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -66969,10 +66993,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedNtHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeedNtHash", /* tp_name */ + "btllib.SeedAAHash", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeedNtHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_SeedAAHash_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -66986,36 +67010,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__SeedAAHash_type.as_number, /* tp_as_number */ + &SwigPyBuiltin__btllib__SeedAAHash_type.as_sequence, /* tp_as_sequence */ + &SwigPyBuiltin__btllib__SeedAAHash_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__SeedAAHash_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::SeedAAHash", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeedNtHash_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__SeedAAHash_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeedNtHash_methods,/* tp_methods */ + SwigPyBuiltin__btllib__SeedAAHash_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeedNtHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__SeedAAHash_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_SeedAAHash, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -67163,16 +67187,16 @@ 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__SeedAAHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedAAHash_type}; -static SwigPyGetSet RandSeq___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__RandSeq_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &RandSeq___dict___getset }, +static SwigPyGetSet CountingBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter8___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__RandSeq_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -67185,13 +67209,27 @@ SwigPyBuiltin__btllib__RandSeq_richcompare(PyObject *self, PyObject *other, int return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__RandSeq_methods[] = { - { "set_seed", _wrap_RandSeq_set_seed, METH_O, "" }, - { "generate", _wrap_RandSeq_generate, METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_methods[] = { + { "insert", _wrap_CountingBloomFilter8_insert, METH_VARARGS, "" }, + { "remove", _wrap_CountingBloomFilter8_remove, METH_VARARGS, "" }, + { "clear", _wrap_CountingBloomFilter8_clear, METH_VARARGS, "" }, + { "contains", _wrap_CountingBloomFilter8_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_CountingBloomFilter8_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_CountingBloomFilter8_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_CountingBloomFilter8_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_CountingBloomFilter8_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_CountingBloomFilter8_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_CountingBloomFilter8_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_CountingBloomFilter8_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_CountingBloomFilter8_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_CountingBloomFilter8_get_fpr, METH_VARARGS, "" }, + { "get_hash_fn", _wrap_CountingBloomFilter8_get_hash_fn, METH_NOARGS, "" }, + { "save", _wrap_CountingBloomFilter8_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter8_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__RandSeq_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -67199,10 +67237,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandSeq_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.RandSeq", /* tp_name */ + "btllib.CountingBloomFilter8", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_RandSeq_destructor_closure, /* tp_dealloc */ + _wrap_delete_CountingBloomFilter8_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -67216,36 +67254,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandSeq_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__RandSeq_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__RandSeq_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__RandSeq_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_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__btllib__RandSeq_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_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 - "btllib::RandSeq", /* tp_doc */ + "btllib::CountingBloomFilter< uint8_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__RandSeq_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__RandSeq_methods, /* tp_methods */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__RandSeq_getset, /* tp_getset */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_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_RandSeq, /* tp_init */ + _wrap_new_CountingBloomFilter8, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -67393,16 +67431,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__RandSeq_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__RandSeq_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__RandSeq_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type}; -static SwigPyGetSet AAHash___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__AAHash_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &AAHash___dict___getset }, +static SwigPyGetSet CountingBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter16___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__AAHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -67415,19 +67453,27 @@ SwigPyBuiltin__btllib__AAHash_richcompare(PyObject *self, PyObject *other, int o return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__AAHash_methods[] = { - { "roll", _wrap_AAHash_roll, METH_NOARGS, "" }, - { "hashes", _wrap_AAHash_hashes, METH_NOARGS, "" }, - { "get_pos", _wrap_AAHash_get_pos, METH_NOARGS, "" }, - { "get_hash_num", _wrap_AAHash_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_AAHash_get_k, METH_NOARGS, "" }, - { "get_forward_hash", _wrap_AAHash_get_forward_hash, METH_NOARGS, "" }, - { "get_level", _wrap_AAHash_get_level, METH_NOARGS, "" }, - { "get_seq", _wrap_AAHash_get_seq, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_methods[] = { + { "insert", _wrap_CountingBloomFilter16_insert, METH_VARARGS, "" }, + { "remove", _wrap_CountingBloomFilter16_remove, METH_VARARGS, "" }, + { "clear", _wrap_CountingBloomFilter16_clear, METH_VARARGS, "" }, + { "contains", _wrap_CountingBloomFilter16_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_CountingBloomFilter16_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_CountingBloomFilter16_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_CountingBloomFilter16_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_CountingBloomFilter16_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_CountingBloomFilter16_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_CountingBloomFilter16_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_CountingBloomFilter16_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_CountingBloomFilter16_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_CountingBloomFilter16_get_fpr, METH_VARARGS, "" }, + { "get_hash_fn", _wrap_CountingBloomFilter16_get_hash_fn, METH_NOARGS, "" }, + { "save", _wrap_CountingBloomFilter16_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter16_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__AAHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -67435,10 +67481,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__AAHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.AAHash", /* tp_name */ + "btllib.CountingBloomFilter16", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_AAHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_CountingBloomFilter16_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -67452,36 +67498,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__AAHash_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__AAHash_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__AAHash_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__AAHash_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_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__btllib__AAHash_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_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 - "btllib::AAHash", /* tp_doc */ + "btllib::CountingBloomFilter< uint16_t >",/* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__AAHash_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__AAHash_methods, /* tp_methods */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__AAHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_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_AAHash, /* tp_init */ + _wrap_new_CountingBloomFilter16, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -67629,16 +67675,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__AAHash_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__AAHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__AAHash_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type}; -static SwigPyGetSet SeedAAHash___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__SeedAAHash_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &SeedAAHash___dict___getset }, +static SwigPyGetSet CountingBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter32___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__SeedAAHash_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -67651,17 +67697,27 @@ SwigPyBuiltin__btllib__SeedAAHash_richcompare(PyObject *self, PyObject *other, i return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__SeedAAHash_methods[] = { - { "roll", _wrap_SeedAAHash_roll, METH_NOARGS, "" }, - { "hashes", _wrap_SeedAAHash_hashes, METH_NOARGS, "" }, - { "get_pos", _wrap_SeedAAHash_get_pos, METH_NOARGS, "" }, - { "get_hash_num", _wrap_SeedAAHash_get_hash_num, METH_NOARGS, "" }, - { "get_hash_num_per_seed", _wrap_SeedAAHash_get_hash_num_per_seed, METH_NOARGS, "" }, - { "get_k", _wrap_SeedAAHash_get_k, METH_NOARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_methods[] = { + { "insert", _wrap_CountingBloomFilter32_insert, METH_VARARGS, "" }, + { "remove", _wrap_CountingBloomFilter32_remove, METH_VARARGS, "" }, + { "clear", _wrap_CountingBloomFilter32_clear, METH_VARARGS, "" }, + { "contains", _wrap_CountingBloomFilter32_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_CountingBloomFilter32_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_CountingBloomFilter32_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_CountingBloomFilter32_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_CountingBloomFilter32_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_CountingBloomFilter32_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_CountingBloomFilter32_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_CountingBloomFilter32_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_CountingBloomFilter32_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_CountingBloomFilter32_get_fpr, METH_VARARGS, "" }, + { "get_hash_fn", _wrap_CountingBloomFilter32_get_hash_fn, METH_NOARGS, "" }, + { "save", _wrap_CountingBloomFilter32_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter32_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__SeedAAHash_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -67669,10 +67725,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedAAHash_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.SeedAAHash", /* tp_name */ + "btllib.CountingBloomFilter32", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_SeedAAHash_destructor_closure, /* tp_dealloc */ + _wrap_delete_CountingBloomFilter32_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -67686,36 +67742,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedAAHash_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__SeedAAHash_type.as_number, /* tp_as_number */ - &SwigPyBuiltin__btllib__SeedAAHash_type.as_sequence, /* tp_as_sequence */ - &SwigPyBuiltin__btllib__SeedAAHash_type.as_mapping, /* tp_as_mapping */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_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__btllib__SeedAAHash_type.as_buffer, /* tp_as_buffer */ + &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_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 - "btllib::SeedAAHash", /* tp_doc */ + "btllib::CountingBloomFilter< uint32_t >",/* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__SeedAAHash_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__SeedAAHash_methods,/* tp_methods */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__SeedAAHash_getset, /* tp_getset */ + SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_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_SeedAAHash, /* tp_init */ + _wrap_new_CountingBloomFilter32, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -67863,16 +67919,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__SeedAAHash_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__SeedAAHash_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__SeedAAHash_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type}; -static SwigPyGetSet CountingBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter8___dict___getset }, +static SwigPyGetSet KmerCountingBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter8___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -67885,27 +67941,29 @@ SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_richcompare(PyObject *self return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_methods[] = { - { "insert", _wrap_CountingBloomFilter8_insert, METH_VARARGS, "" }, - { "remove", _wrap_CountingBloomFilter8_remove, METH_VARARGS, "" }, - { "clear", _wrap_CountingBloomFilter8_clear, METH_VARARGS, "" }, - { "contains", _wrap_CountingBloomFilter8_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_CountingBloomFilter8_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_CountingBloomFilter8_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_CountingBloomFilter8_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_CountingBloomFilter8_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_CountingBloomFilter8_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_CountingBloomFilter8_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_CountingBloomFilter8_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_CountingBloomFilter8_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_CountingBloomFilter8_get_fpr, METH_VARARGS, "" }, - { "get_hash_fn", _wrap_CountingBloomFilter8_get_hash_fn, METH_NOARGS, "" }, - { "save", _wrap_CountingBloomFilter8_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter8_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_methods[] = { + { "insert", _wrap_KmerCountingBloomFilter8_insert, METH_VARARGS, "" }, + { "remove", _wrap_KmerCountingBloomFilter8_remove, METH_VARARGS, "" }, + { "clear", _wrap_KmerCountingBloomFilter8_clear, METH_VARARGS, "" }, + { "contains", _wrap_KmerCountingBloomFilter8_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_KmerCountingBloomFilter8_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_KmerCountingBloomFilter8_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_KmerCountingBloomFilter8_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_KmerCountingBloomFilter8_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_KmerCountingBloomFilter8_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_KmerCountingBloomFilter8_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_KmerCountingBloomFilter8_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_KmerCountingBloomFilter8_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_KmerCountingBloomFilter8_get_fpr, METH_VARARGS, "" }, + { "get_k", _wrap_KmerCountingBloomFilter8_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_KmerCountingBloomFilter8_get_hash_fn, METH_NOARGS, "" }, + { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter8_get_counting_bloom_filter, METH_NOARGS, "" }, + { "save", _wrap_KmerCountingBloomFilter8_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter8_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -67913,10 +67971,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_ty PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.CountingBloomFilter8", /* tp_name */ + "btllib.KmerCountingBloomFilter8", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_CountingBloomFilter8_destructor_closure, /* tp_dealloc */ + _wrap_delete_KmerCountingBloomFilter8_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -67930,36 +67988,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_ty (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_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__btllib__CountingBloomFilterT_uint8_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_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 - "btllib::CountingBloomFilter< uint8_t >", /* tp_doc */ + "btllib::KmerCountingBloomFilter< uint8_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_getset, /* tp_getset */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_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_CountingBloomFilter8, /* tp_init */ + _wrap_new_KmerCountingBloomFilter8, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -68107,16 +68165,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_ty #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint8_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type}; -static SwigPyGetSet CountingBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter16___dict___getset }, +static SwigPyGetSet KmerCountingBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter16___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -68129,27 +68187,29 @@ SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_richcompare(PyObject *sel return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_methods[] = { - { "insert", _wrap_CountingBloomFilter16_insert, METH_VARARGS, "" }, - { "remove", _wrap_CountingBloomFilter16_remove, METH_VARARGS, "" }, - { "clear", _wrap_CountingBloomFilter16_clear, METH_VARARGS, "" }, - { "contains", _wrap_CountingBloomFilter16_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_CountingBloomFilter16_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_CountingBloomFilter16_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_CountingBloomFilter16_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_CountingBloomFilter16_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_CountingBloomFilter16_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_CountingBloomFilter16_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_CountingBloomFilter16_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_CountingBloomFilter16_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_CountingBloomFilter16_get_fpr, METH_VARARGS, "" }, - { "get_hash_fn", _wrap_CountingBloomFilter16_get_hash_fn, METH_NOARGS, "" }, - { "save", _wrap_CountingBloomFilter16_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter16_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_methods[] = { + { "insert", _wrap_KmerCountingBloomFilter16_insert, METH_VARARGS, "" }, + { "remove", _wrap_KmerCountingBloomFilter16_remove, METH_VARARGS, "" }, + { "clear", _wrap_KmerCountingBloomFilter16_clear, METH_VARARGS, "" }, + { "contains", _wrap_KmerCountingBloomFilter16_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_KmerCountingBloomFilter16_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_KmerCountingBloomFilter16_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_KmerCountingBloomFilter16_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_KmerCountingBloomFilter16_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_KmerCountingBloomFilter16_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_KmerCountingBloomFilter16_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_KmerCountingBloomFilter16_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_KmerCountingBloomFilter16_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_KmerCountingBloomFilter16_get_fpr, METH_VARARGS, "" }, + { "get_k", _wrap_KmerCountingBloomFilter16_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_KmerCountingBloomFilter16_get_hash_fn, METH_NOARGS, "" }, + { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter16_get_counting_bloom_filter, METH_NOARGS, "" }, + { "save", _wrap_KmerCountingBloomFilter16_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter16_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -68157,10 +68217,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_t PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.CountingBloomFilter16", /* tp_name */ + "btllib.KmerCountingBloomFilter16", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_CountingBloomFilter16_destructor_closure, /* tp_dealloc */ + _wrap_delete_KmerCountingBloomFilter16_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -68174,36 +68234,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_t (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_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__btllib__CountingBloomFilterT_uint16_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_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 - "btllib::CountingBloomFilter< uint16_t >",/* tp_doc */ + "btllib::KmerCountingBloomFilter< uint16_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_getset,/* tp_getset */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_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_CountingBloomFilter16, /* tp_init */ + _wrap_new_KmerCountingBloomFilter16, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -68351,16 +68411,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_t #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint16_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type}; -static SwigPyGetSet CountingBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &CountingBloomFilter32___dict___getset }, +static SwigPyGetSet KmerCountingBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter32___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -68373,27 +68433,29 @@ SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_richcompare(PyObject *sel return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_methods[] = { - { "insert", _wrap_CountingBloomFilter32_insert, METH_VARARGS, "" }, - { "remove", _wrap_CountingBloomFilter32_remove, METH_VARARGS, "" }, - { "clear", _wrap_CountingBloomFilter32_clear, METH_VARARGS, "" }, - { "contains", _wrap_CountingBloomFilter32_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_CountingBloomFilter32_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_CountingBloomFilter32_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_CountingBloomFilter32_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_CountingBloomFilter32_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_CountingBloomFilter32_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_CountingBloomFilter32_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_CountingBloomFilter32_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_CountingBloomFilter32_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_CountingBloomFilter32_get_fpr, METH_VARARGS, "" }, - { "get_hash_fn", _wrap_CountingBloomFilter32_get_hash_fn, METH_NOARGS, "" }, - { "save", _wrap_CountingBloomFilter32_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_CountingBloomFilter32_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_methods[] = { + { "insert", _wrap_KmerCountingBloomFilter32_insert, METH_VARARGS, "" }, + { "remove", _wrap_KmerCountingBloomFilter32_remove, METH_VARARGS, "" }, + { "clear", _wrap_KmerCountingBloomFilter32_clear, METH_VARARGS, "" }, + { "contains", _wrap_KmerCountingBloomFilter32_contains, METH_VARARGS, "" }, + { "contains_insert", _wrap_KmerCountingBloomFilter32_contains_insert, METH_VARARGS, "" }, + { "insert_contains", _wrap_KmerCountingBloomFilter32_insert_contains, METH_VARARGS, "" }, + { "insert_thresh_contains", _wrap_KmerCountingBloomFilter32_insert_thresh_contains, METH_VARARGS, "" }, + { "contains_insert_thresh", _wrap_KmerCountingBloomFilter32_contains_insert_thresh, METH_VARARGS, "" }, + { "get_bytes", _wrap_KmerCountingBloomFilter32_get_bytes, METH_NOARGS, "" }, + { "get_pop_cnt", _wrap_KmerCountingBloomFilter32_get_pop_cnt, METH_VARARGS, "" }, + { "get_occupancy", _wrap_KmerCountingBloomFilter32_get_occupancy, METH_VARARGS, "" }, + { "get_hash_num", _wrap_KmerCountingBloomFilter32_get_hash_num, METH_NOARGS, "" }, + { "get_fpr", _wrap_KmerCountingBloomFilter32_get_fpr, METH_VARARGS, "" }, + { "get_k", _wrap_KmerCountingBloomFilter32_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_KmerCountingBloomFilter32_get_hash_fn, METH_NOARGS, "" }, + { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter32_get_counting_bloom_filter, METH_NOARGS, "" }, + { "save", _wrap_KmerCountingBloomFilter32_save, METH_O, "" }, + { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter32_is_bloom_file, METH_STATIC|METH_O, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -68401,10 +68463,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_t PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.CountingBloomFilter32", /* tp_name */ + "btllib.KmerCountingBloomFilter32", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_CountingBloomFilter32_destructor_closure, /* tp_dealloc */ + _wrap_delete_KmerCountingBloomFilter32_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -68418,36 +68480,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_t (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_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__btllib__CountingBloomFilterT_uint32_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_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 - "btllib::CountingBloomFilter< uint32_t >",/* tp_doc */ + "btllib::KmerCountingBloomFilter< uint32_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_getset,/* tp_getset */ + SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_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_CountingBloomFilter32, /* tp_init */ + _wrap_new_KmerCountingBloomFilter32, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -68595,16 +68657,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_t #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__CountingBloomFilterT_uint32_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type}; -static SwigPyGetSet KmerCountingBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter8___dict___getset }, +static SwigPyGetSet MIBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter8___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -68617,29 +68679,26 @@ SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_richcompare(PyObject * return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_methods[] = { - { "insert", _wrap_KmerCountingBloomFilter8_insert, METH_VARARGS, "" }, - { "remove", _wrap_KmerCountingBloomFilter8_remove, METH_VARARGS, "" }, - { "clear", _wrap_KmerCountingBloomFilter8_clear, METH_VARARGS, "" }, - { "contains", _wrap_KmerCountingBloomFilter8_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_KmerCountingBloomFilter8_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_KmerCountingBloomFilter8_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_KmerCountingBloomFilter8_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_KmerCountingBloomFilter8_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_KmerCountingBloomFilter8_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_KmerCountingBloomFilter8_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_KmerCountingBloomFilter8_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_KmerCountingBloomFilter8_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_KmerCountingBloomFilter8_get_fpr, METH_VARARGS, "" }, - { "get_k", _wrap_KmerCountingBloomFilter8_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_KmerCountingBloomFilter8_get_hash_fn, METH_NOARGS, "" }, - { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter8_get_counting_bloom_filter, METH_NOARGS, "" }, - { "save", _wrap_KmerCountingBloomFilter8_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter8_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_methods[] = { + { "complete_bv_insertion", _wrap_MIBloomFilter8_complete_bv_insertion, METH_NOARGS, "" }, + { "complete_id_insertion", _wrap_MIBloomFilter8_complete_id_insertion, METH_NOARGS, "" }, + { "insert_bv", _wrap_MIBloomFilter8_insert_bv, METH_VARARGS, "" }, + { "bv_contains", _wrap_MIBloomFilter8_bv_contains, METH_VARARGS, "" }, + { "insert_id", _wrap_MIBloomFilter8_insert_id, METH_VARARGS, "" }, + { "get_id", _wrap_MIBloomFilter8_get_id, METH_VARARGS, "" }, + { "insert_saturation", _wrap_MIBloomFilter8_insert_saturation, METH_VARARGS, "" }, + { "save", _wrap_MIBloomFilter8_save, METH_O, "" }, + { "get_pop_cnt", _wrap_MIBloomFilter8_get_pop_cnt, METH_NOARGS, "" }, + { "get_pop_saturated_cnt", _wrap_MIBloomFilter8_get_pop_saturated_cnt, METH_NOARGS, "" }, + { "get_hash_num", _wrap_MIBloomFilter8_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_MIBloomFilter8_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_MIBloomFilter8_get_hash_fn, METH_NOARGS, "" }, + { "get_id_occurence_count", _wrap_MIBloomFilter8_get_id_occurence_count, METH_O, "" }, + { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter8_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -68647,10 +68706,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_ PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.KmerCountingBloomFilter8", /* tp_name */ + "btllib.MIBloomFilter8", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_KmerCountingBloomFilter8_destructor_closure, /* tp_dealloc */ + _wrap_delete_MIBloomFilter8_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -68664,36 +68723,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_ (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_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__btllib__KmerCountingBloomFilterT_uint8_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_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 - "btllib::KmerCountingBloomFilter< uint8_t >", /* tp_doc */ + "btllib::MIBloomFilter< uint8_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_getset,/* tp_getset */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_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_KmerCountingBloomFilter8, /* tp_init */ + _wrap_new_MIBloomFilter8, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -68841,16 +68900,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_ #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type}; -static SwigPyGetSet KmerCountingBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter16___dict___getset }, +static SwigPyGetSet MIBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter16___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -68863,29 +68922,26 @@ SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_richcompare(PyObject return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_methods[] = { - { "insert", _wrap_KmerCountingBloomFilter16_insert, METH_VARARGS, "" }, - { "remove", _wrap_KmerCountingBloomFilter16_remove, METH_VARARGS, "" }, - { "clear", _wrap_KmerCountingBloomFilter16_clear, METH_VARARGS, "" }, - { "contains", _wrap_KmerCountingBloomFilter16_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_KmerCountingBloomFilter16_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_KmerCountingBloomFilter16_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_KmerCountingBloomFilter16_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_KmerCountingBloomFilter16_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_KmerCountingBloomFilter16_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_KmerCountingBloomFilter16_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_KmerCountingBloomFilter16_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_KmerCountingBloomFilter16_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_KmerCountingBloomFilter16_get_fpr, METH_VARARGS, "" }, - { "get_k", _wrap_KmerCountingBloomFilter16_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_KmerCountingBloomFilter16_get_hash_fn, METH_NOARGS, "" }, - { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter16_get_counting_bloom_filter, METH_NOARGS, "" }, - { "save", _wrap_KmerCountingBloomFilter16_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter16_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_methods[] = { + { "complete_bv_insertion", _wrap_MIBloomFilter16_complete_bv_insertion, METH_NOARGS, "" }, + { "complete_id_insertion", _wrap_MIBloomFilter16_complete_id_insertion, METH_NOARGS, "" }, + { "insert_bv", _wrap_MIBloomFilter16_insert_bv, METH_VARARGS, "" }, + { "bv_contains", _wrap_MIBloomFilter16_bv_contains, METH_VARARGS, "" }, + { "insert_id", _wrap_MIBloomFilter16_insert_id, METH_VARARGS, "" }, + { "get_id", _wrap_MIBloomFilter16_get_id, METH_VARARGS, "" }, + { "insert_saturation", _wrap_MIBloomFilter16_insert_saturation, METH_VARARGS, "" }, + { "save", _wrap_MIBloomFilter16_save, METH_O, "" }, + { "get_pop_cnt", _wrap_MIBloomFilter16_get_pop_cnt, METH_NOARGS, "" }, + { "get_pop_saturated_cnt", _wrap_MIBloomFilter16_get_pop_saturated_cnt, METH_NOARGS, "" }, + { "get_hash_num", _wrap_MIBloomFilter16_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_MIBloomFilter16_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_MIBloomFilter16_get_hash_fn, METH_NOARGS, "" }, + { "get_id_occurence_count", _wrap_MIBloomFilter16_get_id_occurence_count, METH_O, "" }, + { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter16_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -68893,10 +68949,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.KmerCountingBloomFilter16", /* tp_name */ + "btllib.MIBloomFilter16", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_KmerCountingBloomFilter16_destructor_closure, /* tp_dealloc */ + _wrap_delete_MIBloomFilter16_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -68910,36 +68966,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_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__btllib__KmerCountingBloomFilterT_uint16_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_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 - "btllib::KmerCountingBloomFilter< uint16_t >", /* tp_doc */ + "btllib::MIBloomFilter< uint16_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_getset,/* tp_getset */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_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_KmerCountingBloomFilter16, /* tp_init */ + _wrap_new_MIBloomFilter16, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -69087,16 +69143,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint16_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type}; -static SwigPyGetSet KmerCountingBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &KmerCountingBloomFilter32___dict___getset }, +static SwigPyGetSet MIBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter32___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -69109,29 +69165,26 @@ SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_richcompare(PyObject return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_methods[] = { - { "insert", _wrap_KmerCountingBloomFilter32_insert, METH_VARARGS, "" }, - { "remove", _wrap_KmerCountingBloomFilter32_remove, METH_VARARGS, "" }, - { "clear", _wrap_KmerCountingBloomFilter32_clear, METH_VARARGS, "" }, - { "contains", _wrap_KmerCountingBloomFilter32_contains, METH_VARARGS, "" }, - { "contains_insert", _wrap_KmerCountingBloomFilter32_contains_insert, METH_VARARGS, "" }, - { "insert_contains", _wrap_KmerCountingBloomFilter32_insert_contains, METH_VARARGS, "" }, - { "insert_thresh_contains", _wrap_KmerCountingBloomFilter32_insert_thresh_contains, METH_VARARGS, "" }, - { "contains_insert_thresh", _wrap_KmerCountingBloomFilter32_contains_insert_thresh, METH_VARARGS, "" }, - { "get_bytes", _wrap_KmerCountingBloomFilter32_get_bytes, METH_NOARGS, "" }, - { "get_pop_cnt", _wrap_KmerCountingBloomFilter32_get_pop_cnt, METH_VARARGS, "" }, - { "get_occupancy", _wrap_KmerCountingBloomFilter32_get_occupancy, METH_VARARGS, "" }, - { "get_hash_num", _wrap_KmerCountingBloomFilter32_get_hash_num, METH_NOARGS, "" }, - { "get_fpr", _wrap_KmerCountingBloomFilter32_get_fpr, METH_VARARGS, "" }, - { "get_k", _wrap_KmerCountingBloomFilter32_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_KmerCountingBloomFilter32_get_hash_fn, METH_NOARGS, "" }, - { "get_counting_bloom_filter", _wrap_KmerCountingBloomFilter32_get_counting_bloom_filter, METH_NOARGS, "" }, - { "save", _wrap_KmerCountingBloomFilter32_save, METH_O, "" }, - { "is_bloom_file", (PyCFunction)(void(*)(void))_wrap_KmerCountingBloomFilter32_is_bloom_file, METH_STATIC|METH_O, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_methods[] = { + { "complete_bv_insertion", _wrap_MIBloomFilter32_complete_bv_insertion, METH_NOARGS, "" }, + { "complete_id_insertion", _wrap_MIBloomFilter32_complete_id_insertion, METH_NOARGS, "" }, + { "insert_bv", _wrap_MIBloomFilter32_insert_bv, METH_VARARGS, "" }, + { "bv_contains", _wrap_MIBloomFilter32_bv_contains, METH_VARARGS, "" }, + { "insert_id", _wrap_MIBloomFilter32_insert_id, METH_VARARGS, "" }, + { "get_id", _wrap_MIBloomFilter32_get_id, METH_VARARGS, "" }, + { "insert_saturation", _wrap_MIBloomFilter32_insert_saturation, METH_VARARGS, "" }, + { "save", _wrap_MIBloomFilter32_save, METH_O, "" }, + { "get_pop_cnt", _wrap_MIBloomFilter32_get_pop_cnt, METH_NOARGS, "" }, + { "get_pop_saturated_cnt", _wrap_MIBloomFilter32_get_pop_saturated_cnt, METH_NOARGS, "" }, + { "get_hash_num", _wrap_MIBloomFilter32_get_hash_num, METH_NOARGS, "" }, + { "get_k", _wrap_MIBloomFilter32_get_k, METH_NOARGS, "" }, + { "get_hash_fn", _wrap_MIBloomFilter32_get_hash_fn, METH_NOARGS, "" }, + { "get_id_occurence_count", _wrap_MIBloomFilter32_get_id_occurence_count, METH_O, "" }, + { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter32_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -69139,10 +69192,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.KmerCountingBloomFilter32", /* tp_name */ + "btllib.MIBloomFilter32", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_KmerCountingBloomFilter32_destructor_closure, /* tp_dealloc */ + _wrap_delete_MIBloomFilter32_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -69156,36 +69209,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_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__btllib__KmerCountingBloomFilterT_uint32_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_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 - "btllib::KmerCountingBloomFilter< uint32_t >", /* tp_doc */ + "btllib::MIBloomFilter< uint32_t >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_richcompare,/* tp_richcompare */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_methods,/* tp_methods */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_getset,/* tp_getset */ + SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_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_KmerCountingBloomFilter32, /* tp_init */ + _wrap_new_MIBloomFilter32, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -69333,16 +69386,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type}; -static SwigPyGetSet MIBloomFilter8___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter8___dict___getset }, +static SwigPyGetSet Indexlr___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &Indexlr___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -69355,26 +69408,24 @@ SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_richcompare(PyObject *self, PyOb return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_methods[] = { - { "complete_bv_insertion", _wrap_MIBloomFilter8_complete_bv_insertion, METH_NOARGS, "" }, - { "complete_id_insertion", _wrap_MIBloomFilter8_complete_id_insertion, METH_NOARGS, "" }, - { "insert_bv", _wrap_MIBloomFilter8_insert_bv, METH_VARARGS, "" }, - { "bv_contains", _wrap_MIBloomFilter8_bv_contains, METH_VARARGS, "" }, - { "insert_id", _wrap_MIBloomFilter8_insert_id, METH_VARARGS, "" }, - { "get_id", _wrap_MIBloomFilter8_get_id, METH_VARARGS, "" }, - { "insert_saturation", _wrap_MIBloomFilter8_insert_saturation, METH_VARARGS, "" }, - { "save", _wrap_MIBloomFilter8_save, METH_O, "" }, - { "get_pop_cnt", _wrap_MIBloomFilter8_get_pop_cnt, METH_NOARGS, "" }, - { "get_pop_saturated_cnt", _wrap_MIBloomFilter8_get_pop_saturated_cnt, METH_NOARGS, "" }, - { "get_hash_num", _wrap_MIBloomFilter8_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_MIBloomFilter8_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_MIBloomFilter8_get_hash_fn, METH_NOARGS, "" }, - { "get_id_occurence_count", _wrap_MIBloomFilter8_get_id_occurence_count, METH_O, "" }, - { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter8_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_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__btllib__MIBloomFilterT_uint8_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -69382,10 +69433,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type = { PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.MIBloomFilter8", /* tp_name */ + "btllib.Indexlr", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_MIBloomFilter8_destructor_closure, /* tp_dealloc */ + _wrap_delete_Indexlr_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -69399,36 +69450,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type = { (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_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__btllib__MIBloomFilterT_uint8_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_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 - "btllib::MIBloomFilter< uint8_t >", /* tp_doc */ + "btllib::Indexlr< btllib::NtHash >", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_richcompare, /* tp_richcompare */ 0, /* tp_weaklistoffset */ - (getiterfunc) 0, /* tp_iter */ + _wrap_Indexlr___iter___getiterfunc_closure, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_methods, /* tp_methods */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_methods, /* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_getset, /* tp_getset */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_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_MIBloomFilter8, /* tp_init */ + _wrap_new_Indexlr, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -69576,16 +69627,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type = { #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_type}; -static SwigPyGetSet MIBloomFilter16___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter16___dict___getset }, +static SwigPyGetSet IndexlrFlag___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrFlag___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -69598,26 +69649,11 @@ SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_richcompare(PyObject *self, PyO return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_methods[] = { - { "complete_bv_insertion", _wrap_MIBloomFilter16_complete_bv_insertion, METH_NOARGS, "" }, - { "complete_id_insertion", _wrap_MIBloomFilter16_complete_id_insertion, METH_NOARGS, "" }, - { "insert_bv", _wrap_MIBloomFilter16_insert_bv, METH_VARARGS, "" }, - { "bv_contains", _wrap_MIBloomFilter16_bv_contains, METH_VARARGS, "" }, - { "insert_id", _wrap_MIBloomFilter16_insert_id, METH_VARARGS, "" }, - { "get_id", _wrap_MIBloomFilter16_get_id, METH_VARARGS, "" }, - { "insert_saturation", _wrap_MIBloomFilter16_insert_saturation, METH_VARARGS, "" }, - { "save", _wrap_MIBloomFilter16_save, METH_O, "" }, - { "get_pop_cnt", _wrap_MIBloomFilter16_get_pop_cnt, METH_NOARGS, "" }, - { "get_pop_saturated_cnt", _wrap_MIBloomFilter16_get_pop_saturated_cnt, METH_NOARGS, "" }, - { "get_hash_num", _wrap_MIBloomFilter16_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_MIBloomFilter16_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_MIBloomFilter16_get_hash_fn, METH_NOARGS, "" }, - { "get_id_occurence_count", _wrap_MIBloomFilter16_get_id_occurence_count, METH_O, "" }, - { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter16_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_methods[] = { { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -69625,10 +69661,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type = PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.MIBloomFilter16", /* tp_name */ + "btllib.IndexlrFlag", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_MIBloomFilter16_destructor_closure, /* tp_dealloc */ + _wrap_delete_IndexlrFlag_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -69642,36 +69678,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type = (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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__MIBloomFilterT_uint16_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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::MIBloomFilter< uint16_t >", /* tp_doc */ + "btllib::Indexlr< btllib::NtHash >::Flag",/* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_methods, /* tp_methods */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_getset, /* tp_getset */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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_MIBloomFilter16, /* tp_init */ + _wrap_new_IndexlrFlag, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -69819,16 +69855,16 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type = #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_type}; -static SwigPyGetSet MIBloomFilter32___dict___getset = { SwigPyObject_get___dict__, 0 }; -SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_getset[] = { - { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &MIBloomFilter32___dict___getset }, +static SwigPyGetSet IndexlrRecordIterator___dict___getset = { SwigPyObject_get___dict__, 0 }; +SWIGINTERN PyGetSetDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_getset[] = { + { (char *)"__dict__", SwigPyBuiltin_FunpackGetterClosure, 0, (char *)"", &IndexlrRecordIterator___dict___getset }, { NULL, NULL, NULL, NULL, NULL } /* Sentinel */ }; SWIGINTERN PyObject * -SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyObject *other, int op) { +SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_richcompare(PyObject *self, PyObject *other, int op) { PyObject *result = NULL; if (!result) { if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) { @@ -69841,26 +69877,12 @@ SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_richcompare(PyObject *self, PyO return result; } -SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_methods[] = { - { "complete_bv_insertion", _wrap_MIBloomFilter32_complete_bv_insertion, METH_NOARGS, "" }, - { "complete_id_insertion", _wrap_MIBloomFilter32_complete_id_insertion, METH_NOARGS, "" }, - { "insert_bv", _wrap_MIBloomFilter32_insert_bv, METH_VARARGS, "" }, - { "bv_contains", _wrap_MIBloomFilter32_bv_contains, METH_VARARGS, "" }, - { "insert_id", _wrap_MIBloomFilter32_insert_id, METH_VARARGS, "" }, - { "get_id", _wrap_MIBloomFilter32_get_id, METH_VARARGS, "" }, - { "insert_saturation", _wrap_MIBloomFilter32_insert_saturation, METH_VARARGS, "" }, - { "save", _wrap_MIBloomFilter32_save, METH_O, "" }, - { "get_pop_cnt", _wrap_MIBloomFilter32_get_pop_cnt, METH_NOARGS, "" }, - { "get_pop_saturated_cnt", _wrap_MIBloomFilter32_get_pop_saturated_cnt, METH_NOARGS, "" }, - { "get_hash_num", _wrap_MIBloomFilter32_get_hash_num, METH_NOARGS, "" }, - { "get_k", _wrap_MIBloomFilter32_get_k, METH_NOARGS, "" }, - { "get_hash_fn", _wrap_MIBloomFilter32_get_hash_fn, METH_NOARGS, "" }, - { "get_id_occurence_count", _wrap_MIBloomFilter32_get_id_occurence_count, METH_O, "" }, - { "calc_optimal_size", (PyCFunction)(void(*)(void))_wrap_MIBloomFilter32_calc_optimal_size, METH_STATIC|METH_VARARGS, "" }, +SWIGINTERN PyMethodDef SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_methods[] = { + { "__next__", _wrap_IndexlrRecordIterator___next__, METH_NOARGS, "" }, { NULL, NULL, 0, NULL } /* Sentinel */ }; -static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type = { +static PyHeapTypeObject SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_type = { { #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) @@ -69868,10 +69890,10 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type = PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif - "btllib.MIBloomFilter32", /* tp_name */ + "btllib.IndexlrRecordIterator", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ - _wrap_delete_MIBloomFilter32_destructor_closure, /* tp_dealloc */ + _wrap_delete_IndexlrRecordIterator_destructor_closure, /* tp_dealloc */ #if PY_VERSION_HEX < 0x030800b4 (printfunc) 0, /* tp_print */ #else @@ -69885,36 +69907,36 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type = (cmpfunc) 0, /* tp_compare */ #endif (reprfunc) 0, /* tp_repr */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type.as_number,/* tp_as_number */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type.as_sequence,/* tp_as_sequence */ - &SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type.as_mapping,/* tp_as_mapping */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_type.as_number,/* tp_as_number */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_type.as_sequence,/* tp_as_sequence */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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__MIBloomFilterT_uint32_t_t_type.as_buffer,/* tp_as_buffer */ + &SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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::MIBloomFilter< uint32_t >", /* tp_doc */ + "btllib::Indexlr< btllib::NtHash >::RecordIterator", /* tp_doc */ (traverseproc) 0, /* tp_traverse */ (inquiry) 0, /* tp_clear */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_richcompare, /* tp_richcompare */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ (getiterfunc) 0, /* tp_iter */ - (iternextfunc) 0, /* tp_iternext */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_methods, /* tp_methods */ + _wrap_IndexlrRecordIterator___next___iternextfunc_closure, /* tp_iternext */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_methods,/* tp_methods */ 0, /* tp_members */ - SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_getset, /* tp_getset */ + SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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_MIBloomFilter32, /* tp_init */ + SwigPyBuiltin_BadInit, /* tp_init */ (allocfunc) 0, /* tp_alloc */ (newfunc) 0, /* tp_new */ (freefunc) 0, /* tp_free */ @@ -70062,7 +70084,7 @@ static PyHeapTypeObject SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type = #endif }; -SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_type}; +SWIGINTERN SwigPyClientData SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_type}; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ @@ -70127,7 +70149,6 @@ static void *_p_std__basic_istreamT_char_std__char_traitsT_char_t_tTo_p_std__ios static void *_p_std__basic_ostreamT_char_std__char_traitsT_char_t_tTo_p_std__ios_base(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::ios_base *) (std::basic_ios< char > *) ((std::basic_ostream< char,std::char_traits< char > > *) x)); } -static swig_type_info _swigt__p_HashedKmer = {"_p_HashedKmer", "HashedKmer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SwigPyObject = {"_p_SwigPyObject", "SwigPyObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; @@ -70143,11 +70164,9 @@ static swig_type_info _swigt__p_btllib__DataSink = {"_p_btllib__DataSink", "btll static swig_type_info _swigt__p_btllib__DataSource = {"_p_btllib__DataSource", "btllib::DataSource *", 0, 0, (void*)&SwigPyBuiltin__btllib__DataSource_clientdata, 0}; static swig_type_info _swigt__p_btllib__DataStream = {"_p_btllib__DataStream", "btllib::DataStream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_btllib__Datatype = {"_p_btllib__Datatype", "btllib::Datatype *", 0, 0, (void*)&SwigPyBuiltin__btllib__Datatype_clientdata, 0}; -static swig_type_info _swigt__p_btllib__Indexlr = {"_p_btllib__Indexlr", "btllib::Indexlr *", 0, 0, (void*)&SwigPyBuiltin__btllib__Indexlr_clientdata, 0}; -static swig_type_info _swigt__p_btllib__Indexlr__Flag = {"_p_btllib__Indexlr__Flag", "btllib::Indexlr::Flag *", 0, 0, (void*)&SwigPyBuiltin__btllib__Indexlr__Flag_clientdata, 0}; -static swig_type_info _swigt__p_btllib__Indexlr__Minimizer = {"_p_btllib__Indexlr__Minimizer", "std::vector< btllib::Indexlr::Minimizer >::value_type *|btllib::Indexlr::Minimizer *", 0, 0, (void*)&SwigPyBuiltin__btllib__Indexlr__Minimizer_clientdata, 0}; -static swig_type_info _swigt__p_btllib__Indexlr__Record = {"_p_btllib__Indexlr__Record", "btllib::Indexlr::Record *", 0, 0, (void*)&SwigPyBuiltin__btllib__Indexlr__Record_clientdata, 0}; -static swig_type_info _swigt__p_btllib__Indexlr__RecordIterator = {"_p_btllib__Indexlr__RecordIterator", "btllib::Indexlr::RecordIterator *", 0, 0, (void*)&SwigPyBuiltin__btllib__Indexlr__RecordIterator_clientdata, 0}; +static swig_type_info _swigt__p_btllib__IndexlrT_btllib__NtHash_t = {"_p_btllib__IndexlrT_btllib__NtHash_t", "btllib::Indexlr< btllib::NtHash > *", 0, 0, (void*)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_clientdata, 0}; +static swig_type_info _swigt__p_btllib__IndexlrT_btllib__NtHash_t__Flag = {"_p_btllib__IndexlrT_btllib__NtHash_t__Flag", "btllib::Indexlr< btllib::NtHash >::Flag *", 0, 0, (void*)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__Flag_clientdata, 0}; +static swig_type_info _swigt__p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator = {"_p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator", "btllib::Indexlr< btllib::NtHash >::RecordIterator *", 0, 0, (void*)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__RecordIterator_clientdata, 0}; static swig_type_info _swigt__p_btllib__KmerBloomFilter = {"_p_btllib__KmerBloomFilter", "btllib::KmerBloomFilter *", 0, 0, (void*)&SwigPyBuiltin__btllib__KmerBloomFilter_clientdata, 0}; static swig_type_info _swigt__p_btllib__KmerCountingBloomFilterT_unsigned_char_t = {"_p_btllib__KmerCountingBloomFilterT_unsigned_char_t", "btllib::KmerCountingBloomFilter8 *|btllib::KmerCountingBloomFilter< uint8_t > *|btllib::KmerCountingBloomFilter< unsigned char > *", 0, 0, (void*)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint8_t_t_clientdata, 0}; static swig_type_info _swigt__p_btllib__KmerCountingBloomFilterT_unsigned_int_t = {"_p_btllib__KmerCountingBloomFilterT_unsigned_int_t", "btllib::KmerCountingBloomFilter32 *|btllib::KmerCountingBloomFilter< uint32_t > *|btllib::KmerCountingBloomFilter< unsigned int > *", 0, 0, (void*)&SwigPyBuiltin__btllib__KmerCountingBloomFilterT_uint32_t_t_clientdata, 0}; @@ -70155,8 +70174,10 @@ static swig_type_info _swigt__p_btllib__KmerCountingBloomFilterT_unsigned_short_ static swig_type_info _swigt__p_btllib__MIBloomFilterT_unsigned_char_t = {"_p_btllib__MIBloomFilterT_unsigned_char_t", "btllib::MIBloomFilter< uint8_t > *|btllib::MIBloomFilter< unsigned char > *", 0, 0, (void*)&SwigPyBuiltin__btllib__MIBloomFilterT_uint8_t_t_clientdata, 0}; static swig_type_info _swigt__p_btllib__MIBloomFilterT_unsigned_int_t = {"_p_btllib__MIBloomFilterT_unsigned_int_t", "btllib::MIBloomFilter< uint32_t > *|btllib::MIBloomFilter< unsigned int > *", 0, 0, (void*)&SwigPyBuiltin__btllib__MIBloomFilterT_uint32_t_t_clientdata, 0}; static swig_type_info _swigt__p_btllib__MIBloomFilterT_unsigned_short_t = {"_p_btllib__MIBloomFilterT_unsigned_short_t", "btllib::MIBloomFilter< uint16_t > *|btllib::MIBloomFilter< unsigned short > *", 0, 0, (void*)&SwigPyBuiltin__btllib__MIBloomFilterT_uint16_t_t_clientdata, 0}; +static swig_type_info _swigt__p_btllib__Minimizer = {"_p_btllib__Minimizer", "btllib::HashedKmer *|std::vector< btllib::Minimizer >::value_type *|btllib::Minimizer *", 0, 0, (void*)&SwigPyBuiltin__btllib__Minimizer_clientdata, 0}; static swig_type_info _swigt__p_btllib__NtHash = {"_p_btllib__NtHash", "btllib::NtHash *", 0, 0, (void*)&SwigPyBuiltin__btllib__NtHash_clientdata, 0}; static swig_type_info _swigt__p_btllib__RandSeq = {"_p_btllib__RandSeq", "btllib::RandSeq *", 0, 0, (void*)&SwigPyBuiltin__btllib__RandSeq_clientdata, 0}; +static swig_type_info _swigt__p_btllib__Record = {"_p_btllib__Record", "btllib::Record *", 0, 0, (void*)&SwigPyBuiltin__btllib__Record_clientdata, 0}; static swig_type_info _swigt__p_btllib__SeedAAHash = {"_p_btllib__SeedAAHash", "btllib::SeedAAHash *", 0, 0, (void*)&SwigPyBuiltin__btllib__SeedAAHash_clientdata, 0}; static swig_type_info _swigt__p_btllib__SeedBloomFilter = {"_p_btllib__SeedBloomFilter", "btllib::SeedBloomFilter *", 0, 0, (void*)&SwigPyBuiltin__btllib__SeedBloomFilter_clientdata, 0}; static swig_type_info _swigt__p_btllib__SeedNtHash = {"_p_btllib__SeedNtHash", "btllib::SeedNtHash *", 0, 0, (void*)&SwigPyBuiltin__btllib__SeedNtHash_clientdata, 0}; @@ -70205,7 +70226,7 @@ static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "int8_t *|int_f static swig_type_info _swigt__p_size_t = {"_p_size_t", "std::streamsize *|size_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_state_type = {"_p_state_type", "state_type *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__allocatorT_btllib__Indexlr__Minimizer_t = {"_p_std__allocatorT_btllib__Indexlr__Minimizer_t", "std::vector< btllib::Indexlr::Minimizer >::allocator_type *|std::allocator< btllib::Indexlr::Minimizer > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__allocatorT_btllib__Minimizer_t = {"_p_std__allocatorT_btllib__Minimizer_t", "std::vector< btllib::Minimizer >::allocator_type *|std::allocator< btllib::Minimizer > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_double_t = {"_p_std__allocatorT_double_t", "std::vector< double >::allocator_type *|std::allocator< double > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_int_t = {"_p_std__allocatorT_int_t", "std::vector< int >::allocator_type *|std::allocator< int > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__string_t = {"_p_std__allocatorT_std__string_t", "std::vector< std::string >::allocator_type *|std::allocator< std::string > *", 0, 0, (void*)0, 0}; @@ -70223,7 +70244,7 @@ static swig_type_info _swigt__p_std__ios_base = {"_p_std__ios_base", "std::ios_b static swig_type_info _swigt__p_std__locale = {"_p_std__locale", "std::locale *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__string_view = {"_p_std__string_view", "std::string_view *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t = {"_p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t", "std::vector< btllib::Indexlr::Minimizer,std::allocator< btllib::Indexlr::Minimizer > > *|std::vector< btllib::Indexlr::Minimizer > *", 0, 0, (void*)&SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_clientdata, 0}; +static swig_type_info _swigt__p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t = {"_p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t", "std::vector< btllib::Minimizer,std::allocator< btllib::Minimizer > > *|std::vector< btllib::Minimizer > *", 0, 0, (void*)&SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_clientdata, 0}; static swig_type_info _swigt__p_std__vectorT_double_std__allocatorT_double_t_t = {"_p_std__vectorT_double_std__allocatorT_double_t_t", "std::vector< double,std::allocator< double > > *|std::vector< double > *", 0, 0, (void*)&SwigPyBuiltin__std__vectorT_double_t_clientdata, 0}; static swig_type_info _swigt__p_std__vectorT_int_std__allocatorT_int_t_t = {"_p_std__vectorT_int_std__allocatorT_int_t_t", "std::vector< int,std::allocator< int > > *|std::vector< int > *", 0, 0, (void*)&SwigPyBuiltin__std__vectorT_int_t_clientdata, 0}; static swig_type_info _swigt__p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t = {"_p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t", "btllib::SpacedSeedBlocks *|std::vector< std::array< unsigned int,2 >,std::allocator< std::array< unsigned int,2 > > > *", 0, 0, (void*)0, 0}; @@ -70245,7 +70266,6 @@ static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "btllib:: static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { - &_swigt__p_HashedKmer, &_swigt__p_SwigPyObject, &_swigt__p_allocator_type, &_swigt__p_bool, @@ -70261,11 +70281,9 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_btllib__DataSource, &_swigt__p_btllib__DataStream, &_swigt__p_btllib__Datatype, - &_swigt__p_btllib__Indexlr, - &_swigt__p_btllib__Indexlr__Flag, - &_swigt__p_btllib__Indexlr__Minimizer, - &_swigt__p_btllib__Indexlr__Record, - &_swigt__p_btllib__Indexlr__RecordIterator, + &_swigt__p_btllib__IndexlrT_btllib__NtHash_t, + &_swigt__p_btllib__IndexlrT_btllib__NtHash_t__Flag, + &_swigt__p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, &_swigt__p_btllib__KmerBloomFilter, &_swigt__p_btllib__KmerCountingBloomFilterT_unsigned_char_t, &_swigt__p_btllib__KmerCountingBloomFilterT_unsigned_int_t, @@ -70273,8 +70291,10 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_btllib__MIBloomFilterT_unsigned_char_t, &_swigt__p_btllib__MIBloomFilterT_unsigned_int_t, &_swigt__p_btllib__MIBloomFilterT_unsigned_short_t, + &_swigt__p_btllib__Minimizer, &_swigt__p_btllib__NtHash, &_swigt__p_btllib__RandSeq, + &_swigt__p_btllib__Record, &_swigt__p_btllib__SeedAAHash, &_swigt__p_btllib__SeedBloomFilter, &_swigt__p_btllib__SeedNtHash, @@ -70323,7 +70343,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_size_t, &_swigt__p_size_type, &_swigt__p_state_type, - &_swigt__p_std__allocatorT_btllib__Indexlr__Minimizer_t, + &_swigt__p_std__allocatorT_btllib__Minimizer_t, &_swigt__p_std__allocatorT_double_t, &_swigt__p_std__allocatorT_int_t, &_swigt__p_std__allocatorT_std__string_t, @@ -70341,7 +70361,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_std__locale, &_swigt__p_std__string, &_swigt__p_std__string_view, - &_swigt__p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, + &_swigt__p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, &_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, &_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, &_swigt__p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t, @@ -70363,7 +70383,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_value_type, }; -static swig_cast_info _swigc__p_HashedKmer[] = { {&_swigt__p_HashedKmer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SwigPyObject[] = { {&_swigt__p_SwigPyObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; @@ -70379,11 +70398,9 @@ static swig_cast_info _swigc__p_btllib__DataSink[] = { {&_swigt__p_btllib__Data static swig_cast_info _swigc__p_btllib__DataSource[] = { {&_swigt__p_btllib__DataSource, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__DataStream[] = { {&_swigt__p_btllib__DataStream, 0, 0, 0}, {&_swigt__p_btllib__DataSink, _p_btllib__DataSinkTo_p_btllib__DataStream, 0, 0}, {&_swigt__p_btllib__DataSource, _p_btllib__DataSourceTo_p_btllib__DataStream, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__Datatype[] = { {&_swigt__p_btllib__Datatype, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_btllib__Indexlr[] = { {&_swigt__p_btllib__Indexlr, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_btllib__Indexlr__Flag[] = { {&_swigt__p_btllib__Indexlr__Flag, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_btllib__Indexlr__Minimizer[] = { {&_swigt__p_btllib__Indexlr__Minimizer, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_btllib__Indexlr__Record[] = { {&_swigt__p_btllib__Indexlr__Record, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_btllib__Indexlr__RecordIterator[] = { {&_swigt__p_btllib__Indexlr__RecordIterator, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_btllib__IndexlrT_btllib__NtHash_t[] = { {&_swigt__p_btllib__IndexlrT_btllib__NtHash_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_btllib__IndexlrT_btllib__NtHash_t__Flag[] = { {&_swigt__p_btllib__IndexlrT_btllib__NtHash_t__Flag, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator[] = { {&_swigt__p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__KmerBloomFilter[] = { {&_swigt__p_btllib__KmerBloomFilter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__KmerCountingBloomFilterT_unsigned_char_t[] = { {&_swigt__p_btllib__KmerCountingBloomFilterT_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__KmerCountingBloomFilterT_unsigned_int_t[] = { {&_swigt__p_btllib__KmerCountingBloomFilterT_unsigned_int_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -70391,8 +70408,10 @@ static swig_cast_info _swigc__p_btllib__KmerCountingBloomFilterT_unsigned_short_ static swig_cast_info _swigc__p_btllib__MIBloomFilterT_unsigned_char_t[] = { {&_swigt__p_btllib__MIBloomFilterT_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__MIBloomFilterT_unsigned_int_t[] = { {&_swigt__p_btllib__MIBloomFilterT_unsigned_int_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__MIBloomFilterT_unsigned_short_t[] = { {&_swigt__p_btllib__MIBloomFilterT_unsigned_short_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_btllib__Minimizer[] = { {&_swigt__p_btllib__Minimizer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__NtHash[] = { {&_swigt__p_btllib__NtHash, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__RandSeq[] = { {&_swigt__p_btllib__RandSeq, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_btllib__Record[] = { {&_swigt__p_btllib__Record, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__SeedAAHash[] = { {&_swigt__p_btllib__SeedAAHash, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__SeedBloomFilter[] = { {&_swigt__p_btllib__SeedBloomFilter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_btllib__SeedNtHash[] = { {&_swigt__p_btllib__SeedNtHash, 0, 0, 0},{0, 0, 0, 0}}; @@ -70441,7 +70460,7 @@ static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0 static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_state_type[] = { {&_swigt__p_state_type, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__allocatorT_btllib__Indexlr__Minimizer_t[] = { {&_swigt__p_std__allocatorT_btllib__Indexlr__Minimizer_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__allocatorT_btllib__Minimizer_t[] = { {&_swigt__p_std__allocatorT_btllib__Minimizer_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_double_t[] = { {&_swigt__p_std__allocatorT_double_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_int_t[] = { {&_swigt__p_std__allocatorT_int_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__string_t[] = { {&_swigt__p_std__allocatorT_std__string_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -70459,7 +70478,7 @@ static swig_cast_info _swigc__p_std__ios_base[] = { {&_swigt__p_std__ios_base, static swig_cast_info _swigc__p_std__locale[] = { {&_swigt__p_std__locale, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__string_view[] = { {&_swigt__p_std__string_view, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t[] = { {&_swigt__p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t[] = { {&_swigt__p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_double_std__allocatorT_double_t_t[] = { {&_swigt__p_std__vectorT_double_std__allocatorT_double_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_int_std__allocatorT_int_t_t[] = { {&_swigt__p_std__vectorT_int_std__allocatorT_int_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t[] = { {&_swigt__p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; @@ -70481,7 +70500,6 @@ static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { - _swigc__p_HashedKmer, _swigc__p_SwigPyObject, _swigc__p_allocator_type, _swigc__p_bool, @@ -70497,11 +70515,9 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_btllib__DataSource, _swigc__p_btllib__DataStream, _swigc__p_btllib__Datatype, - _swigc__p_btllib__Indexlr, - _swigc__p_btllib__Indexlr__Flag, - _swigc__p_btllib__Indexlr__Minimizer, - _swigc__p_btllib__Indexlr__Record, - _swigc__p_btllib__Indexlr__RecordIterator, + _swigc__p_btllib__IndexlrT_btllib__NtHash_t, + _swigc__p_btllib__IndexlrT_btllib__NtHash_t__Flag, + _swigc__p_btllib__IndexlrT_btllib__NtHash_t__RecordIterator, _swigc__p_btllib__KmerBloomFilter, _swigc__p_btllib__KmerCountingBloomFilterT_unsigned_char_t, _swigc__p_btllib__KmerCountingBloomFilterT_unsigned_int_t, @@ -70509,8 +70525,10 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_btllib__MIBloomFilterT_unsigned_char_t, _swigc__p_btllib__MIBloomFilterT_unsigned_int_t, _swigc__p_btllib__MIBloomFilterT_unsigned_short_t, + _swigc__p_btllib__Minimizer, _swigc__p_btllib__NtHash, _swigc__p_btllib__RandSeq, + _swigc__p_btllib__Record, _swigc__p_btllib__SeedAAHash, _swigc__p_btllib__SeedBloomFilter, _swigc__p_btllib__SeedNtHash, @@ -70559,7 +70577,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_size_t, _swigc__p_size_type, _swigc__p_state_type, - _swigc__p_std__allocatorT_btllib__Indexlr__Minimizer_t, + _swigc__p_std__allocatorT_btllib__Minimizer_t, _swigc__p_std__allocatorT_double_t, _swigc__p_std__allocatorT_int_t, _swigc__p_std__allocatorT_std__string_t, @@ -70577,7 +70595,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_std__locale, _swigc__p_std__string, _swigc__p_std__string_view, - _swigc__p_std__vectorT_btllib__Indexlr__Minimizer_std__allocatorT_btllib__Indexlr__Minimizer_t_t, + _swigc__p_std__vectorT_btllib__Minimizer_std__allocatorT_btllib__Minimizer_t_t, _swigc__p_std__vectorT_double_std__allocatorT_double_t_t, _swigc__p_std__vectorT_int_std__allocatorT_int_t_t, _swigc__p_std__vectorT_std__arrayT_unsigned_int_2_t_std__allocatorT_std__arrayT_unsigned_int_2_t_t_t, @@ -71557,8 +71575,8 @@ SWIG_init(void) { SwigPyBuiltin_AddPublicSymbol(public_interface, "VectorUint64t"); d = md; - /* type 'std::vector< btllib::Indexlr::Minimizer >' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__Indexlr__Minimizer_t_type; + /* type 'std::vector< btllib::Minimizer >' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__std__vectorT_btllib__Minimizer_t_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -71603,63 +71621,8 @@ SWIG_init(void) { SwigPyBuiltin_AddPublicSymbol(public_interface, "VectorSpacedSeed"); 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::Minimizer' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Minimizer_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -71681,8 +71644,8 @@ SWIG_init(void) { SwigPyBuiltin_AddPublicSymbol(public_interface, "Minimizer"); d = md; - /* type 'btllib::Indexlr::Record' */ - builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Indexlr__Record_type; + /* type 'btllib::Record' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__Record_type; builtin_pytype->tp_dict = d = PyDict_New(); SwigPyBuiltin_SetMetaType(builtin_pytype, metatype); builtin_pytype->tp_new = PyType_GenericNew; @@ -71703,29 +71666,6 @@ SWIG_init(void) { 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")); SwigPyBuiltin_AddPublicSymbol(public_interface, "BIT_MASKS"); @@ -72958,6 +72898,84 @@ SWIG_init(void) { PyModule_AddObject(m, "MIBloomFilter32", (PyObject *)builtin_pytype); SwigPyBuiltin_AddPublicSymbol(public_interface, "MIBloomFilter32"); d = md; + + /* type 'btllib::Indexlr< btllib::NtHash >' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t_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< btllib::NtHash >::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< btllib::NtHash >::Flag' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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< btllib::NtHash >::Flag::NO_ID))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BX",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr< btllib::NtHash >::Flag::BX))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SEQ",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr< btllib::NtHash >::Flag::SEQ))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "FILTER_IN",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr< btllib::NtHash >::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< btllib::NtHash >::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< btllib::NtHash >::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< btllib::NtHash >::Flag::LONG_MODE))); + SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "QUAL",SWIG_From_unsigned_SS_int(static_cast< unsigned int >(btllib::Indexlr< btllib::NtHash >::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< btllib::NtHash >::RecordIterator' */ + builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__btllib__IndexlrT_btllib__NtHash_t__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_Python_FixMethods(SwigMethods_proxydocs, swig_const_table, swig_types, swig_type_initial); #if PY_VERSION_HEX >= 0x03000000 diff --git a/wrappers/python/extra.i b/wrappers/python/extra.i index d321e6d5..8422008e 100644 --- a/wrappers/python/extra.i +++ b/wrappers/python/extra.i @@ -4,14 +4,14 @@ %rename(__iter__) btllib::SeqReader::begin; %ignore btllib::SeqReader::end; %rename(__next__) btllib::SeqReader::RecordIterator::next; -%rename(__iter__) btllib::Indexlr::begin; -%ignore btllib::Indexlr::end; -%rename(__next__) btllib::Indexlr::RecordIterator::next; +%rename(__iter__) btllib::Indexlr::begin; +%ignore btllib::Indexlr::end; +%rename(__next__) btllib::Indexlr::RecordIterator::next; %feature("python:slot", "tp_iter", functype="getiterfunc") btllib::SeqReader::begin; %feature("python:slot", "tp_iternext", functype="iternextfunc") btllib::SeqReader::RecordIterator::next; -%feature("python:slot", "tp_iter", functype="getiterfunc") btllib::Indexlr::begin; -%feature("python:slot", "tp_iternext", functype="iternextfunc") btllib::Indexlr::RecordIterator::next; +%feature("python:slot", "tp_iter", functype="getiterfunc") btllib::Indexlr::begin; +%feature("python:slot", "tp_iternext", functype="iternextfunc") btllib::Indexlr::RecordIterator::next; %ignore btllib::BloomFilter::save(std::string const &, cpptoml::table const &, char const *, size_t); @@ -43,8 +43,8 @@ } } -%extend btllib::Indexlr { - btllib::Indexlr* __enter__() { +%extend btllib::Indexlr { + btllib::Indexlr* __enter__() { return $self; } @@ -53,7 +53,7 @@ } } -%exception btllib::Indexlr::RecordIterator::next { +%exception btllib::Indexlr::RecordIterator::next { $action if (!bool(result)) { PyErr_SetNone(PyExc_StopIteration); @@ -100,10 +100,10 @@ } %} -%typemap(out) std::vector* %{ +%typemap(out) std::vector* %{ $result = PyList_New($1->size()); for (unsigned i = 0; i < $1->size(); ++i) { - PyObject *item = SWIG_NewPointerObj(new btllib::Indexlr::Minimizer((*($1))[i]), SWIGTYPE_p_btllib__Indexlr__Minimizer, SWIG_POINTER_OWN); + PyObject *item = SWIG_NewPointerObj(new btllib::Minimizer((*($1))[i]), SWIGTYPE_p_btllib__Minimizer, SWIG_POINTER_OWN); PyList_SetItem($result, i, item); } %}