open62541pp 0.19.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
Public Member Functions | Related Symbols | List of all members
opcua::String Class Reference

#include <types.hpp>

Inheritance diagram for opcua::String:
[legend]

Detailed Description

UA_String wrapper class.

Examples
custom_datatypes/client_custom_datatypes.cpp, custom_datatypes/custom_datatypes.hpp, custom_datatypes/server_custom_datatypes.cpp, events/server_events.cpp, method/client_method.cpp, method/client_method_async.cpp, method/server_method.cpp, and server_accesscontrol.cpp.

Definition at line 254 of file types.hpp.

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
 
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const Wrapper &other)
 
constexpr Wrapper (const T &native)
 
constexpr Wrapper (Wrapper &&other) noexcept
 
constexpr Wrapper (T &&native) noexcept
 
- Public Member Functions inherited from opcua::Wrapper< T, Handler >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const Wrapper &other)
 
constexpr Wrapper (const T &native)
 
constexpr Wrapper (Wrapper &&other) noexcept
 
constexpr Wrapper (T &&native) noexcept
 
 ~Wrapper () noexcept=default
 
constexpr Wrapperoperator= (const Wrapper &other)
 
constexpr Wrapperoperator= (const T &native)
 
constexpr Wrapperoperator= (Wrapper &&other) noexcept
 
constexpr Wrapperoperator= (T &&native) noexcept
 
constexpr operator T& () noexcept
 
constexpr operator const T & () const noexcept
 
constexpr T * operator-> () noexcept
 
constexpr const T * operator-> () const noexcept
 
constexpr T * handle () noexcept
 
constexpr const T * handle () const noexcept
 
constexpr void swap (Wrapper &other) noexcept
 
constexpr void swap (T &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, const String &rhs) noexcept
 
bool operator!= (const String &lhs, const 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< T, Handler >
using NativeType = T
 
using HandlerType = Handler
 
- Protected Member Functions inherited from opcua::Wrapper< T, Handler >
constexpr const T & native () const noexcept
 
constexpr T & native () noexcept
 
constexpr void clear () 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 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.

◆ 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.

◆ Wrapper() [1/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( )
constexprdefaultnoexcept

◆ Wrapper() [2/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( const T &  native)
inlineexplicitconstexpr

Copy constructor with native object.

Definition at line 151 of file wrapper.hpp.

◆ Wrapper() [3/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( const Wrapper other)
inlineconstexpr

Copy constructor.

Definition at line 147 of file wrapper.hpp.

◆ Wrapper() [4/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( T &&  native)
inlineconstexprnoexcept

Move constructor with native object.

Definition at line 159 of file wrapper.hpp.

◆ Wrapper() [5/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( Wrapper &&  other)
inlineconstexprnoexcept

Move constructor.

Definition at line 155 of file wrapper.hpp.

Friends And Related Symbol Documentation

◆ operator!=() [1/4]

bool operator!= ( const String lhs,
const String rhs 
)
related

Definition at line 308 of file types.hpp.

◆ operator!=() [2/4]

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

Definition at line 318 of file types.hpp.

◆ operator!=() [3/4]

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

Definition at line 298 of file types.hpp.

◆ operator!=() [4/4]

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

Definition at line 328 of file types.hpp.

◆ operator<<()

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

◆ operator==() [1/4]

bool operator== ( const String lhs,
const String rhs 
)
related

Definition at line 303 of file types.hpp.

◆ operator==() [2/4]

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

Definition at line 313 of file types.hpp.

◆ operator==() [3/4]

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

Definition at line 293 of file types.hpp.

◆ operator==() [4/4]

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

Definition at line 323 of file types.hpp.