#pragma once
#include "bugtree.h"

class debugtree: public bugtree {
   public:
      // displays root node data
      void showRoot();

      // traverses tree, counting and returning the number of nodes found
      int countNodes(bug* n = nullptr);

      // checks numBugs matches counted nodes, and
      // checks each node's name is in valid binary search tree location,
      // returns count of total # of errors found
      // (minname, maxname indicate valid range of names within a subtree,
      //    "" indicates there is not yet a current min/max)
      int checkStructure(bug* n = nullptr, string minname = "", string maxname = "");
};

