22 #ifndef __ENGINE__TYPES__H__
23 #define __ENGINE__TYPES__H__
25 #include "algorithms/algorithm.h"
26 #include "services/daal_defines.h"
27 #include "data_management/data/numeric_table.h"
28 #include "data_management/data/homogen_numeric_table.h"
72 class DAAL_EXPORT Input :
public daal::algorithms::Input
80 Input(
const Input& other);
89 data_management::NumericTablePtr
get(InputId id)
const;
96 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
105 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
112 class DAAL_EXPORT Result :
public daal::algorithms::Result
128 template <
typename algorithmFPType>
129 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
136 data_management::NumericTablePtr
get(ResultId id)
const;
143 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
153 virtual services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
157 template<
typename Archive,
bool onDeserialize>
158 services::Status serialImpl(Archive *arch)
160 daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
162 return services::Status();
165 services::Status serializeImpl(data_management::InputDataArchive *arch) DAAL_C11_OVERRIDE
167 serialImpl<data_management::InputDataArchive, false>(arch);
169 return services::Status();
172 services::Status deserializeImpl(
const data_management::OutputDataArchive *arch) DAAL_C11_OVERRIDE
174 serialImpl<const data_management::OutputDataArchive, true>(arch);
176 return services::Status();
179 typedef services::SharedPtr<Result> ResultPtr;
181 using interface1::Input;
182 using interface1::Result;
183 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::engines::InputId
InputId
Definition: engine_types.h:49
daal::algorithms::engines::interface1::Result
Provides methods to access the result obtained with the compute() method of the engine.
Definition: engine_types.h:112
daal::algorithms::engines::tableToFill
Definition: engine_types.h:51
daal::algorithms::engines::randomNumbers
Definition: engine_types.h:60
daal::algorithms::engines::ResultId
ResultId
Definition: engine_types.h:58