51 #include "algorithms/engines/engine_types.h" 69 class DAAL_EXPORT BatchBase :
public daal::algorithms::Analysis<batch>
72 typedef algorithms::engines::Input InputType;
73 typedef algorithms::engines::Result ResultType;
78 virtual ~BatchBase() {}
86 services::Status saveState(byte* dest)
const 88 return saveStateImpl(dest);
97 services::Status loadState(
const byte* src)
99 return loadStateImpl(src);
109 services::Status leapfrog(
size_t threadIdx,
size_t nThreads)
111 return leapfrogImpl(threadIdx, nThreads);
120 services::Status skipAhead(
size_t nSkip)
122 return skipAheadImpl(nSkip);
130 services::SharedPtr<BatchBase> clone()
const 132 return services::SharedPtr<BatchBase>(cloneImpl());
136 virtual services::Status saveStateImpl(byte* dest)
const {
return services::Status(); }
137 virtual services::Status loadStateImpl(
const byte* src) {
return services::Status(); }
138 virtual services::Status leapfrogImpl(
size_t threadNum,
size_t nThreads) {
return services::Status(services::ErrorMethodNotSupported); }
139 virtual services::Status skipAheadImpl(
size_t nSkip) {
return services::Status(); }
140 virtual BatchBase *cloneImpl()
const = 0;
142 typedef services::SharedPtr<BatchBase> EnginePtr;
145 using interface1::BatchBase;
146 using interface1::EnginePtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::engines::interface1::BatchBase::clone
services::SharedPtr< BatchBase > clone() const
Definition: engine.h:130
daal::algorithms::engines::interface1::BatchBase::loadState
services::Status loadState(const byte *src)
Definition: engine.h:97
daal::algorithms::engines::interface1::BatchBase
Class representing an engine.
Definition: engine.h:69
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::engines::interface1::BatchBase::leapfrog
services::Status leapfrog(size_t threadIdx, size_t nThreads)
Definition: engine.h:109
daal::algorithms::engines::interface1::Result
Provides methods to access the result obtained with the compute() method of the engine.
Definition: engine_types.h:138
daal::algorithms::engines::interface1::BatchBase::skipAhead
services::Status skipAhead(size_t nSkip)
Definition: engine.h:120
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::engines::interface1::BatchBase::input
InputType input
Definition: engine.h:75
daal::algorithms::engines::interface1::BatchBase::saveState
services::Status saveState(byte *dest) const
Definition: engine.h:86
daal::services::ErrorMethodNotSupported
Definition: error_indexes.h:95