TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Public Attributes
Tinkercell::Change2DataCommand< T1, T2 > Class Template Reference

Changes two different data tables. More...

#include <DataTable.h>

Inheritance diagram for Tinkercell::Change2DataCommand< T1, T2 >:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::Change2DataCommand< T1, T2 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Change2DataCommand (const QString &name, DataTable< T1 > *oldDataTable1, const DataTable< T1 > *newDataTable1, DataTable< T2 > *oldDataTable2, const DataTable< T2 > *newDataTable2)
 constructor
 Change2DataCommand (const QString &name, const QList< DataTable< T1 > * > &oldDataTable1, const QList< DataTable< T1 > * > &newDataTable1, const QList< DataTable< T2 > * > &oldDataTable2, const QList< DataTable< T2 > * > &newDataTable2)
 constructor
void redo ()
 redo the changes
void undo ()
 undo the changes

Public Attributes

QList< DataTable< T1 > * > targetDataTable1
 target tables of type T1
QList< DataTable< T1 > > newDataTable1
 new tables of type T1
QList< DataTable< T1 > > oldDataTable1
 old tables of type T1
QList< DataTable< T2 > * > targetDataTable2
 target tables of type T2
QList< DataTable< T2 > > newDataTable2
 new tables of type T2
QList< DataTable< T2 > > oldDataTable2
 old tables of type T2

Detailed Description

template<typename T1, typename T2>
class Tinkercell::Change2DataCommand< T1, T2 >

Changes two different data tables.

Definition at line 382 of file DataTable.h.


Constructor & Destructor Documentation

template<typename T1, typename T2>
Tinkercell::Change2DataCommand< T1, T2 >::Change2DataCommand ( const QString &  name,
DataTable< T1 > *  oldDataTable1,
const DataTable< T1 > *  newDataTable1,
DataTable< T2 > *  oldDataTable2,
const DataTable< T2 > *  newDataTable2 
)

constructor

Parameters:
nameof the command
oldtable of type T1
newtable of type T1
oldtable of type T2
newtable of type T2
template<typename T1, typename T2>
Tinkercell::Change2DataCommand< T1, T2 >::Change2DataCommand ( const QString &  name,
const QList< DataTable< T1 > * > &  oldDataTable1,
const QList< DataTable< T1 > * > &  newDataTable1,
const QList< DataTable< T2 > * > &  oldDataTable2,
const QList< DataTable< T2 > * > &  newDataTable2 
)

constructor

Parameters:
nameof the command
oldtables of type T1
newtables of type T1
oldtables of type T2
newtables of type T2

Member Function Documentation

template<typename T1, typename T2>
void Tinkercell::Change2DataCommand< T1, T2 >::redo ( )

redo the changes

Here is the caller graph for this function:

template<typename T1, typename T2>
void Tinkercell::Change2DataCommand< T1, T2 >::undo ( )

undo the changes

Here is the caller graph for this function:


Member Data Documentation

template<typename T1, typename T2>
QList< DataTable<T1> > Tinkercell::Change2DataCommand< T1, T2 >::newDataTable1

new tables of type T1

Definition at line 408 of file DataTable.h.

template<typename T1, typename T2>
QList< DataTable<T2> > Tinkercell::Change2DataCommand< T1, T2 >::newDataTable2

new tables of type T2

Definition at line 414 of file DataTable.h.

template<typename T1, typename T2>
QList< DataTable<T1> > Tinkercell::Change2DataCommand< T1, T2 >::oldDataTable1

old tables of type T1

Definition at line 410 of file DataTable.h.

template<typename T1, typename T2>
QList< DataTable<T2> > Tinkercell::Change2DataCommand< T1, T2 >::oldDataTable2

old tables of type T2

Definition at line 416 of file DataTable.h.

template<typename T1, typename T2>
QList< DataTable<T1>* > Tinkercell::Change2DataCommand< T1, T2 >::targetDataTable1

target tables of type T1

Definition at line 406 of file DataTable.h.

template<typename T1, typename T2>
QList< DataTable<T2>* > Tinkercell::Change2DataCommand< T1, T2 >::targetDataTable2

target tables of type T2

Definition at line 412 of file DataTable.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines