V8 Project
|
#include <hashmap.h>
Classes | |
class | Iterator |
struct | value_type |
Public Member Functions | |
STATIC_ASSERT (sizeof(Key *)==sizeof(void *)) | |
STATIC_ASSERT (sizeof(Value *)==sizeof(void *)) | |
TemplateHashMap (typename TemplateHashMapImpl< AllocationPolicy >::MatchFun match, AllocationPolicy allocator=AllocationPolicy()) | |
Iterator | begin () const |
Iterator | end () const |
Iterator | find (Key *key, bool insert=false, AllocationPolicy allocator=AllocationPolicy()) |
Additional Inherited Members | |
![]() | |
typedef bool(* | MatchFun) (void *key1, void *key2) |
![]() | |
TemplateHashMapImpl (MatchFun match, uint32_t capacity=kDefaultHashMapCapacity, AllocationPolicy allocator=AllocationPolicy()) | |
~TemplateHashMapImpl () | |
Entry * | Lookup (void *key, uint32_t hash, bool insert, AllocationPolicy allocator=AllocationPolicy()) |
void * | Remove (void *key, uint32_t hash) |
void | Clear () |
uint32_t | occupancy () const |
uint32_t | capacity () const |
Entry * | Start () const |
Entry * | Next (Entry *p) const |
![]() | |
static bool | PointersMatch (void *key1, void *key2) |
![]() | |
static const uint32_t | kDefaultHashMapCapacity = 8 |
|
inline |
Definition at line 329 of file hashmap.h.
|
inline |
Definition at line 337 of file hashmap.h.
References v8::internal::TemplateHashMapImpl< AllocationPolicy >::Start().
|
inline |
Definition at line 338 of file hashmap.h.
References NULL.
|
inline |
Definition at line 339 of file hashmap.h.
References v8::internal::TemplateHashMapImpl< AllocationPolicy >::Lookup().
v8::internal::TemplateHashMap< Key, Value, AllocationPolicy >::STATIC_ASSERT | ( | sizeof(Key *) | = =sizeof(void *) | ) |
v8::internal::TemplateHashMap< Key, Value, AllocationPolicy >::STATIC_ASSERT | ( | sizeof(Value *) | = =sizeof(void *) | ) |