Workspace 6.21.5
Public Member Functions | Protected Member Functions | List of all members
TypedMeshModelInterface< Derived > Class Template Reference

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

Inheritance diagram for TypedMeshModelInterface< Derived >:
[legend]

Public Member Functions

DataExecution::DataObjectcreateDownCastTypedObject () override
 
const DataExecution::DataFactorygetFactory () const override
 
- Public Member Functions inherited from MeshModelInterface
 ~MeshModelInterface () override
 
bool assignFrom (const MeshModelInterface &other, bool allowPartialAssign=false)
 
virtual ElementType::List attachmentInfoExistsFor () const =0
 
virtual bool attachmentInfoExistsFor (const ElementType::Type &elementType) const =0
 
virtual void clear (bool removeAllStates=true)
 
MeshModelInterfaceclone () const override=0
 
virtual DataExecution::DataObjectcreateDownCastTypedObject ()=0
 
void discardAllAttachmentInfo ()
 
virtual void discardAttachmentInfo (const ElementType::Type &elementType)=0
 
virtual void emptyTrash ()=0
 
virtual bool generateAttachmentInfo (const ElementType::Type &elementType)=0
 
virtual ElementHandleList getAttachedElements (const ElementType::Type &elementType, const NodeHandle &node) const =0
 
virtual NodeHandleList getAttachedNodes (const ElementType::Type &elementType, const NodeHandle &node) const
 
template<typename T >
MeshElementsInterfacegetElements ()
 
template<typename T >
const MeshElementsInterfacegetElements () const
 
virtual const MeshElementsInterfacegetElements (const ElementType::Type &type) const =0
 
virtual MeshElementsInterfacegetElements (const ElementType::Type &type)=0
 
virtual ElementType::List getElementTypesPresentInModel () const =0
 
ElementType::List getElementTypesPresentOrWithStates () const
 
virtual ElementType::List getElementTypesWithStatesDefined () const =0
 
virtual const DataExecution::DataFactorygetFactory () const =0
 
MetaDatagetMetaData ()
 
const MetaDatagetMetaData () const
 
virtual const MeshNodesInterfacegetNodes () const =0
 
virtual MeshNodesInterfacegetNodes ()=0
 
virtual bool isElementTypeSupported (const ElementType::Type &type) const =0
 
virtual bool isOrganised () const
 
virtual bool load (MeshSerializer &serializer)
 
virtual bool makeUnorganised ()
 
virtual bool save (MeshSerializer &serializer) const
 
void setMetaData (const MetaData &val)
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 

Protected Member Functions

 TypedMeshModelInterface ()
 
 TypedMeshModelInterface (const TypedMeshModelInterface &other)
 
- Protected Member Functions inherited from MeshModelInterface
virtual bool fastAssignFrom (const MeshModelInterface &other)=0
 

Additional Inherited Members

- Public Types inherited from MeshModelInterface
using int_type = qint32
 
using MetaData = DataExecution::ObjectDictionary
 
typedef ItemHandle::size_type size_type
 
- Static Public Member Functions inherited from MeshModelInterface
static MeshModelInterfacecreateDefault ()
 

Constructor & Destructor Documentation

◆ TypedMeshModelInterface() [1/2]

TypedMeshModelInterface ( )
inlineprotected

◆ TypedMeshModelInterface() [2/2]

TypedMeshModelInterface ( const TypedMeshModelInterface< Derived > &  other)
inlineprotected

Member Function Documentation

◆ createDownCastTypedObject()

DataExecution::DataObject * createDownCastTypedObject ( )
inlineoverridevirtual

Convenience method for constructing subclass data object types. Useful for when the implementation type is unknown to the developer at compile time but must match another interface of the same type.

Returns
A newly constructed data object of the derived class type.
Note
The caller is responsible for deleting the object.

Implements MeshModelInterface.

◆ getFactory()

const DataExecution::DataFactory & getFactory ( ) const
inlineoverridevirtual

Client code can use this method to determine the specific derived type of MeshModelInterface this object is.

Returns
The actual derived type of this interface.

Implements MeshModelInterface.