|
RTI Connext Modern C++ API
Version 6.0.0
|
<<value-type>> A string convertible to std::string and with similar functionality More...
#include <dds/core/String.hpp>
Public Member Functions | |
| basic_string () | |
| Creates an empty string. | |
| basic_string (const basic_string &other) | |
| Copy constructor. | |
| basic_string (const CharType *other_str) | |
| Constructor from C string. | |
| basic_string (const std::basic_string< CharType > &std_string) | |
Constructor from std::basic_string. | |
| basic_string (size_t the_size) | |
| Creates a string of a given size, initialized to '\0'. | |
| basic_string (basic_string &&other) OMG_NOEXCEPT | |
| <<C++11>> Move constructor | |
| const CharType * | c_str () const |
| Gets the underlying C string. | |
| size_type | size () const |
| Gets the size. | |
| basic_string & | operator= (const basic_string &other) |
| Assignment operator. | |
| basic_string & | operator= (basic_string &&other) OMG_NOEXCEPT |
| <<C++11>> Move-assignment operator | |
| bool | operator== (const basic_string &other) const |
| Returns if two strings are equal. | |
| bool | operator!= (const basic_string &other) const |
| Returns if two strings are different. | |
| std::basic_string< CharType > | to_std_string () const |
Creates a std::basic_string from this dds::core::basic_string. | |
| operator std::basic_string< CharType > () const | |
Creates a std::string from this dds::core::string. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename CharType , typename Allocator > | |
| std::ostream & | operator<< (std::ostream &out, const basic_string< CharType, Allocator > &the_string) |
| Prints the string. | |
<<value-type>> A string convertible to std::string and with similar functionality
In many cases, for performance reasons and other implementation requirements, the RTI Connext API uses dds::core::string instead of std::string. The most significant case is the C++ types that rtiddsgen generates from IDL.
A dds::core::string provides a subset of the functionality of a std::string. It also provides automatic conversion to and from std::string.
|
inline |
Creates an empty string.
|
inline |
Copy constructor.
|
inline |
Constructor from C string.
|
inline |
Constructor from std::basic_string.
|
inlineexplicit |
Creates a string of a given size, initialized to '\0'.
|
inline |
<<C++11>> Move constructor
|
inline |
Gets the underlying C string.
|
inline |
Gets the size.
|
inline |
Assignment operator.
|
inline |
<<C++11>> Move-assignment operator
|
inline |
Returns if two strings are equal.
|
inline |
Returns if two strings are different.
|
inline |
Creates a std::basic_string from this dds::core::basic_string.
|
inline |
Creates a std::string from this dds::core::string.
|
related |
Prints the string.