v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::internal::PersistentNode Class Referencefinal

#include <persistent-node.h>

Collaboration diagram for cppgc::internal::PersistentNode:

Public Member Functions

 PersistentNode ()=default
 
 PersistentNode (const PersistentNode &)=delete
 
PersistentNodeoperator= (const PersistentNode &)=delete
 
void InitializeAsUsedNode (void *owner, TraceRootCallback trace)
 
void InitializeAsFreeNode (PersistentNode *next)
 
void UpdateOwner (void *owner)
 
PersistentNodeFreeListNext () const
 
void Trace (RootVisitor &root_visitor) const
 
bool IsUsed () const
 
void * owner () const
 

Private Attributes

union { 
 
   void *   owner_ = nullptr 
 
   PersistentNode *   next_ 
 
};  
 
TraceRootCallback trace_ = nullptr
 

Detailed Description

Definition at line 27 of file persistent-node.h.

Constructor & Destructor Documentation

◆ PersistentNode() [1/2]

cppgc::internal::PersistentNode::PersistentNode ( )
default

◆ PersistentNode() [2/2]

cppgc::internal::PersistentNode::PersistentNode ( const PersistentNode & )
delete

Member Function Documentation

◆ FreeListNext()

PersistentNode * cppgc::internal::PersistentNode::FreeListNext ( ) const
inline

Definition at line 50 of file persistent-node.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitializeAsFreeNode()

void cppgc::internal::PersistentNode::InitializeAsFreeNode ( PersistentNode * next)
inline

Definition at line 40 of file persistent-node.h.

◆ InitializeAsUsedNode()

void cppgc::internal::PersistentNode::InitializeAsUsedNode ( void * owner,
TraceRootCallback trace )
inline

Definition at line 34 of file persistent-node.h.

Here is the call graph for this function:

◆ IsUsed()

bool cppgc::internal::PersistentNode::IsUsed ( ) const
inline

Definition at line 60 of file persistent-node.h.

Here is the caller graph for this function:

◆ operator=()

PersistentNode & cppgc::internal::PersistentNode::operator= ( const PersistentNode & )
delete

◆ owner()

void * cppgc::internal::PersistentNode::owner ( ) const
inline

Definition at line 62 of file persistent-node.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Trace()

void cppgc::internal::PersistentNode::Trace ( RootVisitor & root_visitor) const
inline

Definition at line 55 of file persistent-node.h.

Here is the call graph for this function:

◆ UpdateOwner()

void cppgc::internal::PersistentNode::UpdateOwner ( void * owner)
inline

Definition at line 45 of file persistent-node.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ [union]

◆ next_

PersistentNode* cppgc::internal::PersistentNode::next_

Definition at line 73 of file persistent-node.h.

◆ owner_

void* cppgc::internal::PersistentNode::owner_ = nullptr

Definition at line 72 of file persistent-node.h.

◆ trace_

TraceRootCallback cppgc::internal::PersistentNode::trace_ = nullptr
private

Definition at line 75 of file persistent-node.h.


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