ppALIGN API documentation
DemoCheckpointDriver Class Reference
#include <checkpoint.hpp>
Inheritance diagram for DemoCheckpointDriver:
Public Member Functions | |
| DemoCheckpointDriver (long _M, long _N, long _start=-1, long end=-1) | |
| virtual void | FirstPassForward (long last_row, long current_row, long row_i) |
| virtual void | Forward (long last_row, long current_row, long row_i) |
| virtual bool | Backward (long current_row, long row_i) |
| virtual long | SpaceAvail () |
| virtual long | SpaceRequired () |
| virtual long | StartBackward () |
Detailed Description
A simple class to test the interface to CheckpointDriver
Definition at line 96 of file checkpoint.hpp.
Constructor & Destructor Documentation
| DemoCheckpointDriver::DemoCheckpointDriver | ( | long | _M, | |
| long | _N, | |||
| long | _start = -1, |
|||
| long | end = -1 | |||
| ) |
Constructor.
- Parameters:
-
_M _N _start end
Member Function Documentation
| virtual bool DemoCheckpointDriver::Backward | ( | long | current_row, | |
| long | row_i | |||
| ) | [virtual] |
Method that is called when the one forward row and the corresponding backward row is available.
- Returns:
- true if the algorithm is not finished yet
Implements CheckpointDriver.
| virtual void DemoCheckpointDriver::FirstPassForward | ( | long | last_row, | |
| long | current_row, | |||
| long | row_i | |||
| ) | [virtual] |
Method that realizes the event when a row is computed for the first time.
Implements CheckpointDriver.
| virtual void DemoCheckpointDriver::Forward | ( | long | last_row, | |
| long | current_row, | |||
| long | row_i | |||
| ) | [virtual] |
Method that realizes the event when a row is computed for the second (or more) time
Implements CheckpointDriver.
| virtual long DemoCheckpointDriver::SpaceAvail | ( | ) | [virtual] |
- Returns:
- Number of rows that are availible.
Implements CheckpointDriver.
| virtual long DemoCheckpointDriver::SpaceRequired | ( | ) | [virtual] |
- Returns:
- number of rows that have to be computed.
Implements CheckpointDriver.
| virtual long DemoCheckpointDriver::StartBackward | ( | ) | [virtual] |
Row where the backward computation starts.
- Returns:
- by default SpaceRequired() - 1
Reimplemented from CheckpointDriver.
The documentation for this class was generated from the following file:
- src/checkpoint.hpp