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

A handle to an element state. More...

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

Inheritance diagram for ElementStateHandle:
[legend]

Public Member Functions

 ElementStateHandle ()
 
 ElementStateHandle (const ElementType::Type &elementType, MeshModelInterface::size_type index, const QString &name, const DataExecution::DataObject &defaultValue)
 
const ElementType::TypegetElementType () const
 
bool isValid () const override
 
- Public Member Functions inherited from StateHandle
const DataExecution::DataFactorygetDataFactory () const
 
const DataExecution::DataObjectgetDefaultValue () const
 
size_type getIndex () const
 
const QString & getName () const
 
template<typename T >
bool isDataType () const
 
virtual bool isValid () const
 
bool operator!= (const StateHandle &other) const
 
bool operator< (const StateHandle &other) const
 
bool operator== (const StateHandle &other) const
 

Related Functions

(Note that these are not member functions.)

typedef QList< const ElementStateHandle * > ElementStateHandleList
 

Additional Inherited Members

- Public Types inherited from StateHandle
using size_type = ItemHandle::size_type
 
- Protected Member Functions inherited from StateHandle
 StateHandle ()
 
 StateHandle (const StateHandle &other)
 
 StateHandle (size_type index, const QString &name, const DataExecution::DataObject &defaultValue)
 
virtual ~StateHandle ()
 
StateHandleoperator= (const StateHandle &other)
 

Detailed Description

See also
StateHandle

StateHandles have to clone their default value when copied, therefore it is recommended to pass this object by reference whenever possible.

Constructor & Destructor Documentation

◆ ElementStateHandle() [1/2]

ElementStateHandle ( )
inline

Construct a default (invalid) handle

◆ ElementStateHandle() [2/2]

ElementStateHandle ( const ElementType::Type elementType,
MeshModelInterface::size_type  index,
const QString &  name,
const DataExecution::DataObject defaultValue 
)
inline

Member Function Documentation

◆ getElementType()

const ElementType::Type & getElementType ( ) const
inline

◆ isValid()

bool isValid ( ) const
inlineoverridevirtual

Reimplemented from StateHandle.

Friends And Related Function Documentation

◆ ElementStateHandleList

typedef QList<const ElementStateHandle*> ElementStateHandleList
related

A list of element states.