|
OpenASIP 2.2
|
#include <ProDeClipboard.hh>

Public Member Functions | |
| void | setContents (ObjectState *contents, const TTAMachine::Machine *sourceMachine) |
| ObjectState * | copyContents () |
| const TTAMachine::Machine * | sourceMachine () |
| bool | isEmpty () |
Static Public Member Functions | |
| static ProDeClipboard * | instance () |
| static void | destroy () |
Private Member Functions | |
| ProDeClipboard () | |
| ~ProDeClipboard () | |
Private Attributes | |
| ObjectState * | contents_ |
| const TTAMachine::Machine * | sourceMachine_ |
Static Private Attributes | |
| static ProDeClipboard * | instance_ = NULL |
A Clipboard class for copying machine components in ProDe.
The clipboard can store one Component. This class is implemented using the 'singleton' design pattern.
Definition at line 47 of file ProDeClipboard.hh.
|
private |
The Constructor.
Definition at line 41 of file ProDeClipboard.cc.
Referenced by instance().
|
private |
| ObjectState * ProDeClipboard::copyContents | ( | ) |
Returns a copy of the clipboard contents.
Definition at line 104 of file ProDeClipboard.cc.
References contents_.
Referenced by PasteComponentCmd::Do().
|
static |
Deletes the singleton instance of the clipboard.
Definition at line 74 of file ProDeClipboard.cc.
References instance_.
Referenced by ProDe::OnExit().
|
static |
Returns the singleton instance of the clipboard.
Definition at line 62 of file ProDeClipboard.cc.
References instance_, and ProDeClipboard().
Referenced by CopyComponent::Do(), PasteComponentCmd::Do(), and PasteComponentCmd::isEnabled().

| bool ProDeClipboard::isEmpty | ( | ) |
Returns true if the clipboard is empty.
Definition at line 121 of file ProDeClipboard.cc.
References contents_.
Referenced by PasteComponentCmd::isEnabled().
| void ProDeClipboard::setContents | ( | ObjectState * | component, |
| const TTAMachine::Machine * | sourceMachine | ||
| ) |
Sets the clipboard contents.
| component | Copied/cut component. |
Definition at line 88 of file ProDeClipboard.cc.
References contents_, sourceMachine(), and sourceMachine_.
Referenced by CopyComponent::Do().

|
inline |
Definition at line 54 of file ProDeClipboard.hh.
References sourceMachine_.
Referenced by PasteComponentCmd::Do(), and setContents().
|
private |
Definition at line 62 of file ProDeClipboard.hh.
Referenced by copyContents(), isEmpty(), setContents(), and ~ProDeClipboard().
|
staticprivate |
Definition at line 61 of file ProDeClipboard.hh.
Referenced by destroy(), and instance().
|
private |
Definition at line 63 of file ProDeClipboard.hh.
Referenced by setContents(), and sourceMachine().