C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

daal_string.h
1 
2 /*******************************************************************************
3 * Copyright 2014-2018 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 /*
17 //++
18 // Intel(R) DAAL string class.
19 //--
20 */
21 
22 #ifndef __DAAL_STRING__
23 #define __DAAL_STRING__
24 
25 #include "base.h"
26 
27 namespace daal
28 {
29 namespace services
30 {
31 
32 namespace interface1
33 {
43 class DAAL_EXPORT String : public Base
44 {
45 public:
51  String(const char *str, size_t capacity = 0);
52 
57  String(const String &str);
58 
62  ~String();
63 
68  size_t length() const;
69 
74  void add(const String &str);
75 
80  String &operator+ (const String &str);
81 
87  char operator[] (size_t index) const;
88 
94  char get(size_t index) const;
95 
100  const char *c_str() const;
101 
102  static const int __DAAL_STR_MAX_SIZE;
104 private:
105  char *_c_str;
106 
107  void initialize(const char *str, const size_t length);
108 };
110 } // namespace interface1
111 using interface1::String;
112 
113 }
114 }
115 #endif
daal
Definition: algorithm_base_common.h:31
daal::services::interface1::String::__DAAL_STR_MAX_SIZE
static const int __DAAL_STR_MAX_SIZE
Definition: daal_string.h:102
daal::Base
Base class for Intel(R) Data Analytics Acceleration Library objects
Definition: base.h:39
daal::services::interface1::String
Class that implements functionality of the string, an object that represents a sequence of characters...
Definition: daal_string.h:43

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