File: bkb_writer.h

package info (click to toggle)
kmc 3.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,716 kB
  • sloc: cpp: 38,308; python: 664; makefile: 216; perl: 179; sh: 34
file content (50 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download
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
/*
  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_WRITER_H
#define _BKB_WRITER_H

#include "params.h"

//************************************************************************************************************
// CBigKmerBinWriter - Write sub bins to  HDD
//************************************************************************************************************
class CBigKmerBinWriter
{
	int32 bin_id, sub_bin_id;
	CBigBinSortedPartQueue* bbspq;
	CCompletedBinsCollector* sm_cbc;
	CDiskLogger* disk_logger;
	CMemoryPool * sm_pmm_sorter_suffixes;
	CMemoryPool * sm_pmm_sorter_lut;
	
	string working_directory;
	CBigBinDesc* bbd;
	string GetName();
public:
	CBigKmerBinWriter(CKMCParams& Params, CKMCQueues& Queues);
	void Process();	
};

//************************************************************************************************************
// CWBigKmerBinWriter - wrapper for multithreading purposes
//************************************************************************************************************
class CWBigKmerBinWriter
{
	std::unique_ptr<CBigKmerBinWriter> bkb_writer;
public:
	CWBigKmerBinWriter(CKMCParams& Params, CKMCQueues& Queues);
	void operator()();
};

#endif


// ***** EOF