00001 /* 00002 * Definition of Lorene class Dim_tbl 00003 * 00004 */ 00005 00006 /* 00007 * Copyright (c) 1999-2000 Jean-Alain Marck 00008 * Copyright (c) 1999-2001 Eric Gourgoulhon 00009 * 00010 * This file is part of LORENE. 00011 * 00012 * LORENE is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * LORENE is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with LORENE; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 */ 00027 00028 00029 #ifndef __DIM_TBL_H_ 00030 #define __DIM_TBL_H_ 00031 00032 00033 /* 00034 * $Id: dim_tbl.h,v 1.5 2006/09/25 10:01:45 p_grandclement Exp $ 00035 * $Log: dim_tbl.h,v $ 00036 * Revision 1.5 2006/09/25 10:01:45 p_grandclement 00037 * Addition of N-dimensional Tbl 00038 * 00039 * Revision 1.4 2004/03/22 13:12:40 j_novak 00040 * Modification of comments to use doxygen instead of doc++ 00041 * 00042 * Revision 1.3 2002/10/16 14:36:28 j_novak 00043 * Reorganization of #include instructions of standard C++, in order to 00044 * use experimental version 3 of gcc. 00045 * 00046 * Revision 1.2 2002/06/17 14:05:16 j_novak 00047 * friend functions are now also declared outside the class definition 00048 * 00049 * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon 00050 * LORENE 00051 * 00052 * Revision 2.7 1999/11/23 12:16:24 eric 00053 * Modif commentaires (dimension 0 autorisee). 00054 * 00055 * Revision 2.6 1999/10/01 10:17:10 eric 00056 * Amelioration des commentaires. 00057 * 00058 * Revision 2.5 1999/09/30 12:49:09 eric 00059 * Constructeur a 1 parametre rendu explicit. 00060 * Amelioration des commentaires 00061 * 00062 * Revision 2.4 1999/09/24 14:22:36 eric 00063 * Declaration de methodes const 00064 * Amelioration commentaires. 00065 * 00066 * Revision 2.3 1999/09/22 11:38:59 eric 00067 * *** empty log message *** 00068 * 00069 * Revision 2.2 1999/09/22 11:24:39 eric 00070 * Amelioration commentaires 00071 * 00072 * Revision 2.1 1999/09/16 16:23:52 eric 00073 * Doc++ 00074 * 00075 * Revision 2.0 1999/02/15 10:41:51 hyc 00076 * *** empty log message *** 00077 * 00078 * $Header: /cvsroot/Lorene/C++/Include/dim_tbl.h,v 1.5 2006/09/25 10:01:45 p_grandclement Exp $ 00079 * 00080 */ 00081 00082 #include <stdio.h> 00083 00084 #include "headcpp.h" 00085 00092 class Dim_tbl { 00093 public: 00094 int ndim ; 00095 int* dim ; 00096 00105 int taille ; 00106 00107 public: 00108 // Constructeurs 00116 explicit Dim_tbl(int size0) ; 00117 00130 Dim_tbl(int size1, int size0) ; 00131 00147 Dim_tbl(int size2, int size1, int size0) ; 00148 00154 Dim_tbl(int n, int* sizes) ; 00155 00156 Dim_tbl(const Dim_tbl & ) ; 00157 00159 explicit Dim_tbl(FILE* ) ; 00160 00161 ~Dim_tbl() ; 00162 00163 void operator=(const Dim_tbl &) ; 00164 00165 void sauve(FILE* ) const ; 00166 00167 bool operator==(const Dim_tbl &) const ; 00168 00169 friend ostream& operator<<(ostream& , const Dim_tbl &) ; 00170 00171 }; 00172 ostream& operator<<(ostream& , const Dim_tbl &) ; 00173 00174 #endif
1.4.6