v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
GarbageCollectedMixin Class Reference

#include <garbage-collected.h>

Public Types

using IsGarbageCollectedMixinTypeMarker = void
 

Public Member Functions

virtual void Trace (cppgc::Visitor *) const
 

Detailed Description

Base class for managed mixin objects. Such objects cannot be constructed directly but must be mixed into the inheritance hierarchy of a GarbageCollected object.

Types inheriting from GarbageCollectedMixin must override a virtual method of signature void Trace(cppgc::Visitor*) const that dispatchs all managed pointers to the visitor and delegates to base classes.

class Mixin : public GarbageCollectedMixin {
public:
void Trace(cppgc::Visitor* visitor) const override {
// Dispatch using visitor->Trace(...);
}
};

Definition at line 93 of file garbage-collected.h.

Member Typedef Documentation

◆ IsGarbageCollectedMixinTypeMarker

Definition at line 95 of file garbage-collected.h.

Member Function Documentation

◆ Trace()

virtual void Trace ( cppgc::Visitor ) const
inlinevirtual

This Trace method must be overriden by objects inheriting from GarbageCollectedMixin.

Definition at line 101 of file garbage-collected.h.


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