v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cppgc::EphemeronPair< K, V > Struct Template Reference

#include <visitor.h>

Collaboration diagram for cppgc::EphemeronPair< K, V >:

Public Member Functions

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

Public Attributes

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 >
cppgc::EphemeronPair< K, 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 cppgc::EphemeronPair< K, V >::ClearValueIfKeyIsDead ( const LivenessBroker & broker)
inline

Definition at line 51 of file visitor.h.

◆ CPPGC_DISALLOW_NEW()

template<typename K , typename V >
cppgc::EphemeronPair< K, V >::CPPGC_DISALLOW_NEW ( )

◆ Trace()

template<typename K , typename V >
void cppgc::EphemeronPair< K, V >::Trace ( Visitor * visitor) const

Definition at line 459 of file visitor.h.

Here is the call graph for this function:

Member Data Documentation

◆ key

template<typename K , typename V >
WeakMember<K> cppgc::EphemeronPair< K, V >::key

Definition at line 48 of file visitor.h.

◆ value

template<typename K , typename V >
Member<V> cppgc::EphemeronPair< K, V >::value

Definition at line 49 of file visitor.h.


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