v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TemplateHashMapImpl< AllocationPolicy > Class Template Reference

#include <hashmap.h>

Inheritance diagram for TemplateHashMapImpl< AllocationPolicy >:

Data Structures

struct  Entry
 

Public Types

typedef bool(* MatchFun )(void *key1, void *key2)
 

Public Member Functions

 TemplateHashMapImpl (MatchFun match, uint32_t capacity=kDefaultHashMapCapacity, AllocationPolicy allocator=AllocationPolicy())
 
 ~TemplateHashMapImpl ()
 
EntryLookup (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
 
EntryStart () const
 
EntryNext (Entry *p) const
 

Static Public Attributes

static const uint32_t kDefaultHashMapCapacity = 8
 

Detailed Description

template<class AllocationPolicy>
class v8::internal::TemplateHashMapImpl< AllocationPolicy >

Definition at line 39 of file hashmap.h.

Member Typedef Documentation

typedef bool(* MatchFun)(void *key1, void *key2)

Definition at line 41 of file hashmap.h.

Constructor & Destructor Documentation

TemplateHashMapImpl ( MatchFun  match,
uint32_t  capacity = kDefaultHashMapCapacity,
AllocationPolicy  allocator = AllocationPolicy() 
)

Definition at line 116 of file hashmap.h.

Definition at line 124 of file hashmap.h.

Member Function Documentation

uint32_t capacity ( ) const
inline
void Clear ( )

Definition at line 224 of file hashmap.h.

References v8::internal::NULL.

Referenced by HeapObjectsSet::Clear(), and LargeObjectSpace::SetUp().

Field Documentation

const uint32_t kDefaultHashMapCapacity = 8
static

Definition at line 46 of file hashmap.h.


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