/* Example programs from the book Scientific and Engineering Programming in C++: An Introduction with Advanced Techniques and Examples, Addison-Wesley, 1994. (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 1994. ALL RIGHTS RESERVED. See README file for further details. */ #ifndef ConcreteFormedArray2dH #define ConcreteFormedArray2dH #include "Array/ConcreteArrayShape.h" #include "Array/ConcreteArray2d.h" template class ConcreteFormedArray2d : public ConcreteArray2d, T > { public: ConcreteFormedArray2d(); // For arrays of arrays. ConcreteFormedArray2d(Subscript s0, Subscript s1); ConcreteFormedArray2d(const ConcreteFormedArray2d&); ConcreteFormedArray2d(const ConcreteArray2dConstRef, T>&); ConcreteFormedArray2d(const ConcreteArray2dConstRef::ProjectionT, T>&); ~ConcreteFormedArray2d(); ConcreteFormedArray2d& operator=(const ConcreteFormedArray2d& rhs); ConcreteFormedArray2d& operator=(const ConcreteArray2dConstRef& rhs); ConcreteFormedArray2d& operator=(const T& rhs); void reshape(const SubscriptArray<2>& s) { reshapeOnHeap(s); } }; #ifdef XLC_QNOTEMPINC #include "Array/ConcreteFormedArray2d.c" #endif #endif