/***************************************** * Instructions * - Replace 'uwuserid' with your uWaterloo User ID * - Select the current calendar term and enter the year * - List students with whom you had discussions and who helped you * * uWaterloo User ID: uwuserid @uwaterloo.ca * Submitted for ECE 250 * Department of Electrical and Computer Engineering * University of Waterloo * Calender Term of Submission: (Winter|Spring|Fall) 201N * * By submitting this file, I affirm that * I am the author of all modifications to * the provided code. * * The following is a list of uWaterloo User IDs of those students * I had discussions with in preparing this project: * - * * The following is a list of uWaterloo User IDs of those students * who helped me with this project (describe their help; e.g., debugging): * - *****************************************/ #ifndef QUADTREE_H #define QUADTREE_H #ifndef nullptr #define nullptr 0 #endif #include "ece250.h" #include "Quadtree_node.h" #include "Exception.h" #include template class Quadtree { private: Quadtree_node *tree_root; int count; public: Quadtree(); ~Quadtree(); // Accessors int size() const; bool empty() const; Type min_x() const; Type min_y() const; Type max_x() const; Type max_y() const; Type sum_x() const; Type sum_y() const; Quadtree_node *root() const; bool member( Type const &, Type const & ) const; // Mutators void insert( Type const &, Type const & ); void clear(); // Friends template friend std::ostream &operator<<( std::ostream &, Quadtree const & ); }; template Quadtree::Quadtree(): tree_root( 0 ), count( 0 ) { // empty constructor } template Quadtree::~Quadtree() { } template int Quadtree::size() const { return 0; } template bool Quadtree::empty() const { return true; } template Type Quadtree::min_x() const { return Type(); } template Type Quadtree::min_y() const { return Type(); } template Type Quadtree::max_x() const { return Type(); } template Type Quadtree::max_y() const { return Type(); } template Type Quadtree::sum_x() const { return Type(); } template Type Quadtree::sum_y() const { return Type(); } template Quadtree_node *Quadtree::root() const { return 0; } template bool Quadtree::member( Type const &x, Type const &y ) const { return false; } template void Quadtree::insert( Type const &x, Type const &y ) { } template void Quadtree::clear() { } // You can modify this function however you want: it will not be tested template std::ostream &operator<<( std::ostream &out, Quadtree const &qt ) { return out; } // Is an error showing up in ece250.h or elsewhere? // Did you forget a closing '}' ? #endif