| IOLink 1.11.0

Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
iolink::UidGenerator Class Reference

A collection of fonctions and constant useful for managing unique identifiers. More...

`#include <iolink/UidGenerator.h>`

## Static Public Member Functions
static uint64_t | generate ()
| Generate a random unique identifier.

## Static Public Attributes
static const uint64_t | UNDEFINED_UID
| Special UID that describes undefined ones.

## Detailed Description

A collection of fonctions and constant useful for managing unique identifiers.

## Member Function Documentation

## ◆ generate()

static uint64_t iolink::UidGenerator::generate | ( |  | ) |
| static

Generate a random unique identifier.

This function will never return a value equal to UNDEFINED_UID.

## Member Data Documentation

## ◆ UNDEFINED_UID

const uint64_t iolink::UidGenerator::UNDEFINED_UID
| static

Special UID that describes undefined ones.

An undefined identifier being one that cannot be identified as unique, it can be used to describe a non-existing or invalid object.

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

- iolink/public/include/iolink/UidGenerator.h