File: EntireFileQuery.cpp

package info (click to toggle)
pbbam 2.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,144 kB
  • sloc: cpp: 60,214; xml: 2,908; ansic: 660; sh: 275; python: 203; makefile: 187
file content (31 lines) | stat: -rw-r--r-- 776 bytes parent folder | download | duplicates (3)
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
#include "PbbamInternalConfig.h"

#include <pbbam/EntireFileQuery.h>

#include <pbbam/CompositeBamReader.h>

namespace PacBio {
namespace BAM {

class EntireFileQuery::EntireFileQueryPrivate
{
public:
    EntireFileQueryPrivate(const DataSet& dataset) : reader_{dataset} {}

    SequentialCompositeBamReader reader_;
};

EntireFileQuery::EntireFileQuery(const DataSet& dataset)
    : internal::IQuery{}, d_(new EntireFileQueryPrivate(dataset))
{}

EntireFileQuery::EntireFileQuery(EntireFileQuery&&) noexcept = default;

EntireFileQuery& EntireFileQuery::operator=(EntireFileQuery&&) noexcept = default;

EntireFileQuery::~EntireFileQuery() = default;

bool EntireFileQuery::GetNext(BamRecord& r) { return d_->reader_.GetNext(r); }

}  // namespace BAM
}  // namespace PacBio