DQueryElement

Undocumented in source.
struct DQueryElement (
QueryType
string Name
alias Overload = null
) {}

Members

Aliases

isField
alias isField = Alias!(is(typeof(GetMember!(QueryType, Name))) && !isFunction)

Returns true if the element refers to a field.

type
alias type = QueryType

Returns the type being queried.

value
alias value = Alias!(GetMember!(QueryType, Name))

Returns the value of the element.

value
alias value = Alias!(void)

Returns void for inaccessible elements.

Enums

hasAllOf
eponymoustemplate hasAllOf(TList...)

Returns true if the element has all of the given attributes.

hasAnyOf
eponymoustemplate hasAnyOf(TList...)

Returns true if the element has any of the given attributes.

hasAttribute
eponymoustemplate hasAttribute(Type)

Returns true if the element has an attribute of the given type.

hasNoneOf
eponymoustemplate hasNoneOf(TList...)

Returns true if the element has none of the given attributes.

isAggregateAssignableFrom
eponymoustemplate isAggregateAssignableFrom(Type)

Returns true if a given type can be assigned from a variable of the element's aggregate type.

isAggregateAssignableTo
eponymoustemplate isAggregateAssignableTo(Type)

Returns true if a given type can be assigned to a variable of the element's aggregate type.

isAggregateTypeOf
eponymoustemplate isAggregateTypeOf(Type)

Returns true if a given type matches the element's aggregate type exactly.

isArity
eponymoustemplate isArity(int Count)

Return true if the element's arity matches the given number of parameters.

isName
eponymoustemplate isName(string Name)

Returns true if the name matches.

isParameterTypesOf
eponymoustemplate isParameterTypesOf(TList...)

Returns true if the element's parameter types match the given type list.

isReturnAssignableFrom
eponymoustemplate isReturnAssignableFrom(Type)

Returns true if a given type can be assigned from a variable of the element's return type.

isReturnAssignableTo
eponymoustemplate isReturnAssignableTo(Type)

Returns true if a given type can be assigned to a variable of the element's return type.

isReturnTypeOf
eponymoustemplate isReturnTypeOf(Type)

Returns true if a given type matches the element's return type exactly.

isTemplateArgsOf
eponymoustemplate isTemplateArgsOf(TemplateArgs...)

Returns true if the element's template arguments match.

isTemplateOf
eponymoustemplate isTemplateOf(alias Template)

Returns true is the element is a template of the given type.

isTypeAssignableFrom
eponymoustemplate isTypeAssignableFrom(Type)

Returns true if a given type can be assigned from a variable of the element's type.

isTypeAssignableTo
eponymoustemplate isTypeAssignableTo(Type)

Returns true if a given type can be assigned to a variable of the element's type.

isTypeOf
eponymoustemplate isTypeOf(Type)

Returns true if a given type matches the element's type exactly.

Manifest constants

isAccessible
enum isAccessible;

Returns true if the element is accessible.

isAccessible
enum isAccessible;

Returns true if the element is accessible.

isAggregate
enum isAggregate;

Returns true if the element refers to an aggregate type.

isClass
enum isClass;

Returns true if the element refers to a class.

isConstructor
enum isConstructor;

Returns true if the element refers to a constructor.

isDestructor
enum isDestructor;

Returns true if the element refers to a destructor.

isEnum
enum isEnum;

Returns true if the element refers to an enum.

isFunction
enum isFunction;

Returns true if the element refers to a function.

isStruct
enum isStruct;

Returns true if the element refers to a struct.

name
enum name;

Returns the name of the element.

protection
enum protection;

Returns the element's access protection.

Properties

attributes
auto attributes [@property getter]

Returns the element's attributes.

attributes
auto attributes [@property getter]

Returns the element's allowed attributes.

opCall
auto opCall [@property getter]

Returns an uninitialized value of the element's type.

parent
auto parent [@property getter]

Returns a query for the parent type of the element.

query
auto query [@property getter]

Returns a query for the type the element refers to.

Static functions

toString
string toString()

Returns the name of element.

Meta