Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
qpe::SimulationDomain2DBuilder Class Reference

Implements the Simulation Domain2D Builder component. More...

#include <simulationdomain2d.h>

Static Public Member Functions

static SimulationDomain2D make (std::size_t gridWidth, std::size_t gridHeight, float physicalWidth, float physicalHeight)
 Performs make.
 
static bool isPowerOfTwo (std::size_t value) noexcept
 Returns whether power of two.
 

Detailed Description

Implements the Simulation Domain2D Builder component.

The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.

Definition at line 43 of file simulationdomain2d.h.

Member Function Documentation

◆ isPowerOfTwo()

bool qpe::SimulationDomain2DBuilder::isPowerOfTwo ( std::size_t value)
staticnoexcept

Returns whether power of two.

Parameters
valueValue to assign or evaluate.

Definition at line 63 of file simulationdomain2d.cpp.

Referenced by make(), qpe::tests::runSimulationDomain2DTests(), and qpe::SimulationDomain2D::valid().

◆ make()

SimulationDomain2D qpe::SimulationDomain2DBuilder::make ( std::size_t gridWidth,
std::size_t gridHeight,
float physicalWidth,
float physicalHeight )
static

Performs make.

Parameters
gridWidthThe grid width value used by the operation.
gridHeightThe grid height value used by the operation.
physicalWidthThe physical width value used by the operation.
physicalHeightThe physical height value used by the operation.

Definition at line 41 of file simulationdomain2d.cpp.

References qpe::SimulationDomain2D::dx, qpe::SimulationDomain2D::dy, qpe::SimulationDomain2D::gridHeight, qpe::SimulationDomain2D::gridWidth, isPowerOfTwo(), qpe::SimulationDomain2D::physicalHeight, and qpe::SimulationDomain2D::physicalWidth.

Referenced by qpe::tests::runSimulationDomain2DTests(), and MainWindow::selectedSimulationDomain().


The documentation for this class was generated from the following files: