C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

engine_family.h
1 /* file: engine_family.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Implementation engine.
21 //--
22 */
23 
24 #ifndef __ENGINE_FAMILY_H__
25 #define __ENGINE_FAMILY_H__
26 
27 #include "algorithms/engines/engine.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 namespace engines
34 {
39 namespace interface1
40 {
45 class DAAL_EXPORT FamilyBatchBase : public engines::BatchBase
46 {
47 public:
48  typedef engines::BatchBase super;
49 
50  typedef super::InputType InputType;
51  typedef super::ResultType ResultType;
52 
53  FamilyBatchBase();
54  virtual ~FamilyBatchBase() {}
55 
62  services::Status add(size_t numberOfStreams);
63 
70  services::SharedPtr<FamilyBatchBase> get(size_t i) const;
71 
77  size_t getNumberOfStreams() const;
78 
84  size_t getMaxNumberOfStreams() const;
85 
86 protected:
87  virtual services::Status addImpl(size_t numberOfStreams) { return services::Status(); }
88  virtual services::SharedPtr<FamilyBatchBase> getImpl(size_t i) const { return services::SharedPtr<FamilyBatchBase>(); }
89  virtual size_t getNumberOfStreamsImpl() const { return 0; }
90  virtual size_t getMaxNumberOfStreamsImpl() const { return 0; }
91 
92  FamilyBatchBase(const FamilyBatchBase &other);
93 };
94 typedef services::SharedPtr<FamilyBatchBase> FamilyEnginePtr;
95 
96 } // namespace interface1
97 using interface1::FamilyBatchBase;
98 using interface1::FamilyEnginePtr;
100 } // namespace engines
101 } // namespace algorithms
102 } // namespace daal
103 #endif
daal::algorithms::engines::interface1::FamilyBatchBase
Class representing an engine that has collection of independent streams obtained from RNGs from same ...
Definition: engine_family.h:45

For more complete information about compiler optimizations, see our Optimization Notice.