v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
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 65 of file trace-trait.h.

Member Function Documentation

◆ GetTraceDescriptor()

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 74 of file trace-trait.h.

◆ Trace()

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 85 of file trace-trait.h.


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