orange.core.Attribute

Members

Structs

Attributes
struct Attributes(alias sym, Attrs...)

This struct represent a tuple of attributes attached to the symbol.

attribute
struct attribute

This struct represent a meta attribute. Any declaration that has this attribute attached to itself is to be considered an attribute. That declaration should only be used as an attribute and never on its own.

Templates

getAttributes
template getAttributes(alias symbol, bool includeNonAttributes = false)

Returns a tuple of all attributes attached to the given symbol. By default this will only include actual attributes (see orange.core.Attribute.isAttribute).

isAttribute
template isAttribute(alias symbol)

Evaluates to true if the given symbol is an attribute. An attribute is any declaration with the "orange.core.Attribute.attribute" attribute attached.

Meta

Authors

Jacob Carlborg

Version

Initial created: Jan 5, 2013