LORENE
|
Storage of array dimensions. More...
#include <dim_tbl.h>
Public Member Functions | |
Dim_tbl (int size0) | |
1D constructor | |
Dim_tbl (int size1, int size0) | |
2D constructor | |
Dim_tbl (int size2, int size1, int size0) | |
3D constructor | |
Dim_tbl (int n, int *sizes) | |
N_dimensional constructor. | |
Dim_tbl (const Dim_tbl &) | |
Copy constructor. | |
Dim_tbl (FILE *) | |
Constructor from a file (see sauve(FILE*) ) | |
~Dim_tbl () | |
Destructor. | |
void | operator= (const Dim_tbl &) |
Assignment. | |
void | sauve (FILE *) const |
Save in a file. | |
bool | operator== (const Dim_tbl &) const |
Comparison operator. | |
Public Attributes | |
int | ndim |
Number of dimensions of the Tbl: can be 1, 2 or 3. | |
int * | dim |
Array of dimensions (size: ndim ). | |
int | taille |
Total size of the array Tbl::t . | |
Friends | |
ostream & | operator<< (ostream &, const Dim_tbl &) |
Display. | |
Storage of array dimensions.
This class is designed for internal purposes related to the class Tbl}
, namely the storage of the Tbl}
dimensions. ()
|
explicit |
2D constructor
size1 | [input] Defines the range [0, size1-1] of the outermost index in the storage of the array Tbl::t . Will be assigned to dim [1]. |
size0 | [input] Defines the range [0, size0-1] of the innermost index in the storage of the array Tbl::t . Will be assigned to dim [0]. |
3D constructor
size2 | [input] Defines the range [0, size2-1] of the outermost index in the storage of the array Tbl::t . Will be assigned to dim [2]. |
size1 | [input] Defines the range [0, size1-1] of the intermediate index in the storage of the array Tbl::t . Will be assigned to dim [1]. |
size0 | [input] Defines the range [0, size0-1] of the innermost index in the storage of the array Tbl::t . Will be assigned to dim [0]. |
|
explicit |
Save in a file.
Definition at line 185 of file dim_tbl.C.
References dim, Lorene::fwrite_be(), and ndim.
int* Lorene::Dim_tbl::dim |
int Lorene::Dim_tbl::ndim |
int Lorene::Dim_tbl::taille |