gvsu/cs677/pa4/PTree.h
josh 2f9c310fc1 added label() functions
git-svn-id: svn://anubis/gvsu@308 45c1a28c-8058-47b2-ae61-ca45b979098e
2008-12-01 01:01:33 +00:00

21 lines
444 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();
void label();
friend std::ostream & operator<<(std::ostream & out, const PTree & p);
};