48 #ifndef __ENGINE__TYPES__H__ 49 #define __ENGINE__TYPES__H__ 51 #include "algorithms/algorithm.h" 52 #include "services/daal_defines.h" 53 #include "data_management/data/numeric_table.h" 54 #include "data_management/data/homogen_numeric_table.h" 98 class DAAL_EXPORT Input :
public daal::algorithms::Input
106 Input(
const Input& other);
115 data_management::NumericTablePtr
get(InputId id)
const;
122 void set(InputId id,
const data_management::NumericTablePtr &ptr);
131 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
138 class DAAL_EXPORT Result :
public daal::algorithms::Result
154 template <
typename algorithmFPType>
155 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
162 data_management::NumericTablePtr
get(ResultId id)
const;
169 void set(ResultId id,
const data_management::NumericTablePtr &ptr);
179 virtual services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
183 template<
typename Archive,
bool onDeserialize>
184 services::Status serialImpl(Archive *arch)
186 daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
188 return services::Status();
191 services::Status serializeImpl(data_management::InputDataArchive *arch) DAAL_C11_OVERRIDE
193 serialImpl<data_management::InputDataArchive, false>(arch);
195 return services::Status();
198 services::Status deserializeImpl(
const data_management::OutputDataArchive *arch) DAAL_C11_OVERRIDE
200 serialImpl<const data_management::OutputDataArchive, true>(arch);
202 return services::Status();
205 typedef services::SharedPtr<Result> ResultPtr;
207 using interface1::Input;
208 using interface1::Result;
209 using interface1::ResultPtr;
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::interface1::Result
Base class to represent final results of the computation. Algorithm-specific final results are repres...
Definition: algorithm_types.h:331
daal::algorithms::engines::interface1::Result::deserializeImpl
services::Status deserializeImpl(const data_management::OutputDataArchive *arch) DAAL_C11_OVERRIDE
Definition: engine_types.h:198
daal::algorithms::engines::InputId
InputId
Definition: engine_types.h:75
daal::algorithms::engines::tableToFill
Definition: engine_types.h:77
daal::algorithms::engines::ResultId
ResultId
Definition: engine_types.h:84
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::algorithms::engines::randomNumbers
Definition: engine_types.h:86
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::Result
Provides methods to access the result obtained with the compute() method of the engine.
Definition: engine_types.h:138
daal::data_management::interface1::OutputDataArchive
Provides methods to restore an object from its serialized counterpart and access the restored object...
Definition: data_archive.h:978
daal::algorithms::engines::interface1::Result::serializeImpl
services::Status serializeImpl(data_management::InputDataArchive *arch) DAAL_C11_OVERRIDE
Definition: engine_types.h:191