13#ifndef roofit_roofitcore_RooFit_UniqueId_h
14#define roofit_roofitcore_RooFit_UniqueId_h
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
UniqueId< Class > getUniqueId(Class const *ptr)
A helper function to replace pointer comparisons with UniqueId comparisons.
A UniqueId can be added as a class member to enhance any class with a unique identifier for each inst...
bool operator==(UniqueId const &other) const
UniqueId & operator=(UniqueId &&)=delete
static std::atomic< Value_t > counter
Numerical value of the ID.
UniqueId(const UniqueId &)=delete
UniqueId()
Create a new UniqueId with the next value from the static counter.
static const UniqueId nullid
Value_t _val
The value of the nullid.
UniqueId(UniqueId &&)=delete
UniqueId & operator=(const UniqueId &)=delete
bool operator<(UniqueId const &other) const
static constexpr Value_t nullval
An ID that is less than the ID of any object (similar to nullptr).
constexpr Value_t value() const
Return numerical value of ID.