v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
EphemeronPair< K, V > Struct Template Reference

#include <visitor.h>

Collaboration diagram for EphemeronPair< K, V >:

Public Member Functions

 CPPGC_DISALLOW_NEW ()
 
 EphemeronPair (K *k, V *v)
 
void ClearValueIfKeyIsDead (const LivenessBroker &broker)
 
void Trace (Visitor *visitor) const
 

Data Fields

WeakMember< Kkey
 
Member< Vvalue
 

Detailed Description

template<typename K, typename V>
struct cppgc::EphemeronPair< K, V >

An ephemeron pair is used to conditionally retain an object. The value will be kept alive only if the key is alive.

Definition at line 44 of file visitor.h.

Constructor & Destructor Documentation

◆ EphemeronPair()

template<typename K , typename V >
EphemeronPair ( K k,
V v 
)
inline

Definition at line 47 of file visitor.h.

Member Function Documentation

◆ ClearValueIfKeyIsDead()

template<typename K , typename V >
void ClearValueIfKeyIsDead ( const LivenessBroker broker)
inline

Definition at line 51 of file visitor.h.

◆ CPPGC_DISALLOW_NEW()

template<typename K , typename V >
CPPGC_DISALLOW_NEW ( )

◆ Trace()

template<typename K , typename V >
void Trace ( Visitor visitor) const

Definition at line 464 of file visitor.h.

Field Documentation

◆ key

template<typename K , typename V >
WeakMember<K> key

Definition at line 48 of file visitor.h.

◆ value

template<typename K , typename V >
Member<V> value

Definition at line 49 of file visitor.h.


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