Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::TestValue Class Reference

Public Member Functions

 TestValue (intptr_t x)
 
uword Hash () const
 
bool Equals (const TestValue &other)
 

Detailed Description

Definition at line 11 of file hash_map_test.cc.

Constructor & Destructor Documentation

◆ TestValue()

dart::TestValue::TestValue ( intptr_t  x)
inlineexplicit

Definition at line 13 of file hash_map_test.cc.

13: x_(x) {}
double x

Member Function Documentation

◆ Equals()

bool dart::TestValue::Equals ( const TestValue other)
inline

Definition at line 17 of file hash_map_test.cc.

17{ return x_ == other.x_; }

◆ Hash()

uword dart::TestValue::Hash ( ) const
inline

Definition at line 16 of file hash_map_test.cc.

16{ return FinalizeHash(static_cast<uint32_t>(x_) & 1); }
uint32_t FinalizeHash(uint32_t hash, intptr_t hashbits=kBitsPerInt32)
Definition hash.h:20

The documentation for this class was generated from the following file: