v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > Class Template Reference

#include <pointer-policies.h>

Public Types

using PointeeType = T
 

Public Member Functions

constexpr BasicMember ()=default
 
constexpr BasicMember (std::nullptr_t)
 
 BasicMember (SentinelPointer s)
 
 BasicMember (T *raw)
 
 BasicMember (T &raw)
 
 BasicMember (const BasicMember &other)
 
template<typename U , typename OtherBarrierPolicy , typename OtherWeaknessTag , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 BasicMember (const BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &other)
 
 BasicMember (BasicMember &&other) noexcept
 
template<typename U , typename OtherBarrierPolicy , typename OtherWeaknessTag , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 BasicMember (BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &&other) noexcept
 
template<typename U , typename PersistentWeaknessPolicy , typename PersistentLocationPolicy , typename PersistentCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 BasicMember (const BasicPersistent< U, PersistentWeaknessPolicy, PersistentLocationPolicy, PersistentCheckingPolicy > &p)
 
BasicMemberoperator= (const BasicMember &other)
 
template<typename U , typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMemberoperator= (const BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &other)
 
BasicMemberoperator= (BasicMember &&other) noexcept
 
template<typename U , typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMemberoperator= (BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &&other) noexcept
 
template<typename U , typename PersistentWeaknessPolicy , typename PersistentLocationPolicy , typename PersistentCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMemberoperator= (const BasicPersistent< U, PersistentWeaknessPolicy, PersistentLocationPolicy, PersistentCheckingPolicy > &other)
 
BasicMemberoperator= (T *other)
 
BasicMemberoperator= (std::nullptr_t)
 
BasicMemberoperator= (SentinelPointer s)
 
template<typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy >
void Swap (BasicMember< T, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &other)
 
 operator bool () const
 
 operator T* () const
 
T * operator-> () const
 
T & operator* () const
 
 V8_CLANG_NO_SANITIZE ("cfi-unrelated-cast") T *Get() const
 
void Clear ()
 
T * Release ()
 
const T ** GetSlotForTesting () const
 

Friends

class cppgc::Visitor
 
template<typename U >
struct cppgc::TraceTrait
 

Detailed Description

template<typename T, typename WeaknessTag, typename WriteBarrierPolicy, typename CheckingPolicy>
class cppgc::internal::BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy >

Definition at line 137 of file pointer-policies.h.

Member Typedef Documentation

◆ PointeeType

using PointeeType = T

Definition at line 54 of file member.h.

Constructor & Destructor Documentation

◆ BasicMember() [1/10]

constexpr BasicMember ( )
constexprdefault

◆ BasicMember() [2/10]

constexpr BasicMember ( std::nullptr_t  )
inlineconstexpr

Definition at line 57 of file member.h.

◆ BasicMember() [3/10]

Definition at line 58 of file member.h.

◆ BasicMember() [4/10]

BasicMember ( T *  raw)
inline

Definition at line 59 of file member.h.

◆ BasicMember() [5/10]

BasicMember ( T &  raw)
inline

Definition at line 63 of file member.h.

◆ BasicMember() [6/10]

BasicMember ( const BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > &  other)
inline

Definition at line 65 of file member.h.

◆ BasicMember() [7/10]

BasicMember ( const BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &  other)
inline

Definition at line 70 of file member.h.

◆ BasicMember() [8/10]

BasicMember ( BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > &&  other)
inlinenoexcept

Definition at line 75 of file member.h.

◆ BasicMember() [9/10]

BasicMember ( BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &&  other)
inlinenoexcept

Definition at line 82 of file member.h.

◆ BasicMember() [10/10]

BasicMember ( const BasicPersistent< U, PersistentWeaknessPolicy, PersistentLocationPolicy, PersistentCheckingPolicy > &  p)
inline

Definition at line 93 of file member.h.

Member Function Documentation

◆ Clear()

void Clear ( )
inline

Definition at line 180 of file member.h.

Referenced by BasicMember< K >::operator=(), and BasicMember< K >::Release().

◆ GetSlotForTesting()

const T** GetSlotForTesting ( ) const
inline

Definition at line 188 of file member.h.

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 163 of file member.h.

◆ operator T*()

operator T* ( ) const
inline

Definition at line 164 of file member.h.

◆ operator*()

T& operator* ( ) const
inline

Definition at line 166 of file member.h.

◆ operator->()

T* operator-> ( ) const
inline

Definition at line 165 of file member.h.

◆ operator=() [1/8]

BasicMember& operator= ( BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > &&  other)
inlinenoexcept

Definition at line 113 of file member.h.

◆ operator=() [2/8]

BasicMember& operator= ( BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &&  other)
inlinenoexcept

Definition at line 122 of file member.h.

◆ operator=() [3/8]

BasicMember& operator= ( const BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > &  other)
inline

Definition at line 100 of file member.h.

◆ operator=() [4/8]

BasicMember& operator= ( const BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &  other)
inline

Definition at line 107 of file member.h.

◆ operator=() [5/8]

BasicMember& operator= ( const BasicPersistent< U, PersistentWeaknessPolicy, PersistentLocationPolicy, PersistentCheckingPolicy > &  other)
inline

Definition at line 133 of file member.h.

◆ operator=() [6/8]

BasicMember& operator= ( SentinelPointer  s)
inline

Definition at line 149 of file member.h.

◆ operator=() [7/8]

BasicMember& operator= ( std::nullptr_t  )
inline

Definition at line 145 of file member.h.

◆ operator=() [8/8]

BasicMember& operator= ( T *  other)
inline

Definition at line 139 of file member.h.

◆ Release()

T* Release ( )
inline

Definition at line 182 of file member.h.

◆ Swap()

void Swap ( BasicMember< T, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &  other)
inline

Definition at line 156 of file member.h.

◆ V8_CLANG_NO_SANITIZE()

V8_CLANG_NO_SANITIZE ( "cfi-unrelated-cast"  ) const
inline

Definition at line 171 of file member.h.

Friends And Related Function Documentation

◆ cppgc::TraceTrait

◆ cppgc::Visitor

friend class cppgc::Visitor
friend

Definition at line 206 of file member.h.


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