gvsu/cs677/pa4/PTree.h
josh 85ce8d7ca8 creating PTrees and getting their total counts now working
git-svn-id: svn://anubis/gvsu@302 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-11-30 22:16:47 +00:00

20 lines
426 B
C++

#include <vector>
#include <string>
#include "Sequence.h"
class PTree
{
private:
std::vector< std::vector< Sequence > * > myLevels;
public:
PTree(const std::vector<Sequence *> & leaves);
~PTree();
void print(std::ostream & out, int level, int index,
std::string prefix, std::string subprefix) const;
int getCount();
friend std::ostream & operator<<(std::ostream & out, const PTree & p);
};