DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
ComponentFactory.h File Reference

Classes

class  Deki::ComponentFactory
 Creates components by type id and tells which class an id belongs to. More...

Namespaces

namespace  Deki
namespace  Deki::Detail
 A class entry for a component the codegen never saw (a test double, a type defined in a .cpp).

Macros

#define COMPONENT_FACTORY_API

Functions

template<class T, class Base>
constexpr ComponentType Deki::Detail::HandWrittenBaseId ()
template<class T>
constexpr bool Deki::Detail::DeclaresUpdate ()
template<class T, class Base = void>
constexpr ComponentTypeInfo Deki::MakeHandWrittenTypeInfo (bool declaresUpdate, const ComponentMeta *meta=nullptr, ComponentType typeId=TypeId< T >(), const char *name=TypeName< T >())
 Base names the direct component base when it is not Deki::Component (a test renderer deriving from RendererComponent), so lookups by base type find the instance.
template<class T>
const ComponentTypeInfo * Deki::TypeInfoFor ()
 The class entry AddComponent<T> attaches to a new T: the codegen's registered entry, or a hand-written one for a class it never saw.

Macro Definition Documentation

◆ COMPONENT_FACTORY_API

#define COMPONENT_FACTORY_API