Workspace 6.21.5
|
Base class for state handles. More...
#include <Mesh/DataStructures/MeshModelInterface/meshitemhandle.h>
Public Types | |
using | size_type = ItemHandle::size_type |
Public Member Functions | |
const DataExecution::DataFactory & | getDataFactory () const |
const DataExecution::DataObject & | getDefaultValue () 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 |
Protected Member Functions | |
StateHandle () | |
StateHandle (const StateHandle &other) | |
StateHandle (size_type index, const QString &name, const DataExecution::DataObject &defaultValue) | |
virtual | ~StateHandle () |
StateHandle & | operator= (const StateHandle &other) |
StateHandles have to clone their default value when copied, therefore it is recommended to pass this object by reference whenever possible.
using size_type = ItemHandle::size_type |
|
inlineprotected |
Construct a default (invalid) handle
|
inlineprotected |
StateHandles store a cloned copy of the state's default value. Since this requires a memory allocation (the size of the state's data type) this may have some cost involved. It is recommended/expected that StateHandles are created infrequently and passed by reference.
|
inlineprotected |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
bool isDataType |
|
inlinevirtual |
Reimplemented in ElementStateHandle.
|
inline |
|
inline |
|
inlineprotected |
|
inline |