PropertyAccessor.has

Check if requested property is present in component.

Check if requested property is present in component. The method could have allocation side effects due to the fact that it is not restricted in calling access method of the accessor.

interface PropertyAccessor(ComponentType, FieldType = ComponentType, KeyType = string)
const nothrow
bool
has
(
ComponentType component
,
in KeyType property
,
RCIAllocator allocator = theAllocator
)

Parameters

component ComponentType

component which is supposed to have property

property KeyType

speculated property that is to be tested if it is present in component

allocator RCIAllocator

optional allocator used only for allocation of accessed/tested components. It should not be used for other purposes whatsoever.

Return Value

Type: bool

true if property is in component

Meta