C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 5

data_source_options.h
1 /* file: data_source_options.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 #ifndef __DATA_SOURCE_INTERNAL_DATA_SOURCE_OPTIONS__
17 #define __DATA_SOURCE_INTERNAL_DATA_SOURCE_OPTIONS__
18 
19 namespace daal
20 {
21 namespace data_management
22 {
23 namespace internal
24 {
25 
30 template<typename Value>
31 class DataSourceOptionsImpl
32 {
33 public:
34  static Value unite(const Value &lhs, const Value &rhs)
35  {
36  return (Value)( (int)lhs | (int)rhs );
37  }
38 
39  explicit DataSourceOptionsImpl(Value flags) :
40  _value(flags) { }
41 
42  bool getFlag(Value flag) const
43  {
44  return ((int)_value & (int)flag) != 0;
45  }
46 
47 private:
48  Value _value;
49 };
50 
51 
52 } // namespace internal
53 } // namespace data_management
54 } // namespace daal
55 
56 #endif
daal
Definition: algorithm_base_common.h:31
daal::data_management::internal::DataSourceOptionsImpl
Class that helps to define data source options.
Definition: data_source_options.h:31

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