X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Transcripts.h;h=033669b740e97737ce4f5f4bc3a25f016a083910;hb=810375ef69e0de93188c6fa3819cfc584a32ff34;hp=5c17f95352fcd91ea9e80d8dc5f1559531e2ae09;hpb=4f7502168c3816ba3283385f093e599527e2b144;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; }