2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include <Referenceable.h>
12 class ObjectID
: public BReferenceable
{
17 inline uint32
HashValue() const;
19 virtual bool operator==(const ObjectID
& other
) const = 0;
20 inline bool operator!=(const ObjectID
& other
) const;
23 virtual uint32
ComputeHashValue() const = 0;
26 mutable uint32 fHashValue
;
31 ObjectID::HashValue() const
34 fHashValue
= ComputeHashValue();
40 ObjectID::operator!=(const ObjectID
& other
) const
42 return !(*this == other
);