SmartSoft Component-Developer API
Public Member Functions | Protected Member Functions | List of all members
Smart::NumericCorrelationId Class Reference

A simple ID realization using a size_t type internally. More...

#include <smartNumericCorrelationId.h>

Inheritance diagram for Smart::NumericCorrelationId:
Smart::ICorrelationId

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NumericCorrelationId()

Smart::NumericCorrelationId::NumericCorrelationId ( const size_t &  id = 0)
inline

◆ ~NumericCorrelationId()

virtual Smart::NumericCorrelationId::~NumericCorrelationId ( )
virtualdefault

Member Function Documentation

◆ equals_to()

virtual bool Smart::NumericCorrelationId::equals_to ( const ICorrelationId other) const
inlinefinaloverrideprotectedvirtual

Implements Smart::ICorrelationId.

◆ less_than()

virtual bool Smart::NumericCorrelationId::less_than ( const ICorrelationId other) const
inlinefinaloverrideprotectedvirtual

Implements Smart::ICorrelationId.

◆ operator size_t()

Smart::NumericCorrelationId::operator size_t ( ) const
inline

◆ operator++()

NumericCorrelationId Smart::NumericCorrelationId::operator++ ( int  )
inline

◆ to_string()

virtual std::string Smart::NumericCorrelationId::to_string ( ) const
inlinefinaloverridevirtual

Implements Smart::ICorrelationId.


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