|
waLBerla 7.2
|
Helper class to generate points in a simple cubic structure within a certain domain.
The lattice is fixed by a point of reference (x).
Usage:
#include <SCIterator.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = Vector3<real_t> |
| using | difference_type = std::ptrdiff_t |
| using | pointer = Vector3<real_t>* |
| using | reference = Vector3<real_t>& |
Public Member Functions | |
| SCIterator (const AABB &domain, const Vector3< real_t > &pointOfReference, const real_t &spacing) | |
| begin iterator | |
| SCIterator (const AABB &domain, const Vector3< real_t > &pointOfReference, const Vector3< real_t > &spacing) | |
| begin iterator | |
| SCIterator () | |
| end iterator | |
| SCIterator & | operator++ () |
| SCIterator | operator++ (int) |
| Vector3< real_t > | operator* () const |
| bool | operator== (const SCIterator &rhs) const |
| bool | operator!= (const SCIterator &rhs) const |
Static Public Member Functions | |
| static real_t | getUnitCellX (const real_t spacing) |
| static real_t | getUnitCellY (const real_t spacing) |
| static real_t | getUnitCellZ (const real_t spacing) |
| static real_t | getUnitCellX (const Vector3< real_t > &spacing) |
| static real_t | getUnitCellY (const Vector3< real_t > &spacing) |
| static real_t | getUnitCellZ (const Vector3< real_t > &spacing) |
Private Member Functions | |
| void | updatePoint () |
Private Attributes | |
| int | i_ |
| int | iReturn_ |
| int | j_ |
| int | jReturn_ |
| int | k_ |
| AABB | aabb_ |
| Vector3< real_t > | pointOfReference_ |
| Vector3< real_t > | spacing_ |
| Vector3< real_t > | point_ |
| bool | ended_ |
| using walberla::grid_generator::SCIterator::difference_type = std::ptrdiff_t |
| using walberla::grid_generator::SCIterator::iterator_category = std::forward_iterator_tag |
| walberla::grid_generator::SCIterator::SCIterator | ( | const AABB & | domain, |
| const Vector3< real_t > & | pointOfReference, | ||
| const real_t & | spacing ) |
begin iterator
| domain | volume were lattice points will be returned |
| pointOfReference | point somewhere in the world which fixes the lattice |
| spacing | spacing between grid points in x, y and z direction |
| walberla::grid_generator::SCIterator::SCIterator | ( | const AABB & | domain, |
| const Vector3< real_t > & | pointOfReference, | ||
| const Vector3< real_t > & | spacing ) |
begin iterator
| domain | volume were lattice points will be returned |
| pointOfReference | point somewhere in the world which fixes the lattice |
| spacing | spacing between grid points in x, y and z direction |
| walberla::grid_generator::SCIterator::SCIterator | ( | ) |
end iterator
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
| bool walberla::grid_generator::SCIterator::operator!= | ( | const SCIterator & | rhs | ) | const |
| SCIterator & walberla::grid_generator::SCIterator::operator++ | ( | ) |
| SCIterator walberla::grid_generator::SCIterator::operator++ | ( | int | ) |
| bool walberla::grid_generator::SCIterator::operator== | ( | const SCIterator & | rhs | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |