Class VolatilePtr
Helper data structure for handling volatile data.

Defined in <seqan/basic.h>
Signature template <typename T> class VolatilePtr;

Template Parameters

T The pointed-to type.

Interface Function Overview

Detailed Description

Allows you to handle volatile data (used by ext. string during swapping).

Imagine volatile pointers as nodes in an undirected graph. When you assign one to another then they are connected. All pointers in a connection component points to the same value. By calling nukeCopies you can destroy the component and set all pointers to NULL.

Interface Functions Detail

void nukeCopies(ptr);

Reset all pointers connected to a given one.

Parameters

ptr One pointer of the connected component to reset.

Data Races

Thread safety unknown!