X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Transcripts.h;fp=Transcripts.h;h=033669b740e97737ce4f5f4bc3a25f016a083910;hb=0f8fbc39759d8a8a4fa755903b8bde403b0da6c9;hp=5c17f95352fcd91ea9e80d8dc5f1559531e2ae09;hpb=c729fa33c6e2f9e3e1b374c66a55265525e7d974;p=rsem.git diff --git a/Transcripts.h b/Transcripts.h index 5c17f95..033669b 100644 --- a/Transcripts.h +++ b/Transcripts.h @@ -16,7 +16,6 @@ #include "my_assert.h" #include "Transcript.h" - class Transcripts { public: Transcripts(int type = 0) { @@ -29,6 +28,14 @@ public: int getM() { return M; } + // used in shrinking the transcripts + void setM(int M) { this->M = M; transcripts.resize(M + 1); } + + void move(int from, int to) { + assert(from >= to); + if (from > to) transcripts[to] = transcripts[from]; + } + int getType() { return type; } void setType(int type) { this->type = type; }