#include <gridded_fields.h>
Public Member Functions | |
GField2 () | |
Construct an empty GField2. | |
GField2 (const String s) | |
Construct an empty GField2 with the given name. | |
virtual bool | checksize () const |
Consistency check. | |
void | resize (const GField2 &gf) |
Make this GField2 the same size as the given one. | |
void | resize (Index r, Index c) |
Resize the data matrix. | |
Friends | |
ostream & | operator<< (ostream &os, const GField2 &gf) |
Output operator for GField2. |
Definition at line 209 of file gridded_fields.h.
GField2::GField2 | ( | ) | [inline] |
GField2::GField2 | ( | const String | s | ) | [inline] |
Construct an empty GField2 with the given name.
[in] | s | Name. |
Definition at line 216 of file gridded_fields.h.
virtual bool GField2::checksize | ( | ) | const [inline, virtual] |
Consistency check.
Check if the sizes of the grids match the data dimension.
Reimplemented from GField.
Definition at line 224 of file gridded_fields.h.
References GField::get_grid_size(), ConstMatrixView::ncols(), and ConstMatrixView::nrows().
void GField2::resize | ( | const GField2 & | gf | ) | [inline] |
Make this GField2 the same size as the given one.
[in] | gf | Source gridded field. |
Definition at line 232 of file gridded_fields.h.
References GField::get_grid_size(), and Matrix::resize().
Resize the data matrix.
Reimplemented from Matrix.
Definition at line 240 of file gridded_fields.h.
References Matrix::resize().
ostream& operator<< | ( | ostream & | os, | |
const GField2 & | gf | |||
) | [friend] |
Output operator for GField2.
Outputs the given GField2.
[in,out] | os | Output stream. |
[in] | gf | GField2. |
Definition at line 322 of file gridded_fields.cc.