DQueryAttributes

Undocumented in source.

Alias This

attributes

Members

Aliases

attributes
alias attributes = Attributes

Returns a tuple of attributes in the query.

empty
alias empty = Alias!(length == 0)

Returns true if the list of attributes is empty.

length
alias length = Alias!(Attributes.length)

Returns the number of attributes in the query.

type
alias type = QueryType

Returns the type being queried.

unique
alias unique = Alias!(DQueryAttributes!(QueryType, NoDuplicates!Attributes)())

Returns a transformed list of attributes with all duplicateds removed.

Properties

anyOf
auto anyOf [@property getter]

Returns a subset of the list of attributes which match at least one of the given types.

first
auto first [@property getter]

Returns the first attribute in the query.

firstOr
auto firstOr [@property getter]

Returns the first attribute in the query, or a fallback if empty.

hasAllOf
auto hasAllOf [@property getter]

Returns true if all of the given attributes are present.

hasAnyOf
auto hasAnyOf [@property getter]

Returns true if any of the given attributes are present.

hasNoneOf
auto hasNoneOf [@property getter]

Returns true if none of the given attributes are present.

noneOf
auto noneOf [@property getter]

Property that returns a subset of the list of attributes which match none of the given types.

opCall
auto opCall [@property getter]

Returns an uninitialized value of the query's type.

parent
auto parent [@property getter]

Returns a query for the type that produced this attribute query.

Templates

ensure
template ensure(string Attr : "length")

Provides query validation functions tied to length.

Meta