1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/*
This file is a part of KMC software distributed under GNU GPL 3 licence.
The homepage of the KMC project is http://sun.aei.polsl.pl/kmc
Authors: Sebastian Deorowicz, Agnieszka Debudaj-Grabysz, Marek Kokot
Version: 3.2.4
Date : 2024-02-09
*/
#ifndef _BKB_READER_H_
#define _BKB_READER_H_
#include "params.h"
//************************************************************************************************************
// CBigKmerBinReader - reader of bins from distribution phase. Only in strict memory mode
//************************************************************************************************************
class CBigKmerBinReader
{
CTooLargeBinsQueue * tlbq;
CDiskLogger* disk_logger;
CBinDesc* bd;
CBigBinPartQueue* bbpq;
CMemoryPool* sm_pmm_input_file;
KMC::IProgressObserver* progressObserver;
uint64 sm_mem_part_input_file;
uint32 kmer_len;
public:
CBigKmerBinReader(CKMCParams& Params, CKMCQueues& Queues);
~CBigKmerBinReader();
void ProcessBigBin();
};
//************************************************************************************************************
// CWBigKmerBinReader - wrapper for multithreading purposes
//************************************************************************************************************
class CWBigKmerBinReader
{
std::unique_ptr<CBigKmerBinReader> bkb_reader;
public:
CWBigKmerBinReader(CKMCParams& Params, CKMCQueues& Queues);
void operator()();
};
#endif
// ***** EOF
|