Applies a mapping to each item in the nested loader.
|
| MapDataLoader (std::unique_ptr< DataLoader > loader, MapFunction func=nullptr, int parallelCalls=0, bool verbose=false) |
| Constructs a mapping loader.
|
|
| MapDataLoader (std::unique_ptr< DataLoader > loader, const std::string &funcName, int parallelCalls=0, bool verbose=false) |
| Constructs a mapping loader.
|
|
| MapDataLoader (DataLoaderList dataLoaders, const Properties &prop) |
|
std::optional< DataItem > | next () override |
| Advance the loader by one iteration.
|
|
std::optional< size_t > | size () const override |
| Size of the loader, has value only for fixed cardinalities.
|
|
void | reset () override |
| Reset the loader in order to restart the iteration.
|
|
void | configure (const Properties *prop) override |
| Configure this object instance by de-serializing the given Properties.
|
|
void | setParallelCalls (int parallelCalls) |
|
int | parallelCalls () const |
|
void | setFunction (MapFunction func) |
|
| DataLoader (std::string name, bool verbose=false) |
| Constructor to be used by DataReaders, as they are the first elements in the chain.
|
|
| DataLoader (std::string name, std::unique_ptr< DataLoader > loader, bool verbose=false) |
| Constructor to be used by all other derived DataLoaders.
|
|
| DataLoader (std::string name, DataLoaderList &&dataLoaders, bool verbose=false) |
| Constructor to be used by all other derived DataLoaders.
|
|
const std::string & | name () const |
| Name of the loader.
|
|
virtual void | reinit () |
| Reinitialize the loader state, cleaning it up if necessary Overload this method if your loader has state that must survive reset (i.e.
|
|
virtual Cardinality | cardinality () const |
| Cardinality of this specific loader node.
|
|
DataLoader * | singleUnderlyingLoader () const |
| Return a single underlying dataloader Expects there to be only one, returns a nullptr otherwise.
|
|
std::unique_ptr< DataLoader > | extractDataloader () |
| Return a single underlying dataloader Expects there to be only one, throws an exception otherwise.
|
|
DataLoaderList & | loaders () |
|
DataLoaderList const & | loaders () const |
|
bool | verbose () const |
|
virtual void | setRandomSeed (unsigned int seed) |
|
virtual Status | canBePrefetched () const |
| Indicates whether a loader is eligible for prefetching.
|
|
const std::string & | logDomain () const |
| Log domain for AdvancedParameter.
|
|
virtual void | configuration (Properties *p) const |
| Serialize the current object configuration into the given Properties object.
|
|
virtual void | configureDefaults () |
| Retrieve the properties of this object, replaces values with their defaults and sets it again.
|
|
void | registerParameter (ParameterBase *param) |
| Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
|
|
void | unregisterParameter (const ParameterBase *param) |
| Remove the given Parameter or SubProperty from the list of registered parameters.
|
|
| Configurable (const Configurable &rhs) |
|
| Configurable (Configurable &&rhs) noexcept |
|
Configurable & | operator= (const Configurable &) |
|
Configurable & | operator= (Configurable &&) noexcept |
|