X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Farray2d.h;h=73f39093cb2da11832e3d69a8d1c87f1f59d2047;hb=08a5cd04c3994d5ea24713b9b000791bd2e406fe;hp=c4d42007b50bdc38a08f1fb48d46ea94649ebc7a;hpb=4b16507e92bb80b09575b28bed66810e33d2681f;p=ctsim.git diff --git a/include/array2d.h b/include/array2d.h index c4d4200..73f3909 100644 --- a/include/array2d.h +++ b/include/array2d.h @@ -9,14 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2d.h,v 1.4 2000/06/09 11:03:08 kevin Exp $ -** $Log: array2d.h,v $ -** Revision 1.4 2000/06/09 11:03:08 kevin -** Made ImageFile inherit from Array2dFile -** -** Revision 1.3 2000/06/09 01:35:33 kevin -** Convert MPI structure to C++ class -** +** $Id: array2d.h,v 1.7 2000/07/13 07:03:21 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -35,7 +28,8 @@ #ifndef ARRAY2D_H #define ARRAY2D_H -#include +#include "ctsupport.h" + template class Array2d { @@ -47,7 +41,7 @@ class Array2d { } Array2d (void) - : array_data(0), nx(0), ny(0) + : nx(0), ny(0), array_data(0) {} ~Array2d () @@ -98,14 +92,14 @@ class Array2d { void deleteArray (void) { if (array_data) { - for (int i = 0; i < nx; i++) + for (unsigned int i = 0; i < nx; i++) delete array_data[i]; delete array_data; } } - Array2d& operator= (const Array2d& rhs); + Array2d& operator= (const Array2d& rhs); //assignment operator Array2d (const Array2d& rhs); // copy constructor };