Helper class to generate points in a hexagonal close packing structure within a certain domain.
Usage:
#include <HCPIterator.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 | |
HCPIterator (const AABB &domain, const Vector3< real_t > &pointOfReference, const real_t spacing) | |
begin iterator More... | |
HCPIterator () | |
end iterator More... | |
HCPIterator & | operator++ () |
HCPIterator | operator++ (int) |
Vector3< real_t > | operator* () const |
bool | operator== (const HCPIterator &rhs) const |
bool | operator!= (const HCPIterator &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) |
Private Member Functions | |
void | updatePoint () |
Private Attributes | |
unsigned int | i_ |
unsigned int | iReturn_ |
unsigned int | j_ |
unsigned int | jReturn_ |
unsigned int | k_ |
AABB | aabb_ |
Vector3< real_t > | pointOfReference_ |
real_t | radius_ |
Vector3< real_t > | point_ |
bool | ended_ |
using walberla::grid_generator::HCPIterator::difference_type = std::ptrdiff_t |
using walberla::grid_generator::HCPIterator::iterator_category = std::forward_iterator_tag |
walberla::grid_generator::HCPIterator::HCPIterator | ( | 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 direction |
walberla::grid_generator::HCPIterator::HCPIterator | ( | ) |
end iterator
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
bool walberla::grid_generator::HCPIterator::operator!= | ( | const HCPIterator & | rhs | ) | const |
HCPIterator & walberla::grid_generator::HCPIterator::operator++ | ( | ) |
HCPIterator walberla::grid_generator::HCPIterator::operator++ | ( | int | ) |
bool walberla::grid_generator::HCPIterator::operator== | ( | const HCPIterator & | rhs | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |