SmartSoft Component-Developer API
|
A simple ID realization using a size_t type internally. More...
#include <smartNumericCorrelationId.h>
Public Member Functions | |
NumericCorrelationId (const size_t &id=0) | |
virtual | ~NumericCorrelationId ()=default |
operator size_t () const | |
NumericCorrelationId | operator++ (int) |
virtual std::string | to_string () const override final |
Public Member Functions inherited from Smart::ICorrelationId | |
virtual | ~ICorrelationId ()=default |
bool | operator< (const ICorrelationId &other) const |
bool | operator== (const ICorrelationId &other) const |
Protected Member Functions | |
virtual bool | less_than (const ICorrelationId *other) const override final |
virtual bool | equals_to (const ICorrelationId *other) const override final |
A simple ID realization using a size_t type internally.
This is the simplest-possible ID realization based on a simple numeric value. The drawback of this "oversimplified" ID realization is that it is likely not unique in a network as this ID realization does not encode the HOST, Time, Hash, etc. which is typically the case in more advanced ID implementations.
|
inline |
|
virtualdefault |
|
inlinefinaloverrideprotectedvirtual |
Implements Smart::ICorrelationId.
|
inlinefinaloverrideprotectedvirtual |
Implements Smart::ICorrelationId.
|
inline |
|
inline |
|
inlinefinaloverridevirtual |
Implements Smart::ICorrelationId.