X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=dist.h;h=1412424b8da755dbe6a35f2a7d14ae37c36929e5;hp=4200bf9f291223d91758c482318415e8409a8e5e;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=3117b1c3109121dff476997d3c5db5b47a77729b diff --git a/dist.h b/dist.h index 4200bf9..1412424 100644 --- a/dist.h +++ b/dist.h @@ -17,13 +17,17 @@ class Dist { public: - Dist(){dist = 0;} + Dist(){ dist = 0; m = MothurOut::getInstance(); } + Dist(const Dist& d) : dist(d.dist) { m = MothurOut::getInstance(); } + virtual ~Dist() {} virtual void calcDist(Sequence, Sequence) = 0; double getDist() { return dist; } + protected: double dist; + MothurOut* m; }; /**************************************************************************************************/ -#endif \ No newline at end of file +#endif