Home | History | Annotate | Download | only in bluetooth

Lines Matching defs:UUID

28 class UUID {
38 // Creates and returns a random 128-bit UUID.
39 static UUID GetRandom();
41 // Creates and returns a UUID in which all 128 bits are equal to 0.
42 static UUID GetNil();
44 // Creates and returns a UUID in which all 128 bits are equal to 1.
45 static UUID GetMax();
47 // Construct a Bluetooth 'base' UUID.
48 UUID();
49 virtual ~UUID() = default;
52 explicit UUID(const bt_uuid_t& uuid);
55 explicit UUID(std::string uuid);
58 explicit UUID(const UUID16Bit& uuid);
59 explicit UUID(const UUID32Bit& uuid);
60 explicit UUID(const UUID128Bit& uuid);
71 // Returns a string representation for the UUID.
74 // Returns whether or not this UUID was initialized correctly.
77 // Returns the shortest possible representation of this UUID in bytes.
80 bool operator<(const UUID& rhs) const;
81 bool operator==(const UUID& rhs) const;
82 inline bool operator!=(const UUID& rhs) const { return !(*this == rhs); }
90 // True if this UUID was initialized with a correct representation.
96 // Custom std::hash specialization so that bluetooth::UUID can be used as a key
101 struct hash<bluetooth::UUID> {
102 std::size_t operator()(const bluetooth::UUID& key) const {