#include <sim_fdm_snapshot.hpp>
|
static bool | test_to_file (const Snapshot &snapshot, const std::string &fname) |
|
Snapshot of amplitudes a(x,z).
sim::fdm::Snapshot::Snapshot |
( |
| ) |
|
sim::fdm::Snapshot::Snapshot |
( |
const Area & |
area | ) |
|
Construct snapshot filled by zeros.
- Parameters
-
area | Coordinates area of the snapshot. |
const Area& sim::fdm::Snapshot::area |
( |
| ) |
const |
|
inline |
int sim::fdm::Snapshot::id |
( |
const Point2D & |
coords | ) |
const |
Index of snapshot element from provided xz-coordinates.
Coordinates provided.
- Returns
- requested index or -1 if coordinates are out of range.
std::vector<AmplT>& sim::fdm::Snapshot::operator() |
( |
const CoordsMask & |
coord | ) |
|
Access to 2D snapshot.
- Parameters
-
coord | Coordinate projection required. |
const std::vector<AmplT>& sim::fdm::Snapshot::operator() |
( |
const CoordsMask & |
coord | ) |
const |
Access to 2D snapshot.
- Parameters
-
coord | Coordinate projection required. |
AmplT* sim::fdm::Snapshot::operator() |
( |
const size_t |
x_id, |
|
|
const size_t |
z_id, |
|
|
const CoordsMask & |
coord |
|
) |
| |
Access to 2D snapshot element.
- Parameters
-
x_id | Index of x-coordinate. |
z_id | Index of z-coordinate. |
coord | Coordinate projection required. |
- Returns
- required element or NULL on error.
const AmplT* sim::fdm::Snapshot::operator() |
( |
const size_t |
x_id, |
|
|
const size_t |
z_id, |
|
|
const CoordsMask & |
coord |
|
) |
| const |
Access to 2D snapshot element.
- Parameters
-
x_id | Index of x-coordinate. |
z_id | Index of z-coordinate. |
coord | Coordinate projection required. |
- Returns
- required element or NULL on error.
The documentation for this class was generated from the following file: