v8  8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
TraceTrait< T > Struct Template Reference

#include <trace-trait.h>

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::TraceTrait< 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 67 of file trace-trait.h.

Member Function Documentation

◆ GetTraceDescriptor()

static TraceDescriptor GetTraceDescriptor ( const void *  self)

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

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

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

◆ Trace()

static void Trace ( Visitor visitor,
const void *  self 

Function invoking the tracing for an object of type T.

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

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

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