- Upgraded the 'bool all' argument to ::collect to a tri-state enum, in a
  polymorphic method.
This commit is contained in:
Paul Beckingham 2014-08-18 23:10:14 -04:00
parent 118f930fad
commit 4447200357
2 changed files with 44 additions and 0 deletions

View file

@ -47,6 +47,8 @@ public:
bool exactMatch (const std::string&, const std::string&) const;
bool canonicalize (std::string&, const std::string&, const std::string&) const;
enum collectType {collectLeaf, collectAll, collectUnterminated};
void collect (std::vector <Tree*>&, collectType = collectLeaf, Tree* tree = NULL) const;
void collect (std::vector <Tree*>&, bool, Tree* tree = NULL) const;
void findBinary ();