#include #include #include using namespace std; #include "linked_stgRNA.h" linked_stgRNA::linked_stgRNA(){ count = 0; kmer = ""; child = NULL; self = 0; } void linked_stgRNA::set_count(int x){ count = x; } const int linked_stgRNA::get_count(){ return count; } void linked_stgRNA::set_kmer(const string stgRNA){ kmer = stgRNA; } void linked_stgRNA::set_self(bool self_value){ self = self_value; } const string linked_stgRNA::get_kmer(){ return kmer; } linked_stgRNA* linked_stgRNA::set_child_pointer(const string stgRNA, int hit_count){ child = new linked_stgRNA; child->set_kmer(stgRNA); child->set_count(hit_count); int len = stgRNA.length(); if (!stgRNA.compare(len-7, 7, "MMMMMMM")) child->set_self(1); else child->set_self(0); return child; } linked_stgRNA* linked_stgRNA::get_child_pointer(){ if (child) return child; else return NULL; } bool linked_stgRNA::is_self(){ return self; }