5 #ifndef INCLUDE_CPPGC_INTERNAL_GC_INFO_H_
6 #define INCLUDE_CPPGC_INTERNAL_GC_INFO_H_
10 #include "cppgc/internal/finalizer-trait.h"
11 #include "cppgc/internal/name-trait.h"
12 #include "cppgc/trace-trait.h"
18 using GCInfoIndex = uint16_t;
23 TraceCallback trace_callback,
24 NameCallback name_callback,
bool has_v_table);
25 GCInfoIndex
GetIndex()
const {
return index_; }
28 const GCInfoIndex index_;
36 static_assert(
sizeof(T),
"T must be fully defined");
37 static const RegisteredGCInfoIndex registered_index(
39 NameTrait<T>::GetName, std::is_polymorphic<T>::value);