7 #define ID_DATATYPE unsigned long
25 virtual ~ID() =
default;
ID()
Default constructor, provides a new unique ID to each entity.
bool operator==(const ID &id) const
ID_DATATYPE id() const
returns the ID of the entity
static std::atomic< ID_DATATYPE > __idCounter
void setID(ID_DATATYPE id)