v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy > Class Template Reference

#include <persistent.h>

Inheritance diagram for BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >:
Collaboration diagram for BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >:

Public Types

using PointeeType = T
 

Public Member Functions

 BasicPersistent (const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (std::nullptr_t, const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (SentinelPointer s, const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (T *raw, const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (T &raw, const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (const BasicPersistent &other, const SourceLocation &loc=SourceLocation::Current())
 
template<typename U , typename OtherWeaknessPolicy , typename OtherLocationPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 BasicPersistent (const BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > &other, const SourceLocation &loc=SourceLocation::Current())
 
 BasicPersistent (BasicPersistent &&other, const SourceLocation &loc=SourceLocation::Current()) noexcept
 
template<typename U , typename MemberBarrierPolicy , typename MemberWeaknessTag , typename MemberCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 BasicPersistent (internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy > member, const SourceLocation &loc=SourceLocation::Current())
 
 ~BasicPersistent ()
 
BasicPersistentoperator= (const BasicPersistent &other)
 
template<typename U , typename OtherWeaknessPolicy , typename OtherLocationPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicPersistentoperator= (const BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > &other)
 
BasicPersistentoperator= (BasicPersistent &&other)
 
template<typename U , typename MemberBarrierPolicy , typename MemberWeaknessTag , typename MemberCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
BasicPersistentoperator= (internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy > member)
 
BasicPersistentoperator= (T *other)
 
BasicPersistentoperator= (std::nullptr_t)
 
BasicPersistentoperator= (SentinelPointer s)
 
 operator bool () const
 
 operator T* () const
 
T * operator-> () const
 
T & operator* () const
 
T * Get () const
 
void Clear ()
 
T * Release ()
 

Detailed Description

template<typename T, typename WeaknessPolicy, typename LocationPolicy, typename CheckingPolicy>
class cppgc::internal::BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >

Definition at line 23 of file persistent.h.

Member Typedef Documentation

◆ PointeeType

using PointeeType = T

Definition at line 28 of file persistent.h.

Constructor & Destructor Documentation

◆ BasicPersistent() [1/9]

Definition at line 31 of file persistent.h.

◆ BasicPersistent() [2/9]

BasicPersistent ( std::nullptr_t  ,
const SourceLocation loc = SourceLocation::Current() 
)
inline

Definition at line 35 of file persistent.h.

◆ BasicPersistent() [3/9]

Definition at line 39 of file persistent.h.

◆ BasicPersistent() [4/9]

◆ BasicPersistent() [5/9]

BasicPersistent ( T &  raw,
const SourceLocation loc = SourceLocation::Current() 
)
inline

Definition at line 53 of file persistent.h.

◆ BasicPersistent() [6/9]

BasicPersistent ( const BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy > &  other,
const SourceLocation loc = SourceLocation::Current() 
)
inline

Definition at line 58 of file persistent.h.

◆ BasicPersistent() [7/9]

BasicPersistent ( const BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > &  other,
const SourceLocation loc = SourceLocation::Current() 
)
inline

Definition at line 66 of file persistent.h.

◆ BasicPersistent() [8/9]

BasicPersistent ( BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy > &&  other,
const SourceLocation loc = SourceLocation::Current() 
)
inlinenoexcept

◆ BasicPersistent() [9/9]

BasicPersistent ( internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy >  member,
const SourceLocation loc = SourceLocation::Current() 
)
inline

Definition at line 91 of file persistent.h.

◆ ~BasicPersistent()

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/7]

◆ operator=() [2/7]

BasicPersistent& operator= ( const BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy > &  other)
inline

Definition at line 100 of file persistent.h.

◆ operator=() [3/7]

BasicPersistent& operator= ( const BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > &  other)
inline

Definition at line 107 of file persistent.h.

◆ operator=() [4/7]

BasicPersistent& operator= ( internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy >  member)
inline

Definition at line 132 of file persistent.h.

◆ operator=() [5/7]

BasicPersistent& operator= ( SentinelPointer  s)
inline

Definition at line 149 of file persistent.h.

◆ operator=() [6/7]

BasicPersistent& operator= ( std::nullptr_t  )
inline

◆ operator=() [7/7]

BasicPersistent& operator= ( T *  other)
inline

Definition at line 139 of file persistent.h.

◆ Release()


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