X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=incbwt%2Fbits%2Fvectors.h;fp=incbwt%2Fbits%2Fvectors.h;h=dfd4a21a20dc61a7bd417395f8970937aff301af;hb=40ddf9aca842bdc081b6350a4ebfe36b066c94c9;hp=0000000000000000000000000000000000000000;hpb=af8938dbee21244687184dd0502a84ce1af70c50;p=SXSI%2FTextCollection.git diff --git a/incbwt/bits/vectors.h b/incbwt/bits/vectors.h new file mode 100644 index 0000000..dfd4a21 --- /dev/null +++ b/incbwt/bits/vectors.h @@ -0,0 +1,25 @@ +#ifndef VECTORS_H +#define VECTORS_H + +#include "deltavector.h" +#include "rlevector.h" + + +namespace CSA +{ + + +/* + These functions merge two vectors using marked positions. + The original vectors are deleted. +*/ + +RLEVector* mergeVectors(RLEVector* first, RLEVector* second, usint* positions, usint n, usint size, usint block_size); + +DeltaVector* mergeVectors(DeltaVector* first, DeltaVector* second, usint* positions, usint n, usint size, usint block_size); + + +} // namespace CSA + + +#endif // VECTORS_H