mirror.meta

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

Enums

Linkage
enum Linkage
Protection
enum Protection

Visibilty/protection

Functions

toLinkage
Linkage toLinkage(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
toProtection
Protection toProtection(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

FunctionOverload
template FunctionOverload(alias F, Protection P = __traits(getProtection, F).toProtection, Linkage L = __traits(getLinkage, F).toLinkage, string I = __traits(identifier, F), alias M = moduleOf!F)

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 M = moduleOf!F)

A function symbol with nested overloads.

Module
template Module(string moduleName)

Compile-time information on a D module.

Parameter
template Parameter(T, alias D, string I)
Undocumented in source.
PublicMembers
template PublicMembers(alias A)
Undocumented in source.
Variable
template Variable(T, string N)

A global variable.

aggregates
template aggregates(publicMembers...)
Undocumented in source.

Meta