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

Default class for a node mapper where one is not provided. Simply returns a value of 0.0 for all node states.

#include <Mesh/DataStructures/nodemapper.h>

Inheritance diagram for NullNodeMapper:
[legend]

Public Member Functions

NullNodeMapperclone () const override
 
Application::Memento::DatacreateMementoData (const MeshModelInterface &model) const override
 
double getValue (const NodeHandle &node, Application::Memento::Data &mementoData) const override
 
- Public Member Functions inherited from NodeMapper
bool canSerialize () const override
 
NodeMapperclone () const override=0
 
virtual Application::Memento::DatacreateMementoData (const MeshModelInterface &model) const =0
 
virtual double getValue (const NodeHandle &node, Application::Memento::Data &mementoData) const =0
 
bool load (const DataExecution::SerializedItem &item) override
 
void logText (const QString &msg) const
 
bool save (DataExecution::SerializedItem &item) const override
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 
- Public Member Functions inherited from Serialize
virtual ~Serialize ()=default
 
virtual bool canSerialize () const =0
 
virtual bool load (const SerializedItem &item)=0
 
virtual bool save (SerializedItem &item) const =0
 

Member Function Documentation

◆ clone()

NullNodeMapper * clone ( ) const
inlineoverridevirtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

Implements NodeMapper.

◆ createMementoData()

Application::Memento::Data * createMementoData ( const MeshModelInterface model) const
inlineoverridevirtual
Parameters
modelThe model that will be used for mapping nodes to values.
Returns
A memento object which client code cannot do anything useful with except pass it around. The memento is ultimately only useful to the getValue() function. It holds internal data the mapper will use to perform the required mapping.

Implements NodeMapper.

◆ getValue()

double getValue ( const NodeHandle node,
Application::Memento::Data mementoData 
) const
inlineoverridevirtual

Implements NodeMapper.