31 char dim_tbl[] =
"$Header: /cvsroot/Lorene/C++/Source/Tbl/dim_tbl.C,v 1.7 2014/10/13 08:53:41 j_novak Exp $" ;
92 #include "utilitaires.h" 126 for (
int i=0 ; i<
ndim ; i++)
127 assert(sizes[i] > 0) ;
130 for (
int i=0 ; i<
ndim ; i++) {
139 for (
int i=0 ; i<
ndim ; i++) {
151 for (
int i=1; i<
ndim; i++) {
174 for (
int i=0 ; i<
ndim ; i++) {
195 ostream& operator<<(ostream& o,
const Dim_tbl & titi) {
196 o << titi.
ndim <<
" dimension(s):" ;
197 for (
int i=0 ; i<titi.
ndim ; i++) {
198 o <<
" " << titi.
dim[i] ;
212 for (
int i=0 ; i<
ndim ; i++) {
213 if (
dim[i] != ti.
dim[i])
return false ;
void sauve(FILE *) const
Save in a file.
int taille
Total size of the array Tbl::t.
Dim_tbl(int size0)
1D constructor
void operator=(const Dim_tbl &)
Assignment.
int fwrite_be(const int *aa, int size, int nb, FILE *fich)
Writes integer(s) into a binary file according to the big endian convention.
int ndim
Number of dimensions of the Tbl: can be 1, 2 or 3.
int fread_be(int *aa, int size, int nb, FILE *fich)
Reads integer(s) from a binary file according to the big endian convention.
Storage of array dimensions.
bool operator==(const Dim_tbl &) const
Comparison operator.
int * dim
Array of dimensions (size: ndim).