v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
CustomSpace< ConcreteCustomSpace > Class Template Reference

#include <custom-space.h>

Inheritance diagram for CustomSpace< ConcreteCustomSpace >:
Collaboration diagram for CustomSpace< ConcreteCustomSpace >:

Public Member Functions

CustomSpaceIndex GetCustomSpaceIndex () const final
 
- Public Member Functions inherited from CustomSpaceBase
virtual ~CustomSpaceBase ()=default
 

Detailed Description

template<typename ConcreteCustomSpace>
class cppgc::CustomSpace< ConcreteCustomSpace >

Base class custom spaces should directly inherit from. The class inheriting from CustomSpace must define kSpaceIndex as unique space index. These indices need for form a sequence starting at 0.

Example:

class CustomSpace1 : public CustomSpace<CustomSpace1> {
public:
static constexpr CustomSpaceIndex kSpaceIndex = 0;
};
class CustomSpace2 : public CustomSpace<CustomSpace2> {
public:
static constexpr CustomSpaceIndex kSpaceIndex = 1;
};

Definition at line 45 of file custom-space.h.

Member Function Documentation

◆ GetCustomSpaceIndex()

CustomSpaceIndex GetCustomSpaceIndex ( ) const
inlinefinalvirtual

Implements CustomSpaceBase.

Definition at line 47 of file custom-space.h.


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