MCPcopy Create free account
hub / github.com/apache/arrow / Equals

Method Equals

cpp/src/arrow/c/bridge_test.cc:1351–1356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349 const char* type_name() const override { return kMyDeviceTypeName; }
1350 std::string ToString() const override { return kMyDeviceTypeName; }
1351 bool Equals(const Device& other) const override {
1352 if (other.type_name() != kMyDeviceTypeName || other.device_type() != device_type()) {
1353 return false;
1354 }
1355 return checked_cast<const MyDevice&>(other).value_ == value_;
1356 }
1357 DeviceAllocationType device_type() const override {
1358 return static_cast<DeviceAllocationType>(kMyDeviceType);
1359 }

Callers

nothing calls this directly

Calls 3

device_typeFunction · 0.50
type_nameMethod · 0.45
device_typeMethod · 0.45

Tested by

no test coverage detected