![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <small-vector.h>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| SmallVector ()=default | |
| SmallVector (const Allocator &allocator) | |
| V8_INLINE | SmallVector (size_t size, const Allocator &allocator=Allocator()) |
| V8_INLINE | SmallVector (size_t size, const T &initial_value, const Allocator &allocator=Allocator()) |
| SmallVector (const SmallVector &other) V8_NOEXCEPT | |
| SmallVector (const SmallVector &other, const Allocator &allocator) V8_NOEXCEPT | |
| SmallVector (SmallVector &&other) V8_NOEXCEPT | |
| SmallVector (SmallVector &&other, const Allocator &allocator) V8_NOEXCEPT | |
| V8_INLINE | SmallVector (std::initializer_list< T > init, const Allocator &allocator=Allocator()) |
| V8_INLINE | SmallVector (base::Vector< const T > init, const Allocator &allocator=Allocator()) |
| ~SmallVector () | |
| SmallVector & | operator= (const SmallVector &other) V8_NOEXCEPT |
| SmallVector & | operator= (SmallVector &&other) V8_NOEXCEPT |
| T * | data () |
| const T * | data () const |
| T * | begin () |
| const T * | begin () const |
| T * | end () |
| const T * | end () const |
| auto | rbegin () |
| auto | rbegin () const |
| auto | rend () |
| auto | rend () const |
| size_t | size () const |
| bool | empty () const |
| size_t | capacity () const |
| T & | front () |
| const T & | front () const |
| T & | back () |
| const T & | back () const |
| T & | at (size_t index) |
| T & | operator[] (size_t index) |
| const T & | at (size_t index) const |
| const T & | operator[] (size_t index) const |
| template<typename... Args> | |
| void | emplace_back (Args &&... args) |
| void | push_back (T x) |
| void | pop_back (size_t count=1) |
| T * | insert (T *pos, const T &value) |
| T * | insert (T *pos, size_t count, const T &value) |
| template<typename It > | |
| T * | insert (T *pos, It begin, It end) |
| T * | insert (T *pos, std::initializer_list< T > values) |
| void | erase (T *erase_start) |
| void | resize (size_t new_size) |
| void | resize (size_t new_size, const T &initial_value) |
| void | reserve (size_t new_capacity) |
| void | clear () |
| Allocator | get_allocator () const |
Static Public Attributes | |
| static constexpr size_t | kInlineSize = kSize |
Private Member Functions | |
| V8_NOINLINE V8_PRESERVE_MOST void | Grow () |
| V8_NOINLINE V8_PRESERVE_MOST void | Grow (size_t min_capacity) |
| T * | AllocateDynamicStorage (size_t number_of_elements) |
| V8_NOINLINE V8_PRESERVE_MOST void | FreeStorage () |
| void | reset_to_inline_storage () |
| bool | is_big () const |
| T * | inline_storage_begin () |
| const T * | inline_storage_begin () const |
Private Attributes | |
| V8_NO_UNIQUE_ADDRESS Allocator | allocator_ |
| T * | begin_ = inline_storage_begin() |
| T * | end_ = begin_ |
| T * | end_of_storage_ = begin_ + kInlineSize |
| char | inline_storage_ [sizeof(T) *kInlineSize] |
Static Private Attributes | |
| static constexpr bool | kHasTrivialElement |
Definition at line 22 of file small-vector.h.
| using v8::base::SmallVector< T, kSize, Allocator >::value_type = T |
Definition at line 25 of file small-vector.h.
|
default |
|
inlineexplicit |
Definition at line 28 of file small-vector.h.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 39 of file small-vector.h.
|
inline |
Definition at line 43 of file small-vector.h.
|
inline |
Definition at line 47 of file small-vector.h.
|
inline |
Definition at line 51 of file small-vector.h.
|
inline |
|
inlineexplicit |
|
inline |
|
inlineprivate |
|
inline |
Definition at line 166 of file small-vector.h.
|
inline |
|
inline |
Definition at line 157 of file small-vector.h.
|
inline |
|
inline |
|
inline |
Definition at line 133 of file small-vector.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 130 of file small-vector.h.
|
inline |
Definition at line 184 of file small-vector.h.
|
inline |
|
inline |
|
inline |
Definition at line 136 of file small-vector.h.
|
inline |
|
inlineprivate |
Definition at line 302 of file small-vector.h.
|
inline |
Definition at line 148 of file small-vector.h.
|
inline |
|
inline |
|
inlineprivate |
Definition at line 280 of file small-vector.h.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 321 of file small-vector.h.
|
inline |
Definition at line 199 of file small-vector.h.
|
inline |
|
inlineprivate |
Definition at line 318 of file small-vector.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 193 of file small-vector.h.
|
inline |
|
inline |
|
inline |
Definition at line 139 of file small-vector.h.
|
inline |
|
inline |
Definition at line 142 of file small-vector.h.
|
inline |
Definition at line 265 of file small-vector.h.
|
inlineprivate |
|
inline |
Definition at line 241 of file small-vector.h.
|
inline |
|
inline |
|
private |
Definition at line 325 of file small-vector.h.
|
private |
Definition at line 333 of file small-vector.h.
|
private |
Definition at line 334 of file small-vector.h.
|
private |
Definition at line 335 of file small-vector.h.
|
private |
Definition at line 336 of file small-vector.h.
|
staticconstexprprivate |
Definition at line 338 of file small-vector.h.
|
staticconstexpr |
Definition at line 24 of file small-vector.h.