v8
10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
|
#include <persistent.h>
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 (const internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy > &member, const SourceLocation &loc=SourceLocation::Current()) | |
~BasicPersistent () | |
BasicPersistent & | operator= (const BasicPersistent &other) |
template<typename U , typename OtherWeaknessPolicy , typename OtherLocationPolicy , typename OtherCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>> | |
BasicPersistent & | operator= (const BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > &other) |
BasicPersistent & | operator= (BasicPersistent &&other) noexcept |
template<typename U , typename MemberBarrierPolicy , typename MemberWeaknessTag , typename MemberCheckingPolicy , typename = std::enable_if_t<std::is_base_of<T, U>::value>> | |
BasicPersistent & | operator= (const internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy > &member) |
BasicPersistent & | operator= (T *other) |
BasicPersistent & | operator= (std::nullptr_t) |
BasicPersistent & | operator= (SentinelPointer s) |
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 () |
template<typename U , typename OtherWeaknessPolicy = WeaknessPolicy, typename OtherLocationPolicy = LocationPolicy, typename OtherCheckingPolicy = CheckingPolicy> | |
BasicPersistent< U, OtherWeaknessPolicy, OtherLocationPolicy, OtherCheckingPolicy > | To () const |
Friends | |
class | cppgc::Visitor |
Additional Inherited Members | |
Protected Member Functions inherited from PersistentBase | |
PersistentBase ()=default | |
PersistentBase (const void *raw) | |
const void * | GetValue () const |
void | SetValue (const void *value) |
PersistentNode * | GetNode () const |
void | SetNode (PersistentNode *node) |
void | ClearFromGC () const |
Protected Attributes inherited from PersistentBase | |
const void * | raw_ = nullptr |
PersistentNode * | node_ = nullptr |
Definition at line 54 of file persistent.h.
using PointeeType = T |
Definition at line 60 of file persistent.h.
|
inline |
Definition at line 63 of file persistent.h.
|
inline |
Definition at line 67 of file persistent.h.
|
inline |
Definition at line 71 of file persistent.h.
|
inline |
Definition at line 76 of file persistent.h.
References PersistentBase::GetValue(), Visitor::internal::BasicPersistent, and PersistentBase::SetNode().
|
inline |
Definition at line 85 of file persistent.h.
References Visitor::internal::BasicPersistent.
|
inline |
Definition at line 90 of file persistent.h.
References Visitor::internal::BasicPersistent.
|
inline |
Definition at line 98 of file persistent.h.
References Visitor::internal::BasicPersistent.
|
inlinenoexcept |
Definition at line 106 of file persistent.h.
References PersistentBase::GetNode().
|
inline |
Definition at line 121 of file persistent.h.
References Visitor::internal::BasicPersistent.
|
inline |
Definition at line 127 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 197 of file persistent.h.
References PersistentBase::GetNode(), PersistentBase::GetValue(), PersistentBase::SetNode(), and PersistentBase::SetValue().
Referenced by BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=(), BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Release(), and BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::~BasicPersistent().
|
inlineexplicit |
Definition at line 182 of file persistent.h.
|
inline |
Definition at line 183 of file persistent.h.
|
inline |
Definition at line 185 of file persistent.h.
|
inline |
Definition at line 184 of file persistent.h.
|
inlinenoexcept |
Definition at line 144 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear(), and PersistentBase::GetNode().
|
inline |
Definition at line 130 of file persistent.h.
|
inline |
Definition at line 137 of file persistent.h.
|
inline |
Definition at line 161 of file persistent.h.
|
inline |
Definition at line 177 of file persistent.h.
|
inline |
Definition at line 172 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 167 of file persistent.h.
|
inline |
Definition at line 207 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 218 of file persistent.h.
References Visitor::internal::BasicPersistent.
|
inline |
Definition at line 190 of file persistent.h.
References PersistentBase::GetValue().
|
friend |
Definition at line 267 of file persistent.h.