v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
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
 

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)
 
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)
 
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
 
T * Get () const
 
void Clear ()
 
T * Release ()
 

Friends

class cppgc::Visitor
 

Detailed Description

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

Definition at line 25 of file member.h.

Member Typedef Documentation

◆ PointeeType

using PointeeType = T

Definition at line 27 of file member.h.

Constructor & Destructor Documentation

◆ BasicMember() [1/8]

constexpr BasicMember ( )
constexprdefault

◆ BasicMember() [2/8]

constexpr BasicMember ( std::nullptr_t  )
inlineconstexpr

Definition at line 30 of file member.h.

◆ BasicMember() [3/8]

Definition at line 31 of file member.h.

◆ BasicMember() [4/8]

BasicMember ( T *  raw)
inline

Definition at line 32 of file member.h.

◆ BasicMember() [5/8]

BasicMember ( T &  raw)
inline

Definition at line 36 of file member.h.

◆ BasicMember() [6/8]

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

Definition at line 37 of file member.h.

◆ BasicMember() [7/8]

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

Definition at line 42 of file member.h.

◆ BasicMember() [8/8]

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

Definition at line 51 of file member.h.

Member Function Documentation

◆ Clear()

◆ Get()

◆ operator bool()

operator bool ( ) const
inlineexplicit

◆ operator T*()

operator T* ( ) const
inline

◆ operator*()

T& operator* ( ) const
inline

◆ operator->()

T* operator-> ( ) const
inline

◆ operator=() [1/6]

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

Definition at line 57 of file member.h.

◆ operator=() [2/6]

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

Definition at line 64 of file member.h.

◆ operator=() [3/6]

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

Definition at line 74 of file member.h.

◆ operator=() [4/6]

BasicMember& operator= ( SentinelPointer  s)
inline

Definition at line 90 of file member.h.

◆ operator=() [5/6]

BasicMember& operator= ( std::nullptr_t  )
inline

◆ operator=() [6/6]

BasicMember& operator= ( T *  other)
inline

◆ Release()

◆ Swap()

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

Friends And Related Function Documentation

◆ cppgc::Visitor

friend class cppgc::Visitor
friend

Definition at line 143 of file member.h.


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