#include <share_utils.h>
Public Member Functions | |
chunkMaker (uint64 s_full_, uint64 s_chunk_) | |
uint64 | nchunks () const |
bool | getNext (uint64 &start, uint64 &size) |
Definition at line 60 of file share_utils.h.
chunkMaker::chunkMaker | ( | uint64 | s_full_, | |
uint64 | s_chunk_ | |||
) | [inline] |
Creates an object that produces chunk information for s_full_ work items and a desired chunk size of s_chunk_.
Definition at line 69 of file share_utils.h.
uint64 chunkMaker::nchunks | ( | ) | const [inline] |
Returns the total number of chunks.
Definition at line 73 of file share_utils.h.
bool chunkMaker::getNext | ( | uint64 & | start, | |
uint64 & | size | |||
) | [inline] |
Returns the start index of the next chunk in start, and its size in size. If all chunks have been processed already, the return value is false, else true.
Definition at line 79 of file share_utils.h.