![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <small-map.h>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef NormalMap::key_type | key_type |
typedef NormalMap::mapped_type | data_type |
typedef NormalMap::mapped_type | mapped_type |
typedef NormalMap::value_type | value_type |
typedef EqualKey | key_equal |
Public Member Functions | |
SmallMap () | |
SmallMap (const MapInit &functor) | |
SmallMap (const SmallMap &src) V8_NOEXCEPT | |
void | operator= (const SmallMap &src) V8_NOEXCEPT |
~SmallMap () | |
iterator | find (const key_type &key) |
const_iterator | find (const key_type &key) const |
data_type & | operator[] (const key_type &key) |
std::pair< iterator, bool > | insert (const value_type &x) |
template<class InputIterator > | |
void | insert (InputIterator f, InputIterator l) |
template<typename... Args> | |
std::pair< iterator, bool > | emplace (Args &&... args) |
template<typename... Args> | |
std::pair< iterator, bool > | try_emplace (const key_type &key, Args &&... args) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | clear () |
iterator | erase (const iterator &position) |
size_t | erase (const key_type &key) |
size_t | count (const key_type &key) const |
size_t | size () const |
bool | empty () const |
bool | UsingFullMap () const |
V8_INLINE NormalMap * | map () |
V8_INLINE const NormalMap * | map () const |
Private Member Functions | |
V8_NOINLINE V8_PRESERVE_MOST void | ConvertToRealMap () |
void | InitFrom (const SmallMap &src) |
void | Destroy () |
Private Attributes | ||
size_t | size_ | |
MapInit | functor_ | |
union { | ||
value_type array_ [kArraySize] | ||
NormalMap map_ | ||
}; | ||
Static Private Attributes | |
static constexpr size_t | kUsingFullMapSentinel |
Definition at line 141 of file small-map.h.
NormalMap::mapped_type v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::data_type |
Definition at line 151 of file small-map.h.
EqualKey v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::key_equal |
Definition at line 154 of file small-map.h.
NormalMap::key_type v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::key_type |
Definition at line 150 of file small-map.h.
NormalMap::mapped_type v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::mapped_type |
Definition at line 152 of file small-map.h.
NormalMap::value_type v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::value_type |
Definition at line 153 of file small-map.h.
|
inline |
Definition at line 156 of file small-map.h.
|
inlineexplicit |
Definition at line 158 of file small-map.h.
|
inline |
|
inline |
|
inline |
Definition at line 479 of file small-map.h.
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inlineprivate |
Definition at line 616 of file small-map.h.
|
inline |
Definition at line 422 of file small-map.h.
|
inline |
Definition at line 543 of file small-map.h.
|
inline |
Definition at line 488 of file small-map.h.
|
inline |
|
inline |
Definition at line 509 of file small-map.h.
|
inline |
|
inline |
Definition at line 329 of file small-map.h.
|
inline |
|
inlineprivate |
|
inline |
Definition at line 386 of file small-map.h.
|
inline |
|
inline |
Definition at line 549 of file small-map.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 541 of file small-map.h.
|
inline |
|
inline |
union { ... } v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit > |
value_type v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::array_[kArraySize] |
Definition at line 571 of file small-map.h.
|
private |
Definition at line 565 of file small-map.h.
|
staticconstexprprivate |
Definition at line 142 of file small-map.h.
NormalMap v8::base::SmallMap< NormalMap, kArraySize, EqualKey, MapInit >::map_ |
Definition at line 572 of file small-map.h.
|
private |
Definition at line 563 of file small-map.h.