open62541pp 0.17.0
C++ wrapper of open62541
|
#include <types.hpp>
UA_NodeId wrapper class.
Public Member Functions | |
NodeId (NamespaceIndex namespaceIndex, uint32_t identifier) noexcept | |
NodeId (NamespaceIndex namespaceIndex, std::string_view identifier) | |
NodeId (NamespaceIndex namespaceIndex, Guid identifier) noexcept | |
NodeId (NamespaceIndex namespaceIndex, ByteString identifier) noexcept | |
template<typename T , typename = std::enable_if_t<detail::IsNodeIdEnum<T>::value>> | |
NodeId (T identifier) noexcept | |
bool | isNull () const noexcept |
uint32_t | hash () const noexcept |
NamespaceIndex | namespaceIndex () const noexcept |
NamespaceIndex | getNamespaceIndex () const noexcept |
NodeIdType | identifierType () const noexcept |
NodeIdType | getIdentifierType () const noexcept |
template<typename T > | |
T * | identifierIf () noexcept |
template<typename T > | |
const T * | identifierIf () const noexcept |
template<typename T > | |
T & | identifier () |
template<typename T > | |
const T & | identifier () const |
std::variant< uint32_t, String, Guid, ByteString > | getIdentifier () const |
template<typename T > | |
auto | getIdentifierAs () const |
template<NodeIdType E> | |
auto | getIdentifierAs () const |
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 |
![]() | |
constexpr | TypeWrapper () noexcept=default |
constexpr | TypeWrapper (const UA_NodeId &native) |
constexpr | TypeWrapper (UA_NodeId &&native) noexcept |
constexpr | TypeWrapper (const TypeWrapper &other) |
constexpr | TypeWrapper (TypeWrapper &&other) noexcept |
~TypeWrapper () | |
constexpr TypeWrapper & | operator= (const TypeWrapper &other) |
constexpr TypeWrapper & | operator= (const UA_NodeId &native) |
constexpr TypeWrapper & | operator= (TypeWrapper &&other) noexcept |
constexpr TypeWrapper & | operator= (UA_NodeId &&native) noexcept |
![]() | |
constexpr | Wrapper () noexcept=default |
constexpr | Wrapper (const UA_NodeId &native) noexcept |
constexpr | Wrapper (UA_NodeId &&native) noexcept |
constexpr Wrapper & | operator= (const UA_NodeId &native) noexcept |
constexpr Wrapper & | operator= (UA_NodeId &&native) noexcept |
constexpr | operator UA_NodeId & () noexcept |
constexpr | operator const UA_NodeId & () const noexcept |
constexpr UA_NodeId * | operator-> () noexcept |
constexpr const UA_NodeId * | operator-> () const noexcept |
constexpr UA_NodeId * | handle () noexcept |
constexpr const UA_NodeId * | handle () const noexcept |
constexpr void | swap (Wrapper &other) noexcept |
constexpr void | swap (UA_NodeId &native) noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator== (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator!= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator< (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator> (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator<= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator>= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
![]() | |
constexpr WrapperType * | asWrapper (NativeType *native) noexcept |
constexpr const WrapperType * | asWrapper (const NativeType *native) noexcept |
constexpr WrapperType & | asWrapper (NativeType &native) noexcept |
constexpr const WrapperType & | asWrapper (const NativeType &native) noexcept |
constexpr NativeType * | asNative (WrapperType *wrapper) noexcept |
constexpr const NativeType * | asNative (const WrapperType *wrapper) noexcept |
constexpr NativeType & | asNative (WrapperType &wrapper) noexcept |
constexpr const NativeType & | asNative (const WrapperType &wrapper) noexcept |
Additional Inherited Members | |
![]() | |
using | NativeType |
![]() | |
static constexpr TypeIndex | typeIndex () |
![]() | |
constexpr void | clear () noexcept |
![]() | |
constexpr const UA_NodeId & | native () const noexcept |
constexpr UA_NodeId & | native () noexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Create NodeId with ByteString identifier.
|
inlinenoexcept |
Create NodeId from enum class with numeric identifiers like opcua::ObjectId
.
The namespace is retrieved by calling e.g. namespaceOf(opcua::ObjectId)
. Make sure to provide an overload for custom enum types.
|
inlinenoexcept |
Definition at line 715 of file types.hpp.
Referenced by opcua::DataType::binaryEncodingId(), getNamespaceIndex(), NodeId(), NodeId(), NodeId(), and NodeId().
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 725 of file types.hpp.
Referenced by getIdentifierType(), and identifierIf().
|
inlinenoexcept |
|
inlinenoexcept |
Get identifier pointer or nullptr
on error.
T | Requested identifier type, should be either:
|
nullptr
if T
doesn't match the stored identifier type Definition at line 746 of file types.hpp.
Referenced by identifier().
|
inlinenoexcept |
Get identifier pointer or nullptr
on error.
T | Requested identifier type, should be either:
|
nullptr
if T
doesn't match the stored identifier type
|
inline |
Get identifier reference.
T | Requested identifier type, should be either:
|
TypeError | If the requested type T doesn't match the stored identifier type |
Definition at line 793 of file types.hpp.
Referenced by identifierIf(), NodeId(), NodeId(), NodeId(), NodeId(), and opcua::DataType::setBinaryEncodingId().
|
inline |
Get identifier reference.
T | Requested identifier type, should be either:
|
TypeError | If the requested type T doesn't match the stored identifier type |
|
inline |
Get identifier variant.
|
inline |
Get identifier by template type.
|
inline |
Get identifier by NodeIdType enum.
std::string opcua::NodeId::toString | ( | ) | const |
Encode NodeId as a string like ns=1;s=SomeNode
.
|
constexprdefaultnoexcept |
|
inlineexplicitconstexpr |
Constructor with native object (deep copy).
Definition at line 31 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Constructor with native object (move rvalue).
Definition at line 35 of file typewrapper.hpp.
|
inlineconstexpr |
Copy constructor (deep copy).
Definition at line 43 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Move constructor.
Definition at line 47 of file typewrapper.hpp.