#include <TableSyncData.h>
Collaboration diagram for casa::TableSyncData:

Internal
This class keeps counters to synchronize the table data when a table is locked or unlocked.
A few counters are kept by this class:
This class can also be used for the synchronization of tables and external fillers (see class ExternalLockSync ). For this purpose it is sufficient to store the number of rows.
Definition at line 78 of file TableSyncData.h.
Public Member Functions | |
| TableSyncData () | |
| ~TableSyncData () | |
| void | write (uInt nrrow, uInt nrcolumn, Bool tableChanged, const Block< Bool > &dataManChanged) |
| Update the synchronization data and write it into the MemoryIO object. | |
| void | write (uInt nrrow) |
| Update the synchronization data and write it into the MemoryIO object. | |
| Bool | read (uInt &nrrow, uInt &nrcolumn, Bool &tableChanged, Block< Bool > &dataManChanged) |
| Read the synchronization data from the MemoryIO object. | |
| MemoryIO & | memoryIO () |
| Get the MemoryIO object. | |
| uInt | getModifyCounter () const |
| Get the modify counter. | |
Private Member Functions | |
| TableSyncData (const TableSyncData &that) | |
| Copy constructor is forbidden. | |
| TableSyncData & | operator= (const TableSyncData &that) |
| Assignment is forbidden. | |
Private Attributes | |
| uInt | itsNrrow |
| Int | itsNrcolumn |
| uInt | itsModifyCounter |
| uInt | itsTableChangeCounter |
| Block< uInt > | itsDataManChangeCounter |
| MemoryIO | itsMemIO |
| AipsIO | itsAipsIO |
| casa::TableSyncData::TableSyncData | ( | ) |
| casa::TableSyncData::~TableSyncData | ( | ) |
| casa::TableSyncData::TableSyncData | ( | const TableSyncData & | that | ) | [private] |
Copy constructor is forbidden.
| void casa::TableSyncData::write | ( | uInt | nrrow, | |
| uInt | nrcolumn, | |||
| Bool | tableChanged, | |||
| const Block< Bool > & | dataManChanged | |||
| ) |
Update the synchronization data and write it into the MemoryIO object.
This function is called when a table flush is done to reflect if anything has changed compared to the previous flush.
Referenced by casa::ExternalLockSync::doReleaseCallBack().
| void casa::TableSyncData::write | ( | uInt | nrrow | ) |
Update the synchronization data and write it into the MemoryIO object.
This function should be used by an external filler when it flushes its data.
| MemoryIO & casa::TableSyncData::memoryIO | ( | ) | [inline] |
Get the MemoryIO object.
This is used to let LockFile read or write the synchronization data into it.
Definition at line 132 of file TableSyncData.h.
References itsMemIO.
Referenced by casa::ExternalLockSync::doReleaseCallBack().
| uInt casa::TableSyncData::getModifyCounter | ( | ) | const [inline] |
Get the modify counter.
Definition at line 136 of file TableSyncData.h.
References itsModifyCounter.
| TableSyncData& casa::TableSyncData::operator= | ( | const TableSyncData & | that | ) | [private] |
Assignment is forbidden.
uInt casa::TableSyncData::itsNrrow [private] |
Definition at line 121 of file TableSyncData.h.
Int casa::TableSyncData::itsNrcolumn [private] |
Definition at line 122 of file TableSyncData.h.
uInt casa::TableSyncData::itsModifyCounter [private] |
Definition at line 124 of file TableSyncData.h.
Definition at line 125 of file TableSyncData.h.
MemoryIO casa::TableSyncData::itsMemIO [private] |
AipsIO casa::TableSyncData::itsAipsIO [private] |
Definition at line 127 of file TableSyncData.h.
1.5.1