producer class interface that threaditer used as source to preduce the content
More...
#include <threadediter.h>
|
virtual | ~Producer ()=default |
|
virtual void | BeforeFirst (void) |
| reset the producer to beginning More...
|
|
virtual bool | Next (DType **inout_dptr)=0 |
| load the data content into DType, the caller can pass in NULL or an existing address when inout_dptr is NULL: producer need to allocate a DType and fill the content when inout_dptr is specified producer takes need to fill the content into address specified inout_dptr, or delete the one and create a new one More...
|
|
template<typename DType>
class dmlc::ThreadedIter< DType >::Producer
producer class interface that threaditer used as source to preduce the content
template<typename DType >
template<typename DType >
reset the producer to beginning
template<typename DType >
load the data content into DType, the caller can pass in NULL or an existing address when inout_dptr is NULL: producer need to allocate a DType and fill the content when inout_dptr is specified producer takes need to fill the content into address specified inout_dptr, or delete the one and create a new one
- Parameters
-
inout_dptr | used to pass in the data holder cell and return the address of the cell filled |
- Returns
- true if there is next record, false if we reach the end
The documentation for this class was generated from the following file: