src/c++/lib/common/ReadPileup.cpp
/**
 * Add a read to the pileup
 * @param readinfo Read info object
 */
Add a read to the pileup
@param readinfo Read info object
Add a read to the pileup @param readinfo Read info object
void ReadPileup::addRead(std::unique_ptr<ReadPileupInfo> readinfo)
{
    if (!_impl->reads.empty())
    {
        assert(readinfo->pos() >= _impl->reads.back()->pos());
    }
    _impl->max_distance = std::max(_impl->max_distance, readinfo->end() - readinfo->pos() + 2);
    _impl->reads.emplace_back(readinfo.get());
    _impl->read_list.emplace_back(std::move(readinfo));
}
void ReadPileup :: addRead ( std :: unique_ptr < ReadPileupInfo > readinfo ) { if ( ! _impl -> reads . empty ( ) ) { assert ( readinfo -> pos ( ) >= _impl -> reads . back ( ) -> pos ( ) ) ; } _impl -> max_distance = std :: max ( _impl -> max_distance , readinfo -> end ( ) - readinfo -> pos ( ) + 2 ) ; _impl -> reads . emplace_back ( readinfo . get ( ) ) ; _impl -> read_list . emplace_back ( std :: move ( readinfo ) ) ; }
Add a read to the pileup
 @param readinfo Read info object
Add a read to the pileup @param readinfo Read info object