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

#include <types.hpp>

Inheritance diagram for opcua::Guid:
[legend]

Detailed Description

UA_Guid wrapper class.

See also
https://reference.opcfoundation.org/Core/Part6/v105/docs/5.1.3

Definition at line 491 of file types.hpp.

Public Member Functions

 Guid (std::array< uint8_t, 16 > data) noexcept
 
 Guid (uint32_t data1, uint16_t data2, uint16_t data3, std::array< uint8_t, 8 > data4) noexcept
 
std::string toString () const
 
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_Guid, UA_TYPES_GUID >
constexpr TypeWrapper () noexcept=default
 
constexpr TypeWrapper (const UA_Guid &native)
 
constexpr TypeWrapper (UA_Guid &&native) noexcept
 
constexpr TypeWrapper (const TypeWrapper &other)
 
constexpr TypeWrapper (TypeWrapper &&other) noexcept
 
 ~TypeWrapper ()
 
constexpr TypeWrapperoperator= (const TypeWrapper &other)
 
constexpr TypeWrapperoperator= (const UA_Guid &native)
 
constexpr TypeWrapperoperator= (TypeWrapper &&other) noexcept
 
constexpr TypeWrapperoperator= (UA_Guid &&native) noexcept
 
- Public Member Functions inherited from opcua::Wrapper< T >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const T &native) noexcept
 
constexpr Wrapper (T &&native) noexcept
 
constexpr Wrapperoperator= (const T &native) 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
 

Static Public Member Functions

static Guid random () noexcept
 
static Guid parse (std::string_view str)
 
- Static Public Member Functions inherited from opcua::TypeWrapper< UA_Guid, UA_TYPES_GUID >
static constexpr TypeIndex typeIndex ()
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const UA_Guid &lhs, const UA_Guid &rhs) noexcept
 
bool operator!= (const UA_Guid &lhs, const UA_Guid &rhs) noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< T >
using NativeType = T
 
- Protected Member Functions inherited from opcua::TypeWrapper< UA_Guid, UA_TYPES_GUID >
constexpr void clear () noexcept
 
- Protected Member Functions inherited from opcua::Wrapper< T >
constexpr const T & native () const noexcept
 
constexpr T & native () noexcept
 

Constructor & Destructor Documentation

◆ Guid() [1/2]

opcua::Guid::Guid ( std::array< uint8_t, 16 >  data)
inlineexplicitnoexcept

Definition at line 495 of file types.hpp.

◆ Guid() [2/2]

opcua::Guid::Guid ( uint32_t  data1,
uint16_t  data2,
uint16_t  data3,
std::array< uint8_t, 8 >  data4 
)
inlinenoexcept

Definition at line 507 of file types.hpp.

Member Function Documentation

◆ random()

static Guid opcua::Guid::random ( )
inlinestaticnoexcept

Generate random Guid.

Definition at line 516 of file types.hpp.

◆ parse()

static Guid opcua::Guid::parse ( std::string_view  str)
inlinestatic

Parse Guid from its string representation.

Format: C496578A-0DFE-4B8F-870A-745238C6AEAE.

Definition at line 523 of file types.hpp.

◆ toString()

std::string opcua::Guid::toString ( ) const
Deprecated:
Use free function opcua::toString(const T&) instead

◆ TypeWrapper() [1/5]

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

◆ TypeWrapper() [2/5]

constexpr 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]

constexpr 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]

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

Copy constructor (deep copy).

Definition at line 43 of file typewrapper.hpp.

◆ TypeWrapper() [5/5]

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

Move constructor.

Definition at line 47 of file typewrapper.hpp.

Friends And Related Symbol Documentation

◆ operator==()

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

Definition at line 536 of file types.hpp.

◆ operator!=()

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

Definition at line 541 of file types.hpp.