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

Static Public Attributes | List of all members
String Class Reference

Class that implements functionality of the string, an object that represents a sequence of characters. More...

Static Public Attributes

static const int __DAAL_STR_MAX_SIZE
 

Class Declaration

Constructor & Destructor Documentation

String ( const char *  str,
size_t  capacity = 0 
)

Default constructor

Parameters
[in]strThe sequence of characters that forms the string
[in]capacityNumber of characters that will be allocated to store the string
String ( const String str)

Copy constructor

Parameters
[in]strThe sequence of characters that forms the string
~String ( )

Destructor

Member Function Documentation

void add ( const String str)

Extends the string by appending additional characters at the end of its current value

Parameters
[in]strA string object whose values are copied at the end
const char* c_str ( ) const

Returns the content of the string as array of characters

Returns
The content of the string as array of characters
char get ( size_t  index) const

Returns the pointer to a character of the string

Parameters
[in]indexIndex of the character
Returns
Pointer to the character of the string
size_t length ( ) const

Returns the number of characters in the string

Returns
The number of characters in the string
String& operator+ ( const String str)

Extends the string by appending additional characters at the end of its current value

Parameters
[in]strA string object whose values are copied at the end
char operator[] ( size_t  index) const

Returns the pointer to a character of the string

Parameters
[in]indexIndex of the character
Returns
Pointer to the character of the string

Member Data Documentation

const int __DAAL_STR_MAX_SIZE
static

Maximal length of the string


The documentation for this class was generated from the following file:

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