DQueryElement

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

Members

Aliases

hasAllOf
alias hasAllOf(TList...) = Alias!(attributes.hasAllOf!TList)

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

hasAnyOf
alias hasAnyOf(TList...) = Alias!(attributes.hasAnyOf!TList)

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

hasAttribute
alias hasAttribute(Type) = Alias!(attributes.anyOf!Type.length > 0)

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

hasNoneOf
alias hasNoneOf(TList...) = Alias!(attributes.hasNoneOf!TList)

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

isAggregate
alias isAggregate = Alias!(__traits(compiles, ))

Returns true if the element refers to an aggregate type.

isAggregateAssignableFrom
alias isAggregateAssignableFrom(Type) = Alias!(__traits(compiles, ))

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

isAggregateAssignableTo
alias isAggregateAssignableTo(Type) = Alias!(__traits(compiles, ))

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

isAggregateTypeOf
alias isAggregateTypeOf(Type) = Alias!(__traits(compiles, ))

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

isArity
alias isArity(int Count) = Alias!(isFunction && __traits(compiles, ))

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

isClass
alias isClass = Alias!(__traits(compiles, ))

Returns true if the element refers to a class.

isConstructor
alias isConstructor = Alias!(isFunction && isName!"__ctor")

Returns true if the element refers to a constructor.

isDestructor
alias isDestructor = Alias!(isFunction && isName!"__dtor")

Returns true if the element refers to a destructor.

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

Returns true if the element refers to a field.

isFunction
alias isFunction = Alias!(is(typeof(GetMember!(QueryType, Name)) == function) && !is(typeof(Overload) == typeof(null)))

Returns true if the element refers to a function.

isName
alias isName(string Name) = Alias!(name == Name)

Returns true if the name matches.

isParameterTypesOf
alias isParameterTypesOf(TList...) = Alias!(isFunction && __traits(compiles, ))

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

isReturnAssignableFrom
alias isReturnAssignableFrom(Type) = Alias!(isFunction && __traits(compiles, ))

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

isReturnAssignableTo
alias isReturnAssignableTo(Type) = Alias!(isFunction && __traits(compiles, ))

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

isReturnTypeOf
alias isReturnTypeOf(Type) = Alias!(isFunction && __traits(compiles, ))

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

isStruct
alias isStruct = Alias!(__traits(compiles, ))

Returns true if the element refers to a struct.

isTemplateArgsOf
alias isTemplateArgsOf(TemplateArgs...) = Alias!(__traits(compiles, ))

Returns true if the element's template arguments match.

isTemplateOf
alias isTemplateOf(alias Template) = Alias!(__traits(compiles, ))

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

isTypeAssignableFrom
alias isTypeAssignableFrom(Type) = Alias!(__traits(compiles, ))

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

isTypeAssignableTo
alias isTypeAssignableTo(Type) = Alias!(__traits(compiles, ))

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

isTypeOf
alias isTypeOf(Type) = Alias!(__traits(compiles, ))

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

name
alias name = Name

Returns the name of the element.

protection
alias protection = Alias!(GetProtection!(QueryType, Name))

Returns the element's access protection.

type
alias type = QueryType

Returns the type being queried.

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

Returns the value of the element.

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

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.

Meta