open62541pp 0.16.0
C++ wrapper of open62541
|
#include <typewrapper.hpp>
Template base class to wrap UA_*
type objects.
Zero cost abstraction to wrap the C API objects and delete them on destruction. The derived classes should implement specific constructors to convert from other data types.
Definition at line 24 of file typewrapper.hpp.
Public Member Functions | |
constexpr | TypeWrapper ()=default |
constexpr | TypeWrapper (const T &native) |
constexpr | TypeWrapper (T &&native) noexcept |
~TypeWrapper () | |
constexpr | TypeWrapper (const TypeWrapper &other) |
constexpr | TypeWrapper (TypeWrapper &&other) noexcept |
constexpr TypeWrapper & | operator= (const TypeWrapper &other) |
constexpr TypeWrapper & | operator= (const T &native) |
constexpr TypeWrapper & | operator= (TypeWrapper &&other) noexcept |
constexpr TypeWrapper & | operator= (T &&native) noexcept |
constexpr void | swap (TypeWrapper &other) noexcept |
constexpr void | swap (T &native) noexcept |
Public Member Functions inherited from opcua::Wrapper< T > | |
constexpr | Wrapper ()=default |
constexpr | Wrapper (const T &native) |
constexpr | Wrapper (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 |
Static Public Member Functions | |
static constexpr TypeIndex | getTypeIndex () |
Protected Member Functions | |
constexpr void | clear () noexcept |
Protected Member Functions inherited from opcua::Wrapper< T > | |
constexpr const T & | native () const noexcept |
constexpr T & | native () noexcept |
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< T > | |
using | NativeType = T |
|
constexprdefault |
|
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.
|
inline |
Definition at line 38 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.
|
inlineconstexpr |
Copy assignment (deep copy).
Definition at line 51 of file typewrapper.hpp.
|
inlineconstexpr |
Copy assignment with native object (deep copy).
Definition at line 60 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Move assignment.
Definition at line 69 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Move assignment with native object.
Definition at line 78 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Swap with wrapper object.
Definition at line 87 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Swap with native object.
Definition at line 93 of file typewrapper.hpp.
|
inlinestaticconstexpr |
Get type as type index of the UA_TYPES array.
Definition at line 99 of file typewrapper.hpp.
|
inlineconstexprprotectednoexcept |
Definition at line 104 of file typewrapper.hpp.
Referenced by opcua::TypeWrapper< T, typeIndex >::operator=(), opcua::TypeWrapper< T, typeIndex >::operator=(), opcua::TypeWrapper< T, typeIndex >::operator=(), opcua::TypeWrapper< T, typeIndex >::operator=(), and opcua::TypeWrapper< T, typeIndex >::~TypeWrapper().