File: EntireFileQuery.txt

package info (click to toggle)
pbbam 0.7.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,384 kB
  • ctags: 5,236
  • sloc: cpp: 48,068; python: 1,444; xml: 852; ansic: 820; makefile: 175; sh: 52; cs: 12
file content (15 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// using C++11 range-based for loop
EntireFileQuery query(dataset);
for (const BamRecord& record : query) {
    // ... do stuff ...
}

// OR

// using iterators
EntireFileQuery query(dataset);
auto iter = query.cbegin();
auto end  = query.cend();
for (; iter != end; ++iter) {
    // ... do stuff ...
}