MeshKernel
Public Member Functions | Static Public Member Functions | List of all members
meshkernelapi::MKStateUndoAction Class Reference

Undo action for MeshKernelState. More...

#include <MKStateUndoAction.hpp>

Inheritance diagram for meshkernelapi::MKStateUndoAction:

Public Member Functions

 MKStateUndoAction (MeshKernelState &mkState)
 Constructor. More...
 

Static Public Member Functions

static std::unique_ptr< MKStateUndoActionCreate (MeshKernelState &mkState)
 Allocate a CompoundUndoAction and return a unique_ptr to the newly create object.
 

Detailed Description

Undo action for MeshKernelState.

Note
This is for creational api functions, such as mesh generation, mesh set, mesh conversion and state deallocate. The undo action manages a reference to the active MeshKernelState and keeps a copy of the pointers. When the pointer is updated in the mk api, undoing is achieved by swapping the pointers.

Constructor & Destructor Documentation

◆ MKStateUndoAction()

meshkernelapi::MKStateUndoAction::MKStateUndoAction ( MeshKernelState mkState)
explicit

Constructor.

Keeps a reference to the active MeshKernelState and copies its pointers


The documentation for this class was generated from the following file: