// $Id: njConstrain.h 962 2006-11-07 15:13:34Z privmane $ #ifndef ___NJ_CONSTRAINT #define ___NJ_CONSTRAINT #include #include "sequenceContainer.h" #include "tree.h" using namespace std; class njConstraint { public: njConstraint(const tree& starttree, const tree& constraintTree); bool isCompatible(const tree::nodeP& n1, const tree::nodeP& n2, const bool verbose=false) const; void join(const tree::nodeP& n1, const tree::nodeP& n2, const tree::nodeP& newFather); void output(ostream &out) const; private: tree _cTree; // constriant tree map _interTreeMap; }; ostream &operator<<(ostream &out, const njConstraint &c); #endif // ___NJ_CONSTRAINT