Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::MallocDirectChainedHashMap< KeyValueTrait > Class Template Reference

#include <hash_map.h>

Inheritance diagram for dart::MallocDirectChainedHashMap< KeyValueTrait >:
dart::BaseDirectChainedHashMap< KeyValueTrait, MallocAllocated, Malloc > dart::MallocAllocated

Public Member Functions

 MallocDirectChainedHashMap (intptr_t initial_size=MallocDirectChainedHashMap::kInitialSize)
 
 MallocDirectChainedHashMap (const MallocDirectChainedHashMap &other)
 
- Public Member Functions inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, MallocAllocated, Malloc >
 BaseDirectChainedHashMap (Malloc *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 dart::MallocAllocated
 MallocAllocated ()
 
void * operator new (size_t size)
 
void * operator new[] (size_t size)
 
void operator delete (void *pointer)
 
void operator delete[] (void *pointer)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, MallocAllocated, Malloc >
void Resize (intptr_t new_size)
 
- Protected Attributes inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, MallocAllocated, Malloc >
Malloc *const allocator_
 
uint32_t * hash_table_
 
KeyValueTrait::Pair * pairs_
 
uint32_t hash_table_size_
 
uint32_t pairs_size_
 
uint32_t next_pair_index_
 
uint32_t deleted_count_
 
- Static Protected Attributes inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, MallocAllocated, Malloc >
static constexpr intptr_t kInitialSize
 
static constexpr uint32_t kEmpty
 
static constexpr uint32_t kDeleted
 
static constexpr uint32_t kMaxPairs
 

Detailed Description

template<typename KeyValueTrait>
class dart::MallocDirectChainedHashMap< KeyValueTrait >

Definition at line 331 of file hash_map.h.

Constructor & Destructor Documentation

◆ MallocDirectChainedHashMap() [1/2]

template<typename KeyValueTrait >
dart::MallocDirectChainedHashMap< KeyValueTrait >::MallocDirectChainedHashMap ( intptr_t  initial_size = MallocDirectChainedHashMap< KeyValueTrait >::kInitialSize)
inline

Definition at line 334 of file hash_map.h.

336 : BaseDirectChainedHashMap<KeyValueTrait, MallocAllocated, Malloc>(
337 nullptr,
338 initial_size) {}

◆ MallocDirectChainedHashMap() [2/2]

template<typename KeyValueTrait >
dart::MallocDirectChainedHashMap< KeyValueTrait >::MallocDirectChainedHashMap ( const MallocDirectChainedHashMap< KeyValueTrait > &  other)
inline

Definition at line 342 of file hash_map.h.

343 : BaseDirectChainedHashMap<KeyValueTrait, MallocAllocated, Malloc>(
344 other) {}

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