#include <gridded_fields.h>
Public Member Functions | |
GField3 () | |
Construct an empty GField3. | |
GField3 (const String s) | |
Construct an empty GField3 with the given name. | |
GField3 & | operator= (Numeric n) |
Assignment operator from scalar. | |
virtual bool | checksize () const |
Consistency check. | |
void | resize (const GField3 &gf) |
Make this GField3 the same size as the given one. | |
void | resize (Index p, Index r, Index c) |
Resize the data tensor. | |
Friends | |
ostream & | operator<< (ostream &os, const GField3 &gf) |
Output operator for GField3. |
Definition at line 249 of file gridded_fields.h.
GField3::GField3 | ( | ) | [inline] |
GField3::GField3 | ( | const String | s | ) | [inline] |
Construct an empty GField3 with the given name.
[in] | s | Name. |
Definition at line 256 of file gridded_fields.h.
Assignment operator from scalar.
Assignment operators are not inherited.
Reimplemented from Tensor3.
Definition at line 258 of file gridded_fields.h.
References Tensor3::operator=().
virtual bool GField3::checksize | ( | ) | const [inline, virtual] |
Consistency check.
Check if the sizes of the grids match the data dimension.
Reimplemented from GField.
Definition at line 271 of file gridded_fields.h.
References GField::get_grid_size(), ConstTensor3View::ncols(), ConstTensor3View::npages(), and ConstTensor3View::nrows().
void GField3::resize | ( | const GField3 & | gf | ) | [inline] |
Make this GField3 the same size as the given one.
[in] | gf | Source gridded field. |
Definition at line 280 of file gridded_fields.h.
References GField::get_grid_size(), and Tensor3::resize().
Resize the data tensor.
Reimplemented from Tensor3.
Definition at line 289 of file gridded_fields.h.
References Tensor3::resize().
ostream& operator<< | ( | ostream & | os, | |
const GField3 & | gf | |||
) | [friend] |
Output operator for GField3.
Outputs the given GField3.
[in,out] | os | Output stream. |
[in] | gf | GField3. |
Definition at line 336 of file gridded_fields.cc.