dim_tbl.h
/*
* Definition of Lorene class Dim_tbl
*
*/
/*
* Copyright (c) 1999-2000 Jean-Alain Marck
* Copyright (c) 1999-2001 Eric Gourgoulhon
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __DIM_TBL_H_
#define __DIM_TBL_H_
/*
* $Id: dim_tbl.h,v 1.7 2014/10/13 08:52:33 j_novak Exp $
* $Log: dim_tbl.h,v $
* Revision 1.7 2014/10/13 08:52:33 j_novak
* Lorene classes and functions now belong to the namespace Lorene.
*
* Revision 1.6 2014/10/06 15:09:39 j_novak
* Modified #include directives to use c++ syntax.
*
* Revision 1.5 2006/09/25 10:01:45 p_grandclement
* Addition of N-dimensional Tbl
*
* Revision 1.4 2004/03/22 13:12:40 j_novak
* Modification of comments to use doxygen instead of doc++
*
* Revision 1.3 2002/10/16 14:36:28 j_novak
* Reorganization of #include instructions of standard C++, in order to
* use experimental version 3 of gcc.
*
* Revision 1.2 2002/06/17 14:05:16 j_novak
* friend functions are now also declared outside the class definition
*
* Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
* LORENE
*
* Revision 2.7 1999/11/23 12:16:24 eric
* Modif commentaires (dimension 0 autorisee).
*
* Revision 2.6 1999/10/01 10:17:10 eric
* Amelioration des commentaires.
*
* Revision 2.5 1999/09/30 12:49:09 eric
* Constructeur a 1 parametre rendu explicit.
* Amelioration des commentaires
*
* Revision 2.4 1999/09/24 14:22:36 eric
* Declaration de methodes const
* Amelioration commentaires.
*
* Revision 2.3 1999/09/22 11:38:59 eric
* *** empty log message ***
*
* Revision 2.2 1999/09/22 11:24:39 eric
* Amelioration commentaires
*
* Revision 2.1 1999/09/16 16:23:52 eric
* Doc++
*
* Revision 2.0 1999/02/15 10:41:51 hyc
* *** empty log message ***
*
* $Header: /cvsroot/Lorene/C++/Include/dim_tbl.h,v 1.7 2014/10/13 08:52:33 j_novak Exp $
*
*/
#include <cstdio>
#include "headcpp.h"
namespace Lorene {
class Dim_tbl {
public:
int ndim ;
int* dim ;
int taille ;
public:
// Constructeurs
explicit Dim_tbl(int size0) ;
Dim_tbl(int size1, int size0) ;
Dim_tbl(int size2, int size1, int size0) ;
Dim_tbl(int n, int* sizes) ;
Dim_tbl(const Dim_tbl & ) ;
explicit Dim_tbl(FILE* ) ;
~Dim_tbl() ;
void operator=(const Dim_tbl &) ;
void sauve(FILE* ) const ;
bool operator==(const Dim_tbl &) const ;
friend ostream& operator<<(ostream& , const Dim_tbl &) ;
};
ostream& operator<<(ostream& , const Dim_tbl &) ;
}
#endif
Lorene::Dim_tbl
Storage of array dimensions.
Definition dim_tbl.h:99
Lorene::Dim_tbl::taille
int taille
Total size of the array Tbl::t.
Definition dim_tbl.h:112
Lorene::Dim_tbl::~Dim_tbl
~Dim_tbl()
Destructor.
Definition dim_tbl.C:161
Lorene::Dim_tbl::operator==
bool operator==(const Dim_tbl &) const
Comparison operator.
Definition dim_tbl.C:208
Lorene::Dim_tbl::Dim_tbl
Dim_tbl(int size0)
1D constructor
Definition dim_tbl.C:100
Lorene::Dim_tbl::operator<<
friend ostream & operator<<(ostream &, const Dim_tbl &)
Display.
Definition dim_tbl.C:195
Lorene::Dim_tbl::sauve
void sauve(FILE *) const
Save in a file.
Definition dim_tbl.C:185
Lorene::Dim_tbl::dim
int * dim
Array of dimensions (size: ndim).
Definition dim_tbl.h:102
Lorene::Dim_tbl::ndim
int ndim
Number of dimensions of the Tbl: can be 1, 2 or 3.
Definition dim_tbl.h:101
Lorene::Dim_tbl::operator=
void operator=(const Dim_tbl &)
Assignment.
Definition dim_tbl.C:170
Lorene
Lorene prototypes.
Definition app_hor.h:64