27#include "neml2/dispatchers/WorkGenerator.h"
44 virtual std::size_t
total()
const = 0;
Interface for work generators that generate a fixed number of batches, i.e., the total amount of work...
Definition FixedSizeWorkGenerator.h:38
virtual std::size_t total() const =0
Total (fixed) number of batches that will be generated.
bool has_more() const override
Whether the generator has more work to generate.
Definition FixedSizeWorkGenerator.h:41
std::size_t offset() const
Return the current offset, i.e., the number of batches that have been generated.
Definition WorkGenerator.h:65
Definition DiagnosticsInterface.cxx:30