Flutter Engine
The Flutter Engine
|
#include <hash_map.h>
Classes | |
class | Iterator |
Public Member Functions | |
BaseDirectChainedHashMap (Allocator *allocator, intptr_t initial_size=kInitialSize) | |
BaseDirectChainedHashMap (const BaseDirectChainedHashMap &other) | |
intptr_t | Length () const |
~BaseDirectChainedHashMap () | |
void | Insert (typename KeyValueTrait::Pair kv) |
bool | Remove (typename KeyValueTrait::Key key) |
void | Update (typename KeyValueTrait::Pair kv) |
KeyValueTrait::Value | LookupValue (typename KeyValueTrait::Key key) const |
KeyValueTrait::Pair * | Lookup (typename KeyValueTrait::Key key) const |
bool | HasKey (typename KeyValueTrait::Key key) const |
intptr_t | Size () const |
bool | IsEmpty () const |
void | Clear () |
Iterator | GetIterator () const |
Public Member Functions inherited from B | |
B () | |
void | setValues (int v) override |
bool | checkValues (int v) override |
Public Member Functions inherited from A | |
A () | |
virtual void | setValues (int v) |
virtual bool | checkValues (int v) |
virtual | ~A () |
void * | operator new (size_t size) |
void | operator delete (void *p) |
Protected Member Functions | |
void | Resize (intptr_t new_size) |
Protected Attributes | |
Allocator *const | allocator_ |
uint32_t * | hash_table_ = nullptr |
KeyValueTrait::Pair * | pairs_ = nullptr |
uint32_t | hash_table_size_ = 0 |
uint32_t | pairs_size_ = 0 |
uint32_t | next_pair_index_ = 0 |
uint32_t | deleted_count_ = 0 |
Static Protected Attributes | |
static constexpr intptr_t | kInitialSize = 16 |
static constexpr uint32_t | kEmpty = kMaxUint32 |
static constexpr uint32_t | kDeleted = kMaxUint32 - 1 |
static constexpr uint32_t | kMaxPairs = kMaxUint32 - 2 |
Additional Inherited Members | |
Static Public Member Functions inherited from A | |
static A * | Create (SkRandom *r) |
static void | SetAllocator (size_t preallocSize, size_t minAllocSize) |
static void | ResetAllocator () |
static void | ValidatePool () |
Definition at line 17 of file hash_map.h.
|
inlineexplicit |
Definition at line 19 of file hash_map.h.
dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::BaseDirectChainedHashMap | ( | const BaseDirectChainedHashMap< KeyValueTrait, B, Allocator > & | other | ) |
Definition at line 111 of file hash_map.h.
|
inline |
Definition at line 29 of file hash_map.h.
|
inline |
Definition at line 59 of file hash_map.h.
|
inline |
Definition at line 87 of file hash_map.h.
|
inline |
Definition at line 52 of file hash_map.h.
void dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Insert | ( | typename KeyValueTrait::Pair | kv | ) |
Definition at line 230 of file hash_map.h.
|
inline |
Definition at line 57 of file hash_map.h.
|
inline |
Definition at line 27 of file hash_map.h.
KeyValueTrait::Pair * dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Lookup | ( | typename KeyValueTrait::Key | key | ) | const |
Definition at line 130 of file hash_map.h.
KeyValueTrait::Value dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::LookupValue | ( | typename KeyValueTrait::Key | key | ) | const |
Definition at line 159 of file hash_map.h.
bool dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Remove | ( | typename KeyValueTrait::Key | key | ) |
Definition at line 275 of file hash_map.h.
|
protected |
Definition at line 184 of file hash_map.h.
|
inline |
Definition at line 56 of file hash_map.h.
void dart::BaseDirectChainedHashMap< KeyValueTrait, B, Allocator >::Update | ( | typename KeyValueTrait::Pair | kv | ) |
Definition at line 261 of file hash_map.h.
|
protected |
Definition at line 94 of file hash_map.h.
|
protected |
Definition at line 100 of file hash_map.h.
|
protected |
Definition at line 95 of file hash_map.h.
|
protected |
Definition at line 97 of file hash_map.h.
|
staticconstexprprotected |
Definition at line 103 of file hash_map.h.
|
staticconstexprprotected |
Definition at line 102 of file hash_map.h.
|
staticconstexprprotected |
Definition at line 90 of file hash_map.h.
|
staticconstexprprotected |
Definition at line 104 of file hash_map.h.
|
protected |
Definition at line 99 of file hash_map.h.
|
protected |
Definition at line 96 of file hash_map.h.
|
protected |
Definition at line 98 of file hash_map.h.