![]() |
v8 12.4.254 (node 22.4.1)
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 MemberStorageType , typename = std::enable_if_t<std::is_base_of<T, U>::value>> | |
BasicPersistent (const internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy, MemberStorageType > &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 MemberStorageType , typename = std::enable_if_t<std::is_base_of<T, U>::value>> | |
BasicPersistent & | operator= (const internal::BasicMember< U, MemberBarrierPolicy, MemberWeaknessTag, MemberCheckingPolicy, MemberStorageType > &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 | internal::RootVisitor |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
const void * | raw_ = nullptr |
PersistentNode * | node_ = nullptr |
Definition at line 51 of file persistent.h.
using PointeeType = T |
Definition at line 57 of file persistent.h.
|
inline |
Definition at line 60 of file persistent.h.
|
inline |
Definition at line 64 of file persistent.h.
|
inline |
Definition at line 68 of file persistent.h.
|
inline |
Definition at line 73 of file persistent.h.
References PersistentBase::GetValue(), and PersistentBase::SetNode().
|
inline |
Definition at line 82 of file persistent.h.
|
inline |
Definition at line 87 of file persistent.h.
|
inline |
Definition at line 96 of file persistent.h.
|
inlinenoexcept |
Definition at line 104 of file persistent.h.
References PersistentBase::GetNode(), and PersistentNode::UpdateOwner().
|
inline |
Definition at line 121 of file persistent.h.
|
inline |
Definition at line 127 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 201 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 >::operator=(), BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Release(), and BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::~BasicPersistent().
|
inlineexplicit |
Definition at line 184 of file persistent.h.
|
inline |
Definition at line 187 of file persistent.h.
|
inline |
Definition at line 189 of file persistent.h.
|
inline |
Definition at line 188 of file persistent.h.
|
inlinenoexcept |
Definition at line 144 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear(), PersistentBase::GetNode(), PersistentBase::SetNode(), PersistentBase::SetValue(), and PersistentNode::UpdateOwner().
|
inline |
Definition at line 130 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=().
Referenced by BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=(), BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=(), and BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=().
|
inline |
Definition at line 137 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=().
|
inline |
Definition at line 162 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::operator=().
|
inline |
Definition at line 179 of file persistent.h.
|
inline |
Definition at line 174 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 169 of file persistent.h.
|
inline |
Definition at line 211 of file persistent.h.
References BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::Clear().
|
inline |
Definition at line 222 of file persistent.h.
|
inline |
Definition at line 194 of file persistent.h.
References PersistentBase::GetValue().
|
friend |
Definition at line 270 of file persistent.h.