v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy > Class Template Reference

#include <member.h>

Inheritance diagram for BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy >:
Collaboration diagram for BasicMember< T, WeaknessTag, WriteBarrierPolicy, CheckingPolicy >:

Public Types

using PointeeType = T
 
using AtomicInitializerTag = MemberBase::AtomicInitializerTag
 

Public Member Functions

constexpr BasicMember ()=default
 
constexpr BasicMember (std::nullptr_t)
 
 BasicMember (SentinelPointer s)
 
 BasicMember (T *raw)
 
 BasicMember (T &raw)
 
 BasicMember (std::nullptr_t, AtomicInitializerTag atomic)
 
 BasicMember (SentinelPointer s, AtomicInitializerTag atomic)
 
 BasicMember (T *raw, AtomicInitializerTag atomic)
 
 BasicMember (T &raw, AtomicInitializerTag atomic)
 
 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 58 of file member.h.

Member Typedef Documentation

◆ AtomicInitializerTag

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
using AtomicInitializerTag = MemberBase::AtomicInitializerTag

Definition at line 73 of file member.h.

◆ PointeeType

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
using PointeeType = T

Definition at line 60 of file member.h.

Constructor & Destructor Documentation

◆ BasicMember() [1/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
constexpr BasicMember ( )
constexprdefault

◆ BasicMember() [2/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
constexpr BasicMember ( std::nullptr_t  )
inlineconstexpr

Definition at line 63 of file member.h.

◆ BasicMember() [3/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( SentinelPointer  s)
inline

Definition at line 64 of file member.h.

◆ BasicMember() [4/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( T *  raw)
inline

Definition at line 65 of file member.h.

◆ BasicMember() [5/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( T &  raw)
inline

Definition at line 69 of file member.h.

◆ BasicMember() [6/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( std::nullptr_t  ,
AtomicInitializerTag  atomic 
)
inline

Definition at line 74 of file member.h.

◆ BasicMember() [7/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( SentinelPointer  s,
AtomicInitializerTag  atomic 
)
inline

Definition at line 76 of file member.h.

◆ BasicMember() [8/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( T *  raw,
AtomicInitializerTag  atomic 
)
inline

Definition at line 78 of file member.h.

◆ BasicMember() [9/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember ( T &  raw,
AtomicInitializerTag  atomic 
)
inline

Definition at line 82 of file member.h.

◆ BasicMember() [10/14]

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

Definition at line 85 of file member.h.

◆ BasicMember() [11/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
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)
inline

Definition at line 90 of file member.h.

◆ BasicMember() [12/14]

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

Definition at line 95 of file member.h.

◆ BasicMember() [13/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
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)
inlinenoexcept

Definition at line 102 of file member.h.

◆ BasicMember() [14/14]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
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)
inline

Definition at line 112 of file member.h.

Member Function Documentation

◆ Clear()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
void Clear ( )
inline

◆ GetSlotForTesting()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
const T ** GetSlotForTesting ( ) const
inline

Definition at line 206 of file member.h.

References MemberBase::GetRawSlot().

◆ operator bool()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
operator bool ( ) const
inlineexplicit

Definition at line 181 of file member.h.

◆ operator T*()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
operator T* ( ) const
inline

Definition at line 182 of file member.h.

◆ operator*()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
T & operator* ( ) const
inline

Definition at line 184 of file member.h.

◆ operator->()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
T * operator-> ( ) const
inline

Definition at line 183 of file member.h.

◆ operator=() [1/8]

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

◆ operator=() [2/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
template<typename U , typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMember & operator= ( BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &&  other)
inlinenoexcept

◆ operator=() [3/8]

◆ operator=() [4/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
template<typename U , typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMember & operator= ( const BasicMember< U, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &  other)
inline

◆ operator=() [5/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
template<typename U , typename PersistentWeaknessPolicy , typename PersistentLocationPolicy , typename PersistentCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicMember & operator= ( const BasicPersistent< U, PersistentWeaknessPolicy, PersistentLocationPolicy, PersistentCheckingPolicy > &  other)
inline

◆ operator=() [6/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember & operator= ( SentinelPointer  s)
inline

Definition at line 167 of file member.h.

References MemberBase::SetRawAtomic().

◆ operator=() [7/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember & operator= ( std::nullptr_t  )
inline

◆ operator=() [8/8]

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
BasicMember & operator= ( T *  other)
inline

Definition at line 157 of file member.h.

References MemberBase::SetRawAtomic().

◆ Release()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
T * Release ( )
inline

◆ Swap()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
template<typename OtherWeaknessTag , typename OtherBarrierPolicy , typename OtherCheckingPolicy >
void Swap ( BasicMember< T, OtherWeaknessTag, OtherBarrierPolicy, OtherCheckingPolicy > &  other)
inline

Definition at line 174 of file member.h.

◆ V8_CLANG_NO_SANITIZE()

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
V8_CLANG_NO_SANITIZE ( "cfi-unrelated-cast"  ) const
inline

Definition at line 189 of file member.h.

References MemberBase::GetRaw().

Friends And Related Symbol Documentation

◆ cppgc::TraceTrait

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
template<typename U >
friend struct cppgc::TraceTrait
friend

Definition at line 228 of file member.h.

◆ cppgc::Visitor

template<typename T , typename WeaknessTag , typename WriteBarrierPolicy , typename CheckingPolicy >
friend class cppgc::Visitor
friend

Definition at line 226 of file member.h.


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