Akonadi::SuperClass< Class > Struct Template Reference

#include <supertrait.h>

Inheritance diagram for Akonadi::SuperClass< Class >:

Additional Inherited Members

- Public Types inherited from Akonadi::SuperClassTrait< Class >
typedef Class Type

Detailed Description

template<typename Class>
struct Akonadi::SuperClass< Class >

Type trait to provide information about a base class for a given class.

Used eg. for the Akonadi payload mechanism.

To provide base class introspection for own types, extend this trait as follows:

namespace Akonadi
template <> struct SuperClass<MyClass> : public SuperClassTrait<MyBaseClass>{};

Alternatively, define a typedef "SuperClass" in your type, pointing to the base class. This avoids having to include this header file if that's inconvenient from a dependency point of view.

Definition at line 60 of file supertrait.h.

The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:46:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.