MP5
CS 225: Image Compression
Functions
quadtree_given.h File Reference

Contains functions of the Quadtree class used for grading. More...

Functions

void printTree (std::ostream &out=std::cout) const
 Given: prints the leaves of the Quadtree using a preorder traversal.
 
bool operator== (Quadtree const &other) const
 Given: compares the current Quadtree with the parameter Quadtree, and determines whether or not the two are the same. More...
 

Detailed Description

Contains functions of the Quadtree class used for grading.

Function Documentation

bool operator== ( Quadtree const &  other) const

Given: compares the current Quadtree with the parameter Quadtree, and determines whether or not the two are the same.

Parameters
otherReference to a const Quadtree object, against which the current Quadtree will be compared
Returns
True if the Quadtrees are deemed "equal", and false otherwise
Note
This method relies on the private helper method compareTrees()