X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treenode.h;h=d6163a2b1275f9816a576659019d178005042e6d;hb=96b36196d49a3d1f6bc49a26a9d2aa2da7ff876e;hp=a5c39167ca6bda64c8058e99b16a02ca4e07c748;hpb=9099173ea17b13be96563c7579ecc8dc2ef65d20;p=mothur.git diff --git a/treenode.h b/treenode.h index a5c3916..d6163a2 100644 --- a/treenode.h +++ b/treenode.h @@ -10,8 +10,6 @@ * */ -using namespace std; - #include "mothur.h" /* This class represents a node on a tree. */ @@ -20,18 +18,22 @@ 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(); @@ -51,7 +53,7 @@ class Node { private: string name; string group; - float branchLength; + float branchLength, length2leaf, label; int parent; int lchild; int rchild;