v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
PersistentBase Class Reference

#include <persistent.h>

Inheritance diagram for PersistentBase:
Collaboration diagram for PersistentBase:

Protected Member Functions

 PersistentBase ()=default
 
 PersistentBase (const void *raw)
 
const void * GetValue () const
 
void SetValue (const void *value)
 
PersistentNodeGetNode () const
 
void SetNode (PersistentNode *node)
 
void ClearFromGC () const
 

Protected Attributes

const void * raw_ = nullptr
 
PersistentNodenode_ = nullptr
 

Friends

class PersistentRegion
 

Detailed Description

Definition at line 26 of file persistent.h.

Constructor & Destructor Documentation

◆ PersistentBase() [1/2]

PersistentBase ( )
protecteddefault

◆ PersistentBase() [2/2]

PersistentBase ( const void *  raw)
inlineexplicitprotected

Definition at line 29 of file persistent.h.

References PersistentBase::raw_.

Referenced by CrossThreadPersistentBase::CrossThreadPersistentBase().

Member Function Documentation

◆ ClearFromGC()

void ClearFromGC ( ) const
inlineprotected

Definition at line 39 of file persistent.h.

References PersistentBase::node_, and PersistentBase::raw_.

◆ GetNode()

◆ GetValue()

◆ SetNode()

◆ SetValue()

Friends And Related Function Documentation

◆ PersistentRegion

friend class PersistentRegion
friend

Definition at line 48 of file persistent.h.

Field Documentation

◆ node_

◆ raw_


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