open62541pp 0.17.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::String Class Reference

#include <types.hpp>

Inheritance diagram for opcua::String:
[legend]

Detailed Description

Public Member Functions

 String (std::string_view str)
 
template<typename InputIt >
 String (InputIt first, InputIt last)
 
 String (std::initializer_list< char > values)
 
Stringoperator= (const char *str)
 
template<typename Traits >
Stringoperator= (std::basic_string_view< char, Traits > str)
 
template<typename Traits >
 operator std::basic_string_view< char, Traits > () const noexcept
 
std::string_view get () const noexcept
 
constexpr TypeWrapper () noexcept=default
 
constexpr TypeWrapper (const T &native)
 
constexpr TypeWrapper (T &&native) noexcept
 
constexpr TypeWrapper (const TypeWrapper &other)
 
constexpr TypeWrapper (TypeWrapper &&other) noexcept
 
- Public Member Functions inherited from opcua::TypeWrapper< UA_String, UA_TYPES_STRING >
constexpr TypeWrapper () noexcept=default
 
constexpr TypeWrapper (const UA_String &native)
 
constexpr TypeWrapper (UA_String &&native) noexcept
 
constexpr TypeWrapper (const TypeWrapper &other)
 
constexpr TypeWrapper (TypeWrapper &&other) noexcept
 
 ~TypeWrapper ()
 
constexpr TypeWrapperoperator= (const TypeWrapper &other)
 
constexpr TypeWrapperoperator= (const UA_String &native)
 
constexpr TypeWrapperoperator= (TypeWrapper &&other) noexcept
 
constexpr TypeWrapperoperator= (UA_String &&native) noexcept
 
- Public Member Functions inherited from opcua::Wrapper< UA_String >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const UA_String &native) noexcept
 
constexpr Wrapper (UA_String &&native) noexcept
 
constexpr Wrapperoperator= (const UA_String &native) noexcept
 
constexpr Wrapperoperator= (UA_String &&native) noexcept
 
constexpr operator UA_String & () noexcept
 
constexpr operator const UA_String & () const noexcept
 
constexpr UA_Stringoperator-> () noexcept
 
constexpr const UA_Stringoperator-> () const noexcept
 
constexpr UA_Stringhandle () noexcept
 
constexpr const UA_Stringhandle () const noexcept
 
constexpr void swap (Wrapper &other) noexcept
 
constexpr void swap (UA_String &native) noexcept
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const UA_String &lhs, const UA_String &rhs) noexcept
 
bool operator!= (const UA_String &lhs, const UA_String &rhs) noexcept
 
bool operator== (const String &lhs, std::string_view rhs) noexcept
 
bool operator!= (const String &lhs, std::string_view rhs) noexcept
 
bool operator== (std::string_view lhs, const String &rhs) noexcept
 
bool operator!= (std::string_view lhs, const String &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const String &str)
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< UA_String >
using NativeType
 
- Static Public Member Functions inherited from opcua::TypeWrapper< UA_String, UA_TYPES_STRING >
static constexpr TypeIndex typeIndex ()
 
- Protected Member Functions inherited from opcua::TypeWrapper< UA_String, UA_TYPES_STRING >
constexpr void clear () noexcept
 
- Protected Member Functions inherited from opcua::Wrapper< UA_String >
constexpr const UA_Stringnative () const noexcept
 
constexpr UA_Stringnative () noexcept
 

Constructor & Destructor Documentation

◆ String() [1/3]

opcua::String::String ( std::string_view str)
inlineexplicit

Definition at line 260 of file types.hpp.

◆ String() [2/3]

template<typename InputIt >
opcua::String::String ( InputIt first,
InputIt last )
inline

Definition at line 264 of file types.hpp.

◆ String() [3/3]

opcua::String::String ( std::initializer_list< char > values)
inline

Definition at line 268 of file types.hpp.

Member Function Documentation

◆ operator=() [1/2]

String & opcua::String::operator= ( const char * str)
inline

Assign null-termined character string.

Definition at line 273 of file types.hpp.

◆ operator=() [2/2]

template<typename Traits >
String & opcua::String::operator= ( std::basic_string_view< char, Traits > str)
inline

Assign std::string_view.

Definition at line 280 of file types.hpp.

◆ operator std::basic_string_view< char, Traits >()

template<typename Traits >
opcua::String::operator std::basic_string_view< char, Traits > ( ) const
inlinenoexcept

Implicit conversion to std::string_view.

Definition at line 287 of file types.hpp.

◆ get()

std::string_view opcua::String::get ( ) const
inlinenoexcept
Deprecated
Use conversion with static_cast instead

Definition at line 293 of file types.hpp.

◆ TypeWrapper() [1/5]

opcua::TypeWrapper< T, Index >::TypeWrapper ( )
constexprdefaultnoexcept

◆ TypeWrapper() [2/5]

opcua::TypeWrapper< T, Index >::TypeWrapper ( const T & native)
inlineexplicitconstexpr

Constructor with native object (deep copy).

Definition at line 31 of file typewrapper.hpp.

◆ TypeWrapper() [3/5]

opcua::TypeWrapper< T, Index >::TypeWrapper ( T && native)
inlineconstexprnoexcept

Constructor with native object (move rvalue).

Definition at line 35 of file typewrapper.hpp.

◆ TypeWrapper() [4/5]

opcua::TypeWrapper< T, Index >::TypeWrapper ( const TypeWrapper & other)
inlineconstexpr

Copy constructor (deep copy).

Definition at line 43 of file typewrapper.hpp.

◆ TypeWrapper() [5/5]

opcua::TypeWrapper< T, Index >::TypeWrapper ( TypeWrapper && other)
inlineconstexprnoexcept

Move constructor.

Definition at line 47 of file typewrapper.hpp.

Friends And Related Symbol Documentation

◆ operator==() [1/3]

bool operator== ( const UA_String & lhs,
const UA_String & rhs )
related

Definition at line 299 of file types.hpp.

◆ operator!=() [1/3]

bool operator!= ( const UA_String & lhs,
const UA_String & rhs )
related

Definition at line 304 of file types.hpp.

◆ operator==() [2/3]

bool operator== ( const String & lhs,
std::string_view rhs )
related

Definition at line 309 of file types.hpp.

◆ operator!=() [2/3]

bool operator!= ( const String & lhs,
std::string_view rhs )
related

Definition at line 314 of file types.hpp.

◆ operator==() [3/3]

bool operator== ( std::string_view lhs,
const String & rhs )
related

Definition at line 319 of file types.hpp.

◆ operator!=() [3/3]

bool operator!= ( std::string_view lhs,
const String & rhs )
related

Definition at line 324 of file types.hpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const String & str )
related