#include <gridded_fields.h>
Public Member Functions | |
GField4 () | |
Construct an empty GField4. | |
GField4 (const String s) | |
Construct an empty GField4 with the given name. | |
virtual bool | checksize () const |
Consistency check. | |
void | resize (const GField4 &gf) |
Make this GField4 the same size as the given one. | |
void | resize (Index b, Index p, Index r, Index c) |
Resize the data tensor. | |
Friends | |
ostream & | operator<< (ostream &os, const GField4 &gf) |
Output operator for GField4. |
Definition at line 298 of file gridded_fields.h.
GField4::GField4 | ( | ) | [inline] |
GField4::GField4 | ( | const String | s | ) | [inline] |
Construct an empty GField4 with the given name.
[in] | s | Name. |
Definition at line 305 of file gridded_fields.h.
virtual bool GField4::checksize | ( | ) | const [inline, virtual] |
Consistency check.
Check if the sizes of the grids match the data dimension.
Reimplemented from GField.
Definition at line 313 of file gridded_fields.h.
References GField::get_grid_size(), ConstTensor4View::nbooks(), ConstTensor4View::ncols(), ConstTensor4View::npages(), and ConstTensor4View::nrows().
void GField4::resize | ( | const GField4 & | gf | ) | [inline] |
Make this GField4 the same size as the given one.
[in] | gf | Source gridded field. |
Definition at line 323 of file gridded_fields.h.
References GField::get_grid_size(), and Tensor4::resize().
Referenced by atm_fields_compactAddConstant(), and atm_fields_compactFromMatrix().
Resize the data tensor.
Reimplemented from Tensor4.
Definition at line 333 of file gridded_fields.h.
References Tensor4::resize().
ostream& operator<< | ( | ostream & | os, | |
const GField4 & | gf | |||
) | [friend] |
Output operator for GField4.
Outputs the given GField4.
[in,out] | os | Output stream. |
[in] | gf | GField4. |
Definition at line 350 of file gridded_fields.cc.