2 * Copyright 2013, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
18 BUuid(const BUuid
& other
);
25 BString
ToString() const;
27 int Compare(const BUuid
& other
) const;
29 inline bool operator==(const BUuid
& other
) const;
30 inline bool operator!=(const BUuid
& other
) const;
32 inline bool operator<(const BUuid
& other
) const;
33 inline bool operator>(const BUuid
& other
) const;
34 inline bool operator<=(const BUuid
& other
) const;
35 inline bool operator>=(const BUuid
& other
) const;
37 BUuid
& operator=(const BUuid
& other
);
40 bool _SetToDevRandom();
41 void _SetToRandomFallback();
49 BUuid::operator==(const BUuid
& other
) const
51 return Compare(other
) == 0;
56 BUuid::operator!=(const BUuid
& other
) const
58 return Compare(other
) != 0;
63 BUuid::operator<(const BUuid
& other
) const
65 return Compare(other
) < 0;
70 BUuid::operator>(const BUuid
& other
) const
72 return Compare(other
) > 0;
77 BUuid::operator<=(const BUuid
& other
) const
79 return Compare(other
) <= 0;
84 BUuid::operator>=(const BUuid
& other
) const
86 return Compare(other
) >= 0;
90 } // namespace BPrivate
93 using BPrivate::BUuid
;