Definition at line 17 of file hashmap_test.cc.
◆ IntSet()
Definition at line 19 of file hashmap_test.cc.
static uint32_t hash(const SkShaderBase::GradientInfo &v)
static bool SamePointerValue(void *key1, void *key2)
static intptr_t kInitialSize
◆ Clear()
void dart::IntSet::Clear |
( |
| ) |
|
|
inline |
◆ Insert()
void dart::IntSet::Insert |
( |
int |
x | ) |
|
|
inline |
Definition at line 22 of file hashmap_test.cc.
22 {
25 map_.
Lookup(
reinterpret_cast<void*
>(
x), hash_(
x),
true);
27 EXPECT_EQ(
reinterpret_cast<void*
>(
x),
p->key);
28
29 }
Entry * Lookup(void *key, uint32_t hash, bool insert)
◆ occupancy()
uint32_t dart::IntSet::occupancy |
( |
| ) |
const |
|
inline |
Definition at line 47 of file hashmap_test.cc.
47 {
52 }
53 EXPECT_EQ(map_.occupancy_,
count);
55 }
Entry * Next(Entry *p) const
◆ Present()
bool dart::IntSet::Present |
( |
int |
x | ) |
|
|
inline |
Definition at line 36 of file hashmap_test.cc.
36 {
38 map_.
Lookup(
reinterpret_cast<void*
>(
x), hash_(
x),
false);
40 EXPECT_EQ(
reinterpret_cast<void*
>(
x),
p->key);
41 }
43 }
◆ Remove()
void dart::IntSet::Remove |
( |
int |
x | ) |
|
|
inline |
Definition at line 31 of file hashmap_test.cc.
31 {
33 map_.
Remove(
reinterpret_cast<void*
>(
x), hash_(
x));
34 }
void Remove(void *key, uint32_t hash)
The documentation for this class was generated from the following file: