mirror.meta.reflection

This module provides the template metaprogramming variant of compile-time reflection, allowing client code to do type-level computations on the contents of a D module.

Members

Templates

FunctionOverload
template FunctionOverload(alias F, Protection P = __traits(getProtection, F).toProtection, Linkage L = __traits(getLinkage, F).toLinkage, string I = __traits(identifier, F), alias Parent = Alias!(__traits(parent, F)), size_t Idx = 0)

A specific overload of a function. In most cases it will be synonymous with the function symbol since most functions aren't overloaded.

FunctionSymbol
template FunctionSymbol(alias F, Protection P = __traits(getProtection, F).toProtection, Linkage L = __traits(getLinkage, F).toLinkage, string I = __traits(identifier, F), alias Parent = Alias!(__traits(parent, F)))

A function symbol with nested overloads.

Module
template Module(string moduleName)

Compile-time information on a D module.

Variable
template Variable(T, string N, alias V, bool C)

A global variable.

aggregates
template aggregates(publicMembers...)
Undocumented in source.
functionsByOverload
template functionsByOverload(alias parent, publicMembers...)
Undocumented in source.

Meta