Structure to uniquely identify an element. More...
#include <BoxMesh.h>
Public Member Functions | |
| constexpr const auto & | index () const |
| constexpr int & | index (int d) |
| constexpr int | index (int d) const |
| constexpr bool | isNull () const |
| constexpr | MeshElementIndex ()=default |
| Empty constructor. | |
| constexpr | MeshElementIndex (GeomType type, uint8_t side, int x, int y=0, int z=0) |
| Default constructor. | |
| constexpr bool | operator!= (const MeshElementIndex &rhs) const |
| Operator !=. | |
| constexpr bool | operator< (const MeshElementIndex &rhs) const |
| Operator <. | |
| constexpr bool | operator<= (const MeshElementIndex &rhs) const |
| Operator <=. | |
| constexpr bool | operator== (const MeshElementIndex &rhs) const |
| Operator ==. | |
| constexpr bool | operator> (const MeshElementIndex &rhs) const |
| Operator > | |
| constexpr bool | operator>= (const MeshElementIndex &rhs) const |
| Operator >=. | |
| constexpr int & | operator[] (int d) |
| constexpr int | operator[] (int d) const |
| std::string | print () const |
| constexpr void | reset () |
| constexpr void | reset (GeomType type, uint8_t side, int x, int y=0, int z=0) |
| constexpr uint8_t | side () const |
| constexpr GeomType | type () const |
Static Public Member Functions | |
| static constexpr size_t | numElements (const MeshElementIndex &first, const MeshElementIndex &last) |
Private Attributes | |
| std::array< int, 3 > | d_index = { 0, 0, 0 } |
| Global x, y, z index (may be negative) | |
| uint8_t | d_side = 255 |
| Are we dealing with x, y, or z faces/edges. | |
| uint8_t | d_type = 0 |
| Mesh element type. | |
Friends | |
| class | BoxMesh |
| class | structuredMeshElement |
Structure to uniquely identify an element.
This class help convert between logical coordinates and the mesh element of interest
|
constexprdefault |
Empty constructor.
|
explicitconstexpr |
Default constructor.
The default constructor
| type | Element type |
| side | Side of the parent element (ignored if it is the parent or vertex) |
| x | Logical coordinate of the element |
| y | Logical coordinate of the element |
| z | Logical coordinate of the element |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
constexpr |
Operator !=.
|
constexpr |
Operator <.
|
constexpr |
Operator <=.
|
constexpr |
Operator ==.
|
constexpr |
Operator >
|
constexpr |
Operator >=.
|
inlineconstexpr |
|
inlineconstexpr |
| std::string AMP::Mesh::BoxMesh::MeshElementIndex::print | ( | ) | const |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
friend |
|
private |
Global x, y, z index (may be negative)
Definition at line 147 of file BoxMesh.h.
Referenced by index(), index(), index(), operator[](), and operator[]().
|
private |
|
private |
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:43. Comments on this page |