#ifndef _FRAME_H #define _FRAME_H #include template class Frame { private: int m, n; T_t *ydata; /* Stored as a single linear array of length rows x cols */ T_t *udata; T_t *vdata; public: Frame(); Frame(int rows, int cols); ~Frame(); T_t *Getydata(); // Easy access to data, here we are T_t *Getudata(); // using C++ for encapsulation but T_t *Getvdata(); // not for data hiding. This class // is designed for computational efficiency // not for data abstraction // Have to be very careful int GetRows(); /* Read access but not write access */ int GetCols(); int sizecmp(Frame *mat); }; #endif