20#ifndef _DEMUXDEBUGREADER_HPP
21#define _DEMUXDEBUGREADER_HPP
73 uint64_t& spectrumIndex,
A class for reading demux matrices from file.
size_t _currentBlockIndex
Current block index used for tracking progress through file when sequential iteration of ReadDeconvBl...
DemuxDebugReader(const std::string &fileName)
Constructs a DemuxDebugReader to read the debug file with the given filename.
std::vector< std::pair< uint64_t, int64_t > > _fileIndex
Set of pointers to blocks in the file extracted from the header/footer information.
~DemuxDebugReader()
Destructor closes the file.
std::ifstream _reader
Input file stream of the debug file.
bool IsOpen() const
Should be called after construction to verify that the file was opened successfully.
size_t NumBlocks() const
Number of blocks (sets of matrices) that are contained in the file.
void ReadHeader()
Reads the header/footer which contains information about the number of blocks and their locations in ...
void ReadDeconvBlock(size_t blockIndex, uint64_t &spectrumIndex, DemuxTypes::MatrixPtr masks, DemuxTypes::MatrixPtr solution, DemuxTypes::MatrixPtr signal)
Used for random-access reading of the blocks.
void ReadDeconvBlock(uint64_t &spectrumIndex, DemuxTypes::MatrixPtr masks, DemuxTypes::MatrixPtr solution, DemuxTypes::MatrixPtr signal)
Can be used to read through the blocks sequntially.
boost::shared_ptr< MatrixType > MatrixPtr