v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::UnalignedSlot< T > Class Template Reference

#include <slots.h>

Inheritance diagram for v8::internal::UnalignedSlot< T >:
Collaboration diagram for v8::internal::UnalignedSlot< T >:

Classes

class  Reference
 

Public Types

using difference_type = int
 
using value_type = T
 
using reference = Reference
 
using pointer = T*
 
using iterator_category = std::random_access_iterator_tag
 
- Public Types inherited from v8::internal::SlotBase< UnalignedSlot< T >, T, 1 >
using TData
 

Public Member Functions

 UnalignedSlot ()
 
 UnalignedSlot (Address address)
 
 UnalignedSlot (T *address)
 
Reference operator* () const
 
Reference operator[] (difference_type i) const
 
- Public Member Functions inherited from v8::internal::SlotBase< UnalignedSlot< T >, T, 1 >
UnalignedSlot< T > & operator++ ()
 
UnalignedSlot< Toperator++ (int)
 
UnalignedSlot< T > & operator-- ()
 
UnalignedSlot< Toperator-- (int)
 
bool operator< (const SlotBase &other) const
 
bool operator<= (const SlotBase &other) const
 
bool operator> (const SlotBase &other) const
 
bool operator>= (const SlotBase &other) const
 
bool operator== (const SlotBase &other) const
 
bool operator!= (const SlotBase &other) const
 
size_t operator- (const SlotBase &other) const
 
UnalignedSlot< Toperator- (int i) const
 
UnalignedSlot< Toperator- (int i)
 
UnalignedSlot< Toperator+ (int i) const
 
UnalignedSlot< T > & operator+= (int i)
 
UnalignedSlot< T > & operator-= (int i)
 
void * ToVoidPtr () const
 
Address address () const
 
TDatalocation () const
 

Friends

void swap (Reference lhs, Reference rhs)
 
difference_type operator- (UnalignedSlot a, UnalignedSlot b)
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::SlotBase< UnalignedSlot< T >, T, 1 >
static constexpr size_t kSlotDataSize
 
static constexpr size_t kSlotDataAlignment
 
- Protected Member Functions inherited from v8::internal::SlotBase< UnalignedSlot< T >, T, 1 >
 SlotBase (Address ptr)
 

Detailed Description

template<typename T>
class v8::internal::UnalignedSlot< T >

Definition at line 229 of file slots.h.

Member Typedef Documentation

◆ difference_type

template<typename T >
using v8::internal::UnalignedSlot< T >::difference_type = int

Definition at line 273 of file slots.h.

◆ iterator_category

template<typename T >
using v8::internal::UnalignedSlot< T >::iterator_category = std::random_access_iterator_tag

Definition at line 277 of file slots.h.

◆ pointer

template<typename T >
using v8::internal::UnalignedSlot< T >::pointer = T*

Definition at line 276 of file slots.h.

◆ reference

template<typename T >
using v8::internal::UnalignedSlot< T >::reference = Reference

Definition at line 275 of file slots.h.

◆ value_type

template<typename T >
using v8::internal::UnalignedSlot< T >::value_type = T

Definition at line 274 of file slots.h.

Constructor & Destructor Documentation

◆ UnalignedSlot() [1/3]

template<typename T >
v8::internal::UnalignedSlot< T >::UnalignedSlot ( )
inline

Definition at line 279 of file slots.h.

◆ UnalignedSlot() [2/3]

template<typename T >
v8::internal::UnalignedSlot< T >::UnalignedSlot ( Address address)
inlineexplicit

Definition at line 280 of file slots.h.

◆ UnalignedSlot() [3/3]

template<typename T >
v8::internal::UnalignedSlot< T >::UnalignedSlot ( T * address)
inlineexplicit

Definition at line 282 of file slots.h.

Member Function Documentation

◆ operator*()

template<typename T >
Reference v8::internal::UnalignedSlot< T >::operator* ( ) const
inline

Definition at line 285 of file slots.h.

◆ operator[]()

template<typename T >
Reference v8::internal::UnalignedSlot< T >::operator[] ( difference_type i) const
inline

Definition at line 288 of file slots.h.

Friends And Related Symbol Documentation

◆ operator-

template<typename T >
difference_type operator- ( UnalignedSlot< T > a,
UnalignedSlot< T > b )
friend

Definition at line 295 of file slots.h.

◆ swap

template<typename T >
void swap ( Reference lhs,
Reference rhs )
friend

Definition at line 293 of file slots.h.


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