#include <MRMesh/MRCombinedHistoryAction.h>
Public Types | |
| using | DynamicNameGetter = std::function<std::string ()> |
| Public Types inherited from MR::HistoryAction | |
| enum class | Type { Type::Undo , Type::Redo } |
Public Member Functions | |
| CombinedHistoryAction (const std::string &name, const std::vector< std::shared_ptr< HistoryAction > > &actions, const DynamicNameGetter &dynNameGetter={}) | |
| Will call action() for each actions in given order (undo in reverse, redo in forward) | |
| virtual std::string | name () const override |
| virtual void | action (HistoryAction::Type type) override |
| This function is called on history action (undo, redo, etc.) | |
| HistoryActionsVector & | getStack () |
| const HistoryActionsVector & | getStack () const |
| bool | filter (HistoryStackFilter filteringCondition) |
| bool | empty () const |
| std::optional< std::string > | getDynamicName () const |
| For actions with a dynamic name getter calls the getter and returns the dynamic name; otherwise returns std::nullopt. | |
| virtual size_t | heapBytes () const override |
| returns the amount of memory this object occupies on heap | |
| Public Member Functions inherited from MR::HistoryAction | |
| HistoryAction ()=default | |
| explicitly define ctors to avoid warning C5267: definition of implicit copy constructor is deprecated because it has a user-provided destructor | |
| HistoryAction (const HistoryAction &)=default | |
| HistoryAction (HistoryAction &&) noexcept=default | |
| virtual | ~HistoryAction ()=default |
History action for combine some history actions