24 #ifndef __ENGINE__TYPES__H__
25 #define __ENGINE__TYPES__H__
27 #include "algorithms/algorithm.h"
28 #include "services/daal_defines.h"
29 #include "data_management/data/numeric_table.h"
30 #include "data_management/data/homogen_numeric_table.h"
74 class DAAL_EXPORT Input :
public daal::algorithms::Input
82 Input(
const Input& other);
91 data_management::NumericTablePtr
get(InputId id)
const;
98 void set(InputId
id,
const data_management::NumericTablePtr &ptr);
107 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
114 class DAAL_EXPORT Result :
public daal::algorithms::Result
130 template <
typename algorithmFPType>
131 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
138 data_management::NumericTablePtr
get(ResultId id)
const;
145 void set(ResultId
id,
const data_management::NumericTablePtr &ptr);
155 virtual services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
159 template<
typename Archive,
bool onDeserialize>
160 services::Status serialImpl(Archive *arch)
162 daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
164 return services::Status();
167 services::Status serializeImpl(data_management::InputDataArchive *arch) DAAL_C11_OVERRIDE
169 serialImpl<data_management::InputDataArchive, false>(arch);
171 return services::Status();
174 services::Status deserializeImpl(
const data_management::OutputDataArchive *arch) DAAL_C11_OVERRIDE
176 serialImpl<const data_management::OutputDataArchive, true>(arch);
178 return services::Status();
181 typedef services::SharedPtr<Result> ResultPtr;
183 using interface1::Input;
184 using interface1::Result;
185 using interface1::ResultPtr;
daal::algorithms::engines::interface1::Result
Provides methods to access the result obtained with the compute() method of the engine.
Definition: engine_types.h:114
daal::algorithms::engines::ResultId
ResultId
Definition: engine_types.h:60
daal::algorithms::engines::randomNumbers
Definition: engine_types.h:62
daal::algorithms::engines::tableToFill
Definition: engine_types.h:53
daal::algorithms::engines::InputId
InputId
Definition: engine_types.h:51
daal::algorithms::engines::interface1::Input
Input objects for engines
Definition: engine_types.h:74