/* 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 FortranArray3dH #define FortranArray3dH #include "Array/ConcreteFortranArray3d.h" #include "Array/InterfacedArray3d.h" template class FortranArray3d : public InterfacedArray3d< ConcreteFortranArray3d > { public: FortranArray3d(Subscript n0, Subscript n1, Subscript n2) : InterfacedArray3d< ConcreteFortranArray3d >(n0, n1, n2) {} FortranArray3d(const ConstArray3d& a) : InterfacedArray3d< ConcreteFortranArray3d >(a) {} virtual void reshape(const SubscriptArray<3>& s) { the_concrete.reshape(s); } virtual Array3d& operator=(const ConstArray3d& rhs) { return InterfacedArray3d< ConcreteFortranArray3d >::operator=(rhs); } virtual Array3d& operator=(const T& rhs) { return InterfacedArray3d< ConcreteFortranArray3d >::operator=(rhs); } virtual const T* firstDatum() const { return the_concrete.firstDatum(); } virtual T* firstDatum() { return the_concrete.firstDatum(); } }; #endif