19 for(dim_i = 0; dim_i < nDim; ++dim_i)
28 fprintf(fpLog,
"%d", i[dim_i]);
48 szFormat =
new char[1 + strlen(format)];
49 strcpy(szFormat, format);
62 fprintf(fpLog,
"CubeStorage(this=%p)"\
63 "\n\titem size = %lu bytes"\
64 "\n\titem order ala %s"\
65 "\n\tnumber of dimensions = %d"\
66 "\n\tdimensions are = ",
68 eItemOrder==AlaC?
"C/C++": (eItemOrder==AlaFortran
74 fprintf(fpLog,
"\n\tprintf format = \"%s\"\n",
75 szFormat? szFormat:
"(nil)");
77 fprintf(fpLog,
"\n\tnot a printable due to undefined CuSt_AtomItem\n");
91 fprintf(fpLog, szFormat,
get(i));
94 fprintf(fpLog,
"print_cell(this=%p) at ",
this);
112 int stored_id = i[d];
114 for(j = 0; j < dim(d); ++j)
117 fprintf(fpLog, szFormat,
get(i));
123 fprintf(fpLog,
"print_vector(this=%p, %d) at ",
this, d);
141 int stored_idh = i[dh];
142 int stored_idv = i[dv];
144 for(jv = 0; jv < dim(dv); ++jv)
147 for(jh = 0; jh < dim(dh); ++jh)
150 fprintf(fpLog, szFormat,
get(i));
158 fprintf(fpLog,
"print_matrix(this=%p, dv=%d, dh=%d) at ",
this, dv, dh);
174 int dim_i, dim_j, *i =
new int[nDim];
177 for(dim_i = 0; dim_i < nDim; ++dim_i)
186 fprintf(fpLog, szFormat,
get(i));
192 for(dim_i = nDim - 1; dim_i >= 0; --dim_i)
193 if(i[dim_i] < pDim[dim_i] - 1)
220 int dim_i, *iFlag =
new int[nDim];
226 for(dim_i = 1; dim_i < nDim; ++i)
227 iFlag[dim_i] = va_arg(val,
int);
230 int dim_j, dim_i, i =
new int[nDim];
233 for(dim_i = 0; dim_i < nDim; ++dim_i)
237 i[dim_i] = iFlag[dim_i];
244 fprintf(fpLog, szFormat,
get(i));
250 for(dim_i = nDim - 1; dim_i >= 0; --dim_i)
251 if(i[dim_i] < pDim[dim_i] - 1)
Definition: CubeStorage.H:48
virtual void print_direction(FILE *fp, const char *format)