SciDAVis  1.D4
Public Member Functions | Private Attributes
ColumnFullCopyCmd Class Reference

#include <columncommands.h>

List of all members.

Public Member Functions

 ColumnFullCopyCmd (Column::Private *col, const AbstractColumn *src, QUndoCommand *parent=0)
 Ctor.
virtual void redo ()
 Execute the command.
virtual void undo ()
 Undo the command.
 ~ColumnFullCopyCmd ()
 Dtor.

Private Attributes

Column::Privated_backup
 A backup column.
Columnd_backup_owner
 A dummy owner for the backup column.
Column::Privated_col
 The private column data to modify.
const AbstractColumnd_src
 The column to copy.

Detailed Description

Copy a complete column


Constructor & Destructor Documentation

ColumnFullCopyCmd::ColumnFullCopyCmd ( Column::Private col,
const AbstractColumn src,
QUndoCommand *  parent = 0 
)

Ctor.

References Column::Private::name().

ColumnFullCopyCmd::~ColumnFullCopyCmd ( )

Dtor.

References d_backup, and d_backup_owner.


Member Function Documentation

void ColumnFullCopyCmd::redo ( )
virtual
void ColumnFullCopyCmd::undo ( )
virtual

Member Data Documentation

Column::Private* ColumnFullCopyCmd::d_backup
private

A backup column.

Referenced by redo(), undo(), and ~ColumnFullCopyCmd().

Column* ColumnFullCopyCmd::d_backup_owner
private

A dummy owner for the backup column.

This is needed because a Column::Private must have an owner. We want access to the Column::Private object to access its data pointer for fast data replacement without too much copying.

Referenced by redo(), and ~ColumnFullCopyCmd().

Column::Private* ColumnFullCopyCmd::d_col
private

The private column data to modify.

Referenced by redo(), and undo().

const AbstractColumn* ColumnFullCopyCmd::d_src
private

The column to copy.

Referenced by redo().


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