v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
TraceTraitBase< T > Struct Template Reference

#include <trace-trait.h>

Inheritance diagram for TraceTraitBase< T >:

Static Public Member Functions

static TraceDescriptor GetTraceDescriptor (const void *self)
 
static void Trace (Visitor *visitor, const void *self)
 

Detailed Description

template<typename T>
struct cppgc::internal::TraceTraitBase< T >

Trait specifying how the garbage collector processes an object of type T.

Advanced users may override handling by creating a specialization for their type.

Definition at line 77 of file trace-trait.h.

Member Function Documentation

◆ GetTraceDescriptor()

template<typename T >
static TraceDescriptor GetTraceDescriptor ( const void *  self)
inlinestatic

Accessor for retrieving a TraceDescriptor to process an object of type T.

Parameters
selfThe object to be processed.
Returns
a TraceDescriptor to process the object.

Definition at line 86 of file trace-trait.h.

◆ Trace()

template<typename T >
static void Trace ( Visitor visitor,
const void *  self 
)
inlinestatic

Function invoking the tracing for an object of type T.

Parameters
visitorThe visitor to dispatch to.
selfThe object to invoke tracing on.

Definition at line 97 of file trace-trait.h.

References TraceTraitBase< T >::Trace().

Referenced by TraceTrait< v8::TracedReference< T > >::GetTraceDescriptor(), TraceTraitBase< T >::Trace(), and TraceTrait< v8::TracedReference< T > >::Trace().


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