Workspace 6.21.5
Public Member Functions | Related Functions | List of all members
ElementHandle Class Reference

A handle to an element in a MeshModelInterface. More...

#include <Mesh/DataStructures/MeshModelInterface/meshitemhandle.h>

Inheritance diagram for ElementHandle:
[legend]

Public Member Functions

 ElementHandle ()
 
 ElementHandle (const ElementHandle &other)
 
 ElementHandle (size_type index)
 
bool operator!= (const ElementHandle &rhs) const
 
bool operator== (const ElementHandle &rhs) const
 
- Public Member Functions inherited from ItemHandle
size_type getIndex () const
 
size_typeindexData ()
 
bool isValid () const
 
bool operator!= (const ItemHandle &other) const
 
bool operator< (const ItemHandle &other) const
 
bool operator== (const ItemHandle &other) const
 

Related Functions

(Note that these are not member functions.)

using ElementHandleList = Application::VariableLengthArray< ElementHandle, 8 >
 

Additional Inherited Members

- Public Types inherited from ItemHandle
typedef quint32 size_type
 
- Static Public Member Functions inherited from ItemHandle
static constexpr bool isValidIndex (size_t index)
 
- Protected Member Functions inherited from ItemHandle
 ItemHandle ()
 
 ItemHandle (size_type index)
 

Detailed Description

It is only valid to use an ElementHandle with the MeshElementsInterface it belongs to. Using it with a different MeshElementsInterface instance or comparing it with ElementHandles from another instance has undefined results.

Constructor & Destructor Documentation

◆ ElementHandle() [1/3]

ElementHandle ( )
inline

Create a default (invalid) handle

◆ ElementHandle() [2/3]

ElementHandle ( ElementHandle::size_type  index)
inlineexplicit
Parameters
indexA unique index associated with the element

◆ ElementHandle() [3/3]

ElementHandle ( const ElementHandle other)
inlinedefault

Member Function Documentation

◆ operator!=()

bool operator!= ( const ElementHandle rhs) const
inline

◆ operator==()

bool operator== ( const ElementHandle rhs) const
inline

Friends And Related Function Documentation

◆ ElementHandleList

A list of elements used by MeshElementsInterface.