#include <MRCombinedHistoryAction.h>
Inheritance diagram for MR::CombinedHistoryAction:Public Member Functions | |
| MRMESH_API | CombinedHistoryAction (const std::string &name, const std::vector< std::shared_ptr< HistoryAction > > &actions) |
| Will call action() for each actions in given order (undo in reverse, redo in forward) | |
| virtual std::string | name () const override |
| virtual MRMESH_API void | action (HistoryAction::Type type) override |
| This function is called on history action (undo, redo, etc.) | |
| HistoryActionsVector & | getStack () |
| const HistoryActionsVector & | getStack () const |
| MRMESH_API bool | filter (HistoryStackFilter filteringCondition) |
| bool | empty () const |
| virtual MRMESH_API size_t | heapBytes () const override |
| returns the amount of memory this object occupies on heap | |
Public Member Functions inherited from MR::HistoryAction | |
| virtual | ~HistoryAction ()=default |
Additional Inherited Members | |
Public Types inherited from MR::HistoryAction | |
| enum class | Type { Undo , Redo } |
History action for combine some history actions
| MRMESH_API MR::CombinedHistoryAction::CombinedHistoryAction | ( | const std::string & | name, |
| const std::vector< std::shared_ptr< HistoryAction > > & | actions ) |
Will call action() for each actions in given order (undo in reverse, redo in forward)
|
overridevirtual |
This function is called on history action (undo, redo, etc.)
Implements MR::HistoryAction.
|
inline |
| MRMESH_API bool MR::CombinedHistoryAction::filter | ( | HistoryStackFilter | filteringCondition | ) |
Remove some actions according to condition inside combined actions. Do deep filtering.
|
inline |
|
inline |
|
nodiscardoverridevirtual |
returns the amount of memory this object occupies on heap
Implements MR::HistoryAction.
|
inlineoverridevirtual |
Implements MR::HistoryAction.