PLCnext API Documentation 25.0.2.69
Public Types | Public Member Functions | List of all members
Arp::System::Nm::IdType< T, TypeTag > Class Template Reference

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_typeoperator= (const self_type &) noexcept=default
 
self_typeoperator= (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
 

Detailed Description

template<typename T, typename TypeTag>
class Arp::System::Nm::IdType< T, TypeTag >

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.

Constructor & Destructor Documentation

◆ IdType()

template<typename T , typename TypeTag >
constexpr Arp::System::Nm::IdType< T, TypeTag >::IdType ( value)
inlineexplicitconstexprnoexcept

Creates an id with a given value

This function should only be used in tests. Normally all ids are generated by the NotificationManager.


The documentation for this class was generated from the following file: