/* * Array2.h * * Created on: May 5, 2013 * Author: chibi_000 */ #ifndef ARRAY2_H_ #define ARRAY2_H_ class Array2 { private: int* data; int w, h; public: // Constructors Array2(int w, int h); Array2(int w, int h, const int* vals); Array2(const Array2&); virtual ~Array2(); // Getters int get(int x, int y) const; int getWidth() const; int getHeight() const; // Setters void set(int x, int y, int value); // Assignment operator Array2& operator= (const Array2& a); }; #endif /* ARRAY2_H_ */