kdevplatform/language/duchain
typeregister.h File Reference
Include dependency graph for typeregister.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
class | KDevelop::AbstractTypeFactory |
class | KDevelop::TypeFactory< T, Data > |
class | KDevelop::TypeSystem |
struct | KDevelop::TypeSystemRegistrator< T, Data > |
Namespaces | |
KDevelop | |
Macros | |
#define | REGISTER_TYPE(Class) TypeSystemRegistrator<Class, Class ## Data> register ## Class |
Macro Definition Documentation
◆ REGISTER_TYPE
#define REGISTER_TYPE | ( | Class | ) | TypeSystemRegistrator<Class, Class ## Data> register ## Class |
You must add this into your source-files for every AbstractType based class For this to work, the class must have an "Identity" enumerator, that is unique among all types.
It should be a unique value, but as small as possible, because a buffer at least as big as that number is created internally.
Definition at line 215 of file typeregister.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:31:17 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:31:17 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.