13#ifndef roofit_roofitcore_RooFit_UniqueId_h
14#define roofit_roofitcore_RooFit_UniqueId_h
88 class UniqueId_t = std::remove_reference_t<
decltype(std::declval<std::remove_pointer_t<Class>>().uniqueId())>>
91 return ptr ? ptr->uniqueId() : UniqueId_t::nullid();
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
UniqueId_t const & getUniqueId(Class const *ptr)
A helper function to replace pointer comparisons with UniqueId comparisons.
bool operator==(UniqueId const &other) const
UniqueId & operator=(UniqueId &&)=delete
UniqueId(const UniqueId &)=delete
UniqueId()
Create a new UniqueId with the next value from the static counter.
static std::atomic< Value_t > counter
UniqueId(UniqueId &&)=delete
static UniqueId const & nullid()
Get an ID that is less than the ID of any object (similar to nullptr).
UniqueId & operator=(const UniqueId &)=delete
bool operator<(UniqueId const &other) const
static constexpr Value_t nullval
constexpr Value_t value() const
Return numerical value of ID.