v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy > Class Template Reference

#include <hashmap.h>

Inheritance diagram for v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >:
Collaboration diagram for v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >:

Classes

class  Iterator
 
struct  value_type
 

Public Member Functions

 TemplateHashMap (MatchFun match, AllocationPolicy allocator=AllocationPolicy())
 
Iterator begin () const
 
Iterator end () const
 
Iterator find (Key *key, bool insert=false)
 

Private Types

using Base
 
- Private Types inherited from v8::base::TemplateHashMapImpl< void *, void *, HashEqualityThenKeyMatcher< void *, MatchFun >, AllocationPolicy >
using Entry
 

Additional Inherited Members

- Private Member Functions inherited from v8::base::TemplateHashMapImpl< void *, void *, HashEqualityThenKeyMatcher< void *, MatchFun >, AllocationPolicy >
 TemplateHashMapImpl (uint32_t capacity=kDefaultHashMapCapacity, MatchFun match=MatchFun(), AllocationPolicy allocator=AllocationPolicy())
 
 TemplateHashMapImpl (const TemplateHashMapImpl &)=delete
 
 TemplateHashMapImpl (const TemplateHashMapImpl *original, AllocationPolicy allocator=AllocationPolicy())
 
 TemplateHashMapImpl (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
TemplateHashMapImploperator= (const TemplateHashMapImpl &)=delete
 
TemplateHashMapImploperator= (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
 ~TemplateHashMapImpl ()
 
EntryLookup (const void *&key, uint32_t hash) const
 
EntryLookupOrInsert (const void *&key, uint32_t hash)
 
EntryLookupOrInsert (const void *&key, uint32_t hash, const Func &value_func)
 
EntryLookupOrInsert (const LookupKey &lookup_key, uint32_t hash, const KeyFunc &key_func, const ValueFunc &value_func)
 
EntryInsertNew (const void *&key, uint32_t hash)
 
void * Remove (const void *&key, uint32_t hash)
 
void Clear ()
 
void Invalidate ()
 
uint32_t occupancy () const
 
uint32_t capacity () const
 
EntryStart () const
 
EntryNext (Entry *entry) const
 
AllocationPolicy allocator () const
 
void Initialize (uint32_t capacity)
 
- Static Private Attributes inherited from v8::base::TemplateHashMapImpl< void *, void *, HashEqualityThenKeyMatcher< void *, MatchFun >, AllocationPolicy >
static const uint32_t kDefaultHashMapCapacity
 

Detailed Description

template<class Key, class Value, class MatchFun, class AllocationPolicy>
class v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >

Definition at line 524 of file hashmap.h.

Member Typedef Documentation

◆ Base

template<class Key , class Value , class MatchFun , class AllocationPolicy >
using v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >::Base
private
Initial value:
TemplateHashMapImpl<void*, void*,
HashEqualityThenKeyMatcher<void*, MatchFun>,
AllocationPolicy>
TemplateHashMapImpl(uint32_t capacity=kDefaultHashMapCapacity, MatchFun match=MatchFun(), AllocationPolicy allocator=AllocationPolicy())
Definition hashmap.h:186

Definition at line 528 of file hashmap.h.

Constructor & Destructor Documentation

◆ TemplateHashMap()

template<class Key , class Value , class MatchFun , class AllocationPolicy >
v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >::TemplateHashMap ( MatchFun match,
AllocationPolicy allocator = AllocationPolicy() )
inlineexplicit

Definition at line 560 of file hashmap.h.

Member Function Documentation

◆ begin()

template<class Key , class Value , class MatchFun , class AllocationPolicy >
Iterator v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >::begin ( ) const
inline

Definition at line 565 of file hashmap.h.

Here is the call graph for this function:

◆ end()

template<class Key , class Value , class MatchFun , class AllocationPolicy >
Iterator v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >::end ( ) const
inline

Definition at line 566 of file hashmap.h.

◆ find()

template<class Key , class Value , class MatchFun , class AllocationPolicy >
Iterator v8::base::TemplateHashMap< Key, Value, MatchFun, AllocationPolicy >::find ( Key * key,
bool insert = false )
inline

Definition at line 567 of file hashmap.h.

Here is the call graph for this function:

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