swift
Classes | Namespaces | Macros
mixinmetatype.h File Reference

Go to the source code of this file.

Classes

class  swift::misc::mixin::MetaType< Derived >
 CRTP class template from which a derived class can inherit common methods dealing with the metatype of the class. More...
 

Namespaces

 swift::misc
 Free functions in swift::misc.
 
 swift::misc::mixin
 Mixin classes which implement common operations for value classes.
 

Macros

#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
 When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this macro to disambiguate the inherited members. More...
 

Macro Definition Documentation

◆ SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE

#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE (   DERIVED)
Value:
using ::swift::misc::mixin::MetaType<DERIVED>::registerMetadata; \
using ::swift::misc::mixin::MetaType<DERIVED>::getMetaTypeId; \
using ::swift::misc::mixin::MetaType<DERIVED>::getClassName; \
using ::swift::misc::mixin::MetaType<DERIVED>::isA;

When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this macro to disambiguate the inherited members.

Definition at line 111 of file mixinmetatype.h.