| 108 | } |
| 109 | |
| 110 | std::string Rect::toString() const { |
| 111 | std::stringstream strs; |
| 112 | strs << "[" << this->left << "," << this->top |
| 113 | << "][" << this->right << "," << this->bottom << "]"; |
| 114 | return strs.str(); |
| 115 | } |
| 116 | |
| 117 | bool Rect::operator==(const Rect &node) const { |
| 118 | return this->left == node.left && |