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

#include <hash_map.h>

Inheritance diagram for dart::ZoneDirectChainedHashMap< KeyValueTrait >:
dart::BaseDirectChainedHashMap< KeyValueTrait, ZoneAllocated, Zone > dart::ZoneAllocated

Public Member Functions

 ZoneDirectChainedHashMap ()
 
 ZoneDirectChainedHashMap (Zone *zone, intptr_t initial_size=ZoneDirectChainedHashMap::kInitialSize)
 
- Public Member Functions inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, ZoneAllocated, Zone >
 BaseDirectChainedHashMap (Zone *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::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, ZoneAllocated, Zone >
void Resize (intptr_t new_size)
 
- Protected Attributes inherited from dart::BaseDirectChainedHashMap< KeyValueTrait, ZoneAllocated, Zone >
Zone *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, ZoneAllocated, Zone >
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::ZoneDirectChainedHashMap< KeyValueTrait >

Definition at line 351 of file hash_map.h.

Constructor & Destructor Documentation

◆ ZoneDirectChainedHashMap() [1/2]

template<typename KeyValueTrait >
dart::ZoneDirectChainedHashMap< KeyValueTrait >::ZoneDirectChainedHashMap ( )
inline

Definition at line 354 of file hash_map.h.

355 : BaseDirectChainedHashMap<KeyValueTrait, ZoneAllocated, Zone>(
356 ThreadState::Current()->zone()) {}
static ThreadState * Current()

◆ ZoneDirectChainedHashMap() [2/2]

template<typename KeyValueTrait >
dart::ZoneDirectChainedHashMap< KeyValueTrait >::ZoneDirectChainedHashMap ( Zone zone,
intptr_t  initial_size = ZoneDirectChainedHashMap< KeyValueTrait >::kInitialSize 
)
inlineexplicit

Definition at line 357 of file hash_map.h.

360 : BaseDirectChainedHashMap<KeyValueTrait, ZoneAllocated, Zone>(
361 zone,
362 initial_size) {}

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