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

#include <types.hpp>

Inheritance diagram for opcua::NumericRange:
[legend]

Detailed Description

UA_NumericRange wrapper class.

Numeric ranges indicate subsets of (multidimensional) arrays. They are no official data type in the OPC UA standard and are transmitted only with a string encoding, such as "1:2,0:3,5". The colon separates min/max index and the comma separates dimensions. A single value indicates a range with a single element (min==max).

See also
https://reference.opcfoundation.org/Core/Part4/v105/docs/7.27
Examples
server_datasource.cpp, and server_valuecallback.cpp.

Definition at line 2459 of file types.hpp.

Public Member Functions

 NumericRange ()=default
 
 NumericRange (std::string_view encodedRange)
 
 NumericRange (const char *encodedRange)
 
 NumericRange (Span< const NumericRangeDimension > dimensions)
 
 NumericRange (const UA_NumericRange &native)
 
 NumericRange (UA_NumericRange &&native) noexcept
 
 ~NumericRange ()
 
 NumericRange (const NumericRange &other)
 
 NumericRange (NumericRange &&other) noexcept
 
NumericRangeoperator= (const NumericRange &other)
 
NumericRangeoperator= (NumericRange &&other) noexcept
 
bool empty () const noexcept
 
Span< const NumericRangeDimensiondimensions () const noexcept
 
std::string toString () const
 
- Public Member Functions inherited from opcua::Wrapper< UA_NumericRange >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const UA_NumericRange &native) noexcept
 
constexpr Wrapper (UA_NumericRange &&native) noexcept
 
constexpr Wrapperoperator= (const UA_NumericRange &native) noexcept
 
constexpr Wrapperoperator= (UA_NumericRange &&native) noexcept
 
constexpr operator UA_NumericRange & () noexcept
 
constexpr operator const UA_NumericRange & () const noexcept
 
constexpr UA_NumericRangeoperator-> () noexcept
 
constexpr const UA_NumericRangeoperator-> () const noexcept
 
constexpr UA_NumericRangehandle () noexcept
 
constexpr const UA_NumericRangehandle () const noexcept
 
constexpr void swap (Wrapper &other) noexcept
 
constexpr void swap (UA_NumericRange &native) noexcept
 

Related Symbols

(Note that these are not member symbols.)

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

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< UA_NumericRange >
using NativeType = UA_NumericRange
 
- Protected Member Functions inherited from opcua::Wrapper< UA_NumericRange >
constexpr const UA_NumericRangenative () const noexcept
 
constexpr UA_NumericRangenative () noexcept
 

Constructor & Destructor Documentation

◆ NumericRange() [1/8]

opcua::NumericRange::NumericRange ( )
default

◆ NumericRange() [2/8]

opcua::NumericRange::NumericRange ( std::string_view  encodedRange)
explicit

Create a NumericRange from the encoded representation, e.g. 1:2,0:3,5.

◆ NumericRange() [3/8]

opcua::NumericRange::NumericRange ( const char *  encodedRange)
inlineexplicit

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 2467 of file types.hpp.

◆ NumericRange() [4/8]

opcua::NumericRange::NumericRange ( Span< const NumericRangeDimension dimensions)
inlineexplicit

Create a NumericRange from dimensions.

Definition at line 2471 of file types.hpp.

◆ NumericRange() [5/8]

opcua::NumericRange::NumericRange ( const UA_NumericRange native)
inlineexplicit

Create a NumericRange from native object (copy).

Definition at line 2475 of file types.hpp.

◆ NumericRange() [6/8]

opcua::NumericRange::NumericRange ( UA_NumericRange &&  native)
inlinenoexcept

Create a NumericRange from native object (move).

Definition at line 2479 of file types.hpp.

◆ ~NumericRange()

opcua::NumericRange::~NumericRange ( )
inline

Definition at line 2482 of file types.hpp.

◆ NumericRange() [7/8]

opcua::NumericRange::NumericRange ( const NumericRange other)
inline

Definition at line 2486 of file types.hpp.

◆ NumericRange() [8/8]

opcua::NumericRange::NumericRange ( NumericRange &&  other)
inlinenoexcept

Definition at line 2489 of file types.hpp.

Member Function Documentation

◆ operator=() [1/2]

NumericRange & opcua::NumericRange::operator= ( const NumericRange other)
inline

Definition at line 2492 of file types.hpp.

◆ operator=() [2/2]

NumericRange & opcua::NumericRange::operator= ( NumericRange &&  other)
inlinenoexcept

Definition at line 2500 of file types.hpp.

◆ empty()

bool opcua::NumericRange::empty ( ) const
inlinenoexcept

Definition at line 2508 of file types.hpp.

◆ dimensions()

Span< const NumericRangeDimension > opcua::NumericRange::dimensions ( ) const
inlinenoexcept

Definition at line 2512 of file types.hpp.

◆ toString()

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

Friends And Related Symbol Documentation

◆ operator==()

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

Definition at line 2435 of file types.hpp.

◆ operator!=()

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

Definition at line 2442 of file types.hpp.