EagerBamRead

BamRead wrapper which precomputes end_position = position + basesCovered().

Computation of basesCovered() takes quite a few cycles. Therefore in places where this property is frequently accessed, it makes sense to precompute it for later use.

The idea is that this should be a drop-in replacement for BamRead in algorithms, as the struct uses 'alias this' construction for the wrapped read.

Constructors

this
this(R read)

Alias This

read

Members

Functions

dup
EagerBamRead dup()

Variables

end_position
int end_position;

End position on the reference, computed as position + basesCovered().

read
R read;

Meta