]> git.donarmstrong.com Git - mothur.git/blobdiff - treenode.h
added screen.seqs command - pds
[mothur.git] / treenode.h
index 73532483e96a0e8ea495b983c595435dc9e04ea8..df30cd3a32d5ebc47a54cadf8ea0a6b47c9122f0 100644 (file)
@@ -20,23 +20,27 @@ using namespace std;
 class Node  {
        public:
                Node();  //pass it the sequence name
-               ~Node() {};
+               ~Node() { pGroups.clear(); pcount.clear(); };
                
                void setName(string);
                void setGroup(string);  
                void setBranchLength(float);
+               void setLabel(float);
                void setParent(int);
                void setChildren(int, int);             //leftchild, rightchild
                void setIndex(int);
+               void setLengthToLeaves(float);
                
                string getName();
                string getGroup();  
                float getBranchLength();
+               float getLengthToLeaves();
+               float getLabel();
                int getParent();
                int getLChild();
                int getRChild();
                int getIndex();
-               void printNode(ostream&);   //prints out the name and the branch length
+               void printNode();   //prints out the name and the branch length
                
                
                //pGroup is the parsimony group info.  i.e. for a leaf node it would contain 1 enter pGroup["groupname"] = 1;
@@ -51,7 +55,7 @@ class Node  {
        private:
                string                  name;
                string                  group;
-               float                   branchLength;
+               float                   branchLength, length2leaf, label;
                int                             parent;
                int                             lchild;
                int                             rchild;