![]() |
OpenWalnut
1.5.0dev
|
The action when adding a fiber. More...
#include <WFiberActionAddFiber.h>
Inheritance diagram for WFiberActionAddFiber:
Collaboration diagram for WFiberActionAddFiber:Public Types | |
| typedef std::shared_ptr< WFiberActionAddFiber > | SPtr |
| A shared_ptr to this class. More... | |
Public Types inherited from WFiberAction | |
| typedef std::shared_ptr< WFiberAction > | SPtr |
| A shared_ptr to this class. More... | |
Public Member Functions | |
| WFiberActionAddFiber (std::string name, size_t position, WFiberHandler *fiberHandler) | |
| Creates this action. More... | |
| ~WFiberActionAddFiber () | |
| Empty destructor. More... | |
| virtual void | undo () |
| Undos this action. More... | |
| virtual void | redo () |
| Redos this action. More... | |
Public Member Functions inherited from WFiberAction | |
| virtual | ~WFiberAction () |
| Empty virtual destructor. More... | |
Private Attributes | |
| std::string | m_name |
| The name of the fiber. More... | |
| size_t | m_position |
| The position of this fiber in the fibers vector. More... | |
| WFiberHandler * | m_fiberHandler |
| The WFiberHandler of the action. More... | |
The action when adding a fiber.
Definition at line 40 of file WFiberActionAddFiber.h.
| typedef std::shared_ptr< WFiberActionAddFiber > WFiberActionAddFiber::SPtr |
A shared_ptr to this class.
Definition at line 46 of file WFiberActionAddFiber.h.
| WFiberActionAddFiber::WFiberActionAddFiber | ( | std::string | name, |
| size_t | position, | ||
| WFiberHandler * | fiberHandler | ||
| ) |
Creates this action.
| name | The name of the fiber. |
| position | The position of this fiber in the fibers vector. |
| fiberHandler | The WFiberHandler of the action. |
Definition at line 30 of file WFiberActionAddFiber.cpp.
| WFiberActionAddFiber::~WFiberActionAddFiber | ( | ) |
Empty destructor.
Definition at line 37 of file WFiberActionAddFiber.cpp.
|
virtual |
Redos this action.
Implements WFiberAction.
Definition at line 46 of file WFiberActionAddFiber.cpp.
References WFiberHandler::addFiberAt(), m_fiberHandler, m_name, and m_position.
Here is the call graph for this function:
|
virtual |
Undos this action.
Implements WFiberAction.
Definition at line 41 of file WFiberActionAddFiber.cpp.
References m_fiberHandler, m_position, and WFiberHandler::removeFiber().
Here is the call graph for this function:
|
private |
The WFiberHandler of the action.
Definition at line 85 of file WFiberActionAddFiber.h.
|
private |
|
private |
The position of this fiber in the fibers vector.
Definition at line 80 of file WFiberActionAddFiber.h.