SafeHtslibPtr

Template struct that wraps an htslib pointer and reference counts it and then destroys with destroyFun when it goes truly out of scope

Constructors

this
this(T* rawPtr)

ctor that respects scope

Destructor

~this
~this()

dtor that respects scope

Postblit

this(this)
this(this)

postblit that respects scope

Alias This

getRef

allow SafeHtslibPtr to be used as underlying ptr type

Members

Properties

getRef
inout(T*) getRef [@property getter]

get underlying data pointer

moveRef
T* moveRef [@property getter]

take ownership of underlying data pointer

Variables

initialized
bool initialized;

initialized?

ptr
T* ptr;

data pointer

refct
int* refct;

reference counting

Meta