Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
cadabra::ActionSetRunStatus Class Reference

Description

Update the running status of the indicated cell.

#include <Actions.hh>

Inheritance diagram for cadabra::ActionSetRunStatus:
cadabra::ActionBase

Public Member Functions

 ActionSetRunStatus (DataCell::id_t ref_id_, bool running)
 
virtual void execute (DocumentThread &, GUIBase &) override
 Perform the action. More...
 
virtual void revert (DocumentThread &, GUIBase &) override
 Revert the change to the DTree document and the GUI. More...
 
virtual bool undoable () const override
 Can this action be undone? More...
 
- Public Member Functions inherited from cadabra::ActionBase
 ActionBase (DataCell::id_t ref_id)
 

Private Attributes

DTree::iterator this_cell
 
bool was_running_
 
bool new_running_
 

Additional Inherited Members

- Protected Attributes inherited from cadabra::ActionBase
DataCell::id_t ref_id
 
DTree::iterator ref
 

Constructor & Destructor Documentation

ActionSetRunStatus::ActionSetRunStatus ( DataCell::id_t  ref_id_,
bool  running 
)

Member Function Documentation

void ActionSetRunStatus::execute ( DocumentThread cl,
GUIBase gb 
)
overridevirtual

Perform the action.

This should update both the document tree data structure and the GUI. The latter is updated by calling relevant methods on the GUIBase object passed in.

Reimplemented from cadabra::ActionBase.

void ActionSetRunStatus::revert ( DocumentThread ,
GUIBase  
)
overridevirtual

Revert the change to the DTree document and the GUI.

Implements cadabra::ActionBase.

bool ActionSetRunStatus::undoable ( ) const
overridevirtual

Can this action be undone?

Reimplemented from cadabra::ActionBase.

Member Data Documentation

bool cadabra::ActionSetRunStatus::new_running_
private
DTree::iterator cadabra::ActionSetRunStatus::this_cell
private
bool cadabra::ActionSetRunStatus::was_running_
private

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