PLCnext API Documentation 25.0.2.69
|
Representation of an unique id More...
#include <IdType.hpp>
Public Types | |
using | type = T |
using | self_type = IdType< T, TypeTag > |
Public Member Functions | |
constexpr | IdType () noexcept=default |
Creates an invalid id | |
constexpr | IdType (T value) noexcept |
Creates an id with a given value More... | |
constexpr | IdType (const self_type &) noexcept=default |
IdType (IdType &&other) noexcept | |
self_type & | operator= (const self_type &) noexcept=default |
self_type & | operator= (IdType &&other) noexcept |
constexpr bool | operator< (const self_type &rhs) const noexcept |
constexpr bool | operator== (const self_type &rhs) const noexcept |
constexpr bool | operator!= (const self_type &rhs) const noexcept |
constexpr bool | IsValid () const noexcept |
Returns true if this object represents a valid id (!= 0) | |
constexpr T | GetValue () const noexcept |
Returns the underlying value | |
Representation of an unique id
The template parameter T is the the underlying type. The template parameter TypeTag is used to create a unique type.
|
inlineexplicitconstexprnoexcept |
Creates an id with a given value
This function should only be used in tests. Normally all ids are generated by the NotificationManager.