Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cppgc::internal::TraceTraitBase< T > Struct Template Reference

#include <trace-trait.h>

Inheritance diagram for cppgc::internal::TraceTraitBase< T >:
[legend]

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.

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.

◆ 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.
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: