ARTS 2.5.11 (git: 725533f0)
|
Creates a 3D field of a base unit. More...
#include <field.h>
Public Member Functions | |
Field3D (const Field3D &g)=default | |
Construct a new Field3D object. | |
Field3D & | operator= (const Field3D &g)=default |
Default assignment operator. | |
Field3D & | operator= (Field3D &&g) noexcept=default |
Default move operator. | |
Field3D (Field3D &&g) noexcept | |
Construct a new Field3D object. | |
Field3D (size_t pages=0, size_t rows=0, size_t cols=0, const base &init=base()) | |
Construct a new Field 3 D object. | |
base & | operator() (size_t page=0, size_t row=0, size_t col=0) |
Access operator. | |
const base & | operator() (size_t col=0, size_t row=0, size_t page=0) const |
Access operator. | |
base | operator() (const GridPos &page={0, {0, 1}}, const GridPos &row={0, {0, 1}}, const GridPos &col={0, {0, 1}}) const |
Weighted access operator by GridPos. | |
size_t | npages () const |
Number of pages. | |
size_t | nrows () const |
Number of rows. | |
size_t | ncols () const |
Number of columns. | |
Private Attributes | |
size_t | mpages |
size_t | mrows |
size_t | mcols |
std::vector< base > | data |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Field3D &v) |
Creates a 3D field of a base unit.
Construct a new Field3D object.
[in] | g | Another field |
|
inline |
Number of columns.
Definition at line 159 of file field.h.
References Field3D< base >::mcols.
Referenced by transmat_field_calc_from_propmat_field().
|
inline |
Number of pages.
Definition at line 153 of file field.h.
References Field3D< base >::mpages.
Referenced by transmat_field_calc_from_propmat_field().
|
inline |
Number of rows.
Definition at line 156 of file field.h.
References Field3D< base >::mrows.
Referenced by transmat_field_calc_from_propmat_field().
|
inline |
Access operator.
Returns a ref to the object that cannot be changed
[in] | page | Outer dim |
[in] | row | Middle dim |
[in] | col | Inner dim |
Definition at line 97 of file field.h.
References Field3D< base >::data, Field3D< base >::mcols, and Field3D< base >::mrows.
|
inline |
Access operator.
Returns a ref to the object that can be changed in place
[in] | page | Outer dim |
[in] | row | Middle dim |
[in] | col | Inner dim |
Definition at line 83 of file field.h.
References Field3D< base >::data, Field3D< base >::mcols, and Field3D< base >::mrows.
Default assignment operator.
[in] | g | Another field |
Default move operator.
[in] | g | Another field |
|
friend |
|
private |
Definition at line 19 of file field.h.
Referenced by Field3D< base >::operator()(), and Field3D< base >::operator()().
|
private |
Definition at line 18 of file field.h.
Referenced by Field3D< base >::ncols(), Field3D< base >::operator()(), and Field3D< base >::operator()().
|
private |
Definition at line 18 of file field.h.
Referenced by Field3D< base >::npages().
|
private |
Definition at line 18 of file field.h.
Referenced by Field3D< base >::nrows(), Field3D< base >::operator()(), and Field3D< base >::operator()().