#include <libmeshElemIterator.h>

Public Types | |
| using | difference_type = ptrdiff_t |
| using | iterator_category = std::random_access_iterator_tag |
| using | pointer = const AMP::Mesh::MeshElement * |
| using | reference = const AMP::Mesh::MeshElement & |
| enum class | Type : uint8_t { Forward = 1 , Bidirectional = 2 , RandomAccess = 3 } |
| Enum for the type of iterator supported. More... | |
| using | value_type = AMP::Mesh::MeshElement |
Public Member Functions | |
| MeshIterator | begin () const override |
| Return an iterator to the beginning. | |
| std::string | className () const override |
| Return the class name. | |
| std::unique_ptr< MeshIteratorBase > | clone () const override |
| Clone the iterator. | |
| const libmeshMeshElement & | current () const |
| libMesh::Elem * | elem () const |
| size_t | empty () const |
| Return the number of elements in the iterator. | |
| MeshIteratorEnd | end () const |
| Return an iterator to the end (use tombstone class) | |
| uint64_t | getID () const |
| Return a unique hash id. | |
| libmeshElemIterator ()=delete | |
| Empty MeshIterator constructor. | |
| libmeshElemIterator (const AMP::Mesh::libmeshMesh *mesh, const libMesh::Mesh::element_iterator &begin, const libMesh::Mesh::element_iterator &end) | |
| libmeshElemIterator (const AMP::Mesh::libmeshMesh *mesh, const libMesh::Mesh::element_iterator &begin, const libMesh::Mesh::element_iterator &end, const libMesh::Mesh::element_iterator &pos, int size, int pos2) | |
| libmeshElemIterator (const libmeshElemIterator &) | |
| Copy constructor. | |
| bool | operator!= (const MeshIteratorBase &rhs) const override |
| Check if two iterators are not equal. | |
| virtual bool | operator!= (const MeshIteratorBase &rhs) const=0 |
| Check if two iterators are not equal. | |
| bool | operator!= (MeshIteratorEnd) const |
| Check if two iterators are not equal. | |
| const MeshElement & | operator* () const |
| Dereference the iterator. | |
| MeshIteratorBase & | operator++ () override |
| MeshIteratorBase & | operator+= (int N) override |
| MeshIteratorBase & | operator-- () override |
| const MeshElement * | operator-> () const |
| Dereference the iterator. | |
| libmeshElemIterator & | operator= (const libmeshElemIterator &) |
| Assignment operator. | |
| bool | operator== (const MeshIteratorBase &rhs) const override |
| Check if two iterators are equal. | |
| virtual bool | operator== (const MeshIteratorBase &rhs) const=0 |
| Check if two iterators are equal. | |
| bool | operator== (MeshIteratorEnd) const |
| Check if two iterators are equal. | |
| size_t | pos () const |
| Return the current position (from the beginning) in the iterator. | |
| void | registerChildObjects (AMP::IO::RestartManager *manager) const override |
| void | setPos (size_t) override |
| Set the position in the iterator. | |
| size_t | size () const |
| Return the number of elements in the iterator. | |
| Type | type () const |
| Return the iterator type. | |
| void | writeRestart (int64_t fid) const override |
| virtual | ~libmeshElemIterator ()=default |
| Deconstructor. | |
Protected Attributes | |
| const MeshElement * | d_element = nullptr |
| Pointer to the current element. | |
| Type | d_iteratorType = Type::RandomAccess |
| Type of iterator. | |
| size_t | d_pos = 0 |
| Position of the iterator. | |
| size_t | d_size = 0 |
| Size of the iterator. | |
| uint32_t | d_typeHash = 0 |
| Unique hash for the type. | |
Private Member Functions | |
| void | setCurrentElement () |
Private Attributes | |
| libMesh::Mesh::element_iterator | d_begin2 |
| libmeshMeshElement | d_cur_element |
| int | d_dim |
| libMesh::Mesh::element_iterator | d_end2 |
| const libmeshMesh * | d_mesh |
| MeshID | d_meshID |
| libMesh::Mesh::element_iterator | d_pos2 |
| int | d_rank |
Definition at line 19 of file libmeshElemIterator.h.
|
inherited |
Definition at line 45 of file MeshIterator.h.
|
inherited |
Definition at line 43 of file MeshIterator.h.
|
inherited |
Definition at line 46 of file MeshIterator.h.
|
inherited |
Definition at line 47 of file MeshIterator.h.
|
inherited |
Definition at line 44 of file MeshIterator.h.
|
stronginherited |
Enum for the type of iterator supported.
| Enumerator | |
|---|---|
| Forward | |
| Bidirectional | |
| RandomAccess | |
Definition at line 52 of file MeshIterator.h.
|
delete |
Empty MeshIterator constructor.
|
virtualdefault |
Deconstructor.
| AMP::Mesh::libmeshElemIterator::libmeshElemIterator | ( | const libmeshElemIterator & | ) |
Copy constructor.
| AMP::Mesh::libmeshElemIterator::libmeshElemIterator | ( | const AMP::Mesh::libmeshMesh * | mesh, |
| const libMesh::Mesh::element_iterator & | begin, | ||
| const libMesh::Mesh::element_iterator & | end | ||
| ) |
Default constructor
| mesh | Pointer to the libMesh mesh |
| begin | Pointer to iterator with the begining position |
| end | Pointer to iterator with the end position |
| AMP::Mesh::libmeshElemIterator::libmeshElemIterator | ( | const AMP::Mesh::libmeshMesh * | mesh, |
| const libMesh::Mesh::element_iterator & | begin, | ||
| const libMesh::Mesh::element_iterator & | end, | ||
| const libMesh::Mesh::element_iterator & | pos, | ||
| int | size, | ||
| int | pos2 | ||
| ) |
Default constructor
| mesh | Pointer to the libMesh mesh |
| begin | Pointer to iterator with the begining position |
| end | Pointer to iterator with the end position |
| pos | Pointer to iterator with the current position |
| size | Number of elements in the iterator (-1: unknown) |
| pos2 | Index of the current position in the iterator (-1: unknown) |
|
overridevirtual |
Return an iterator to the beginning.
Implements AMP::Mesh::MeshIteratorBase.
|
inlineoverridevirtual |
Return the class name.
Implements AMP::Mesh::MeshIteratorBase.
Definition at line 35 of file libmeshElemIterator.h.
|
overridevirtual |
Clone the iterator.
Implements AMP::Mesh::MeshIteratorBase.
| const libmeshMeshElement & AMP::Mesh::libmeshElemIterator::current | ( | ) | const |
| libMesh::Elem * AMP::Mesh::libmeshElemIterator::elem | ( | ) | const |
|
inlineinherited |
Return the number of elements in the iterator.
Definition at line 63 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_size.
|
inlineinherited |
Return an iterator to the end (use tombstone class)
Definition at line 78 of file MeshIterator.h.
|
inlineinherited |
Return a unique hash id.
Definition at line 60 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_typeHash.
|
overridevirtual |
Check if two iterators are not equal.
Implements AMP::Mesh::MeshIteratorBase.
|
virtual |
Check if two iterators are not equal.
Implements AMP::Mesh::MeshIteratorBase.
|
inline |
Check if two iterators are not equal.
Definition at line 84 of file MeshIterator.h.
|
inlineinherited |
Dereference the iterator.
Definition at line 75 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_element.
|
overridevirtual |
Implements AMP::Mesh::MeshIteratorBase.
|
overridevirtual |
Implements AMP::Mesh::MeshIteratorBase.
|
overridevirtual |
Implements AMP::Mesh::MeshIteratorBase.
|
inlineinherited |
Dereference the iterator.
Definition at line 72 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_element.
| libmeshElemIterator & AMP::Mesh::libmeshElemIterator::operator= | ( | const libmeshElemIterator & | ) |
Assignment operator.
|
overridevirtual |
Check if two iterators are equal.
Implements AMP::Mesh::MeshIteratorBase.
|
virtual |
Check if two iterators are equal.
Implements AMP::Mesh::MeshIteratorBase.
|
inline |
Check if two iterators are equal.
Definition at line 81 of file MeshIterator.h.
|
inlineinherited |
Return the current position (from the beginning) in the iterator.
Definition at line 69 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_pos.
|
overridevirtual |
Implements AMP::Mesh::MeshIteratorBase.
|
private |
|
overridevirtual |
Set the position in the iterator.
Implements AMP::Mesh::MeshIteratorBase.
|
inlineinherited |
Return the number of elements in the iterator.
Definition at line 66 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_size.
|
inlineinherited |
Return the iterator type.
Definition at line 57 of file MeshIterator.h.
References AMP::Mesh::MeshIteratorBase::d_iteratorType.
|
overridevirtual |
Implements AMP::Mesh::MeshIteratorBase.
|
private |
Definition at line 107 of file libmeshElemIterator.h.
|
private |
Definition at line 112 of file libmeshElemIterator.h.
|
private |
Definition at line 105 of file libmeshElemIterator.h.
|
protectedinherited |
Pointer to the current element.
Definition at line 137 of file MeshIterator.h.
Referenced by AMP::Mesh::MeshIteratorBase::operator*(), and AMP::Mesh::MeshIteratorBase::operator->().
|
private |
Definition at line 108 of file libmeshElemIterator.h.
|
protectedinherited |
Type of iterator.
Definition at line 133 of file MeshIterator.h.
Referenced by AMP::Mesh::MeshIteratorBase::type().
|
private |
Definition at line 111 of file libmeshElemIterator.h.
|
private |
Definition at line 110 of file libmeshElemIterator.h.
|
protectedinherited |
Position of the iterator.
Definition at line 136 of file MeshIterator.h.
Referenced by AMP::Mesh::MeshIteratorBase::operator!=(), AMP::Mesh::MeshIteratorBase::operator==(), and AMP::Mesh::MeshIteratorBase::pos().
|
private |
Definition at line 109 of file libmeshElemIterator.h.
|
private |
Definition at line 106 of file libmeshElemIterator.h.
|
protectedinherited |
Size of the iterator.
Definition at line 135 of file MeshIterator.h.
Referenced by AMP::Mesh::MeshIteratorBase::empty(), AMP::Mesh::MeshIteratorBase::operator!=(), AMP::Mesh::MeshIteratorBase::operator==(), and AMP::Mesh::MeshIteratorBase::size().
|
protectedinherited |
Unique hash for the type.
Definition at line 134 of file MeshIterator.h.
Referenced by AMP::Mesh::MeshIteratorBase::getID().
|
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 |