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

#include <trace-trait.h>

Inheritance diagram for cppgc::internal::TraceTraitBase< T >:
Collaboration diagram for cppgc::internal::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 cppgc::internal::TraceTraitBase< T >::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 cppgc::internal::TraceTraitBase< T >::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.

Here is the call graph for this function:
Here is the caller graph for this function:

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