LevelS C++ support library
3.83
|
#include <share_utils.h>
Public Member Functions | |
chunkMaker (uint64 s_full_, uint64 s_chunk_) | |
uint64 | nchunks () const |
bool | getNext (uint64 &start, uint64 &size) |
Helper class for dividing a range of work items into chunks of specified size.
Definition at line 61 of file share_utils.h.
|
inline |
Creates an object that produces chunk information for s_full_ work items and a desired chunk size of s_chunk_.
Definition at line 70 of file share_utils.h.
|
inline |
Returns the total number of chunks.
Definition at line 74 of file share_utils.h.
|
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 80 of file share_utils.h.