SKSortedEntities
public struct SKSortedEntities<Entity> where Entity : SKByteRange
Undocumented
-
Undocumented
Declaration
Swift
public let entities: [Entity]
-
Undocumented
Declaration
Swift
public init(entities: [Entity])
-
Returns the annotation with the specified kind, or
nil
if nonexistent.Declaration
Swift
public func annotation(with kind: SKAnnotation.Kind) -> SKAnnotation?
Parameters
kind
The kind of the annotation to return.
Return Value
The
SKAnnotation
, ornil
if nonexistent. -
Returns whether the specified annotation kind is a member of the entities.
Declaration
Swift
public func containsAnnotation(with kind: SKAnnotation.Kind) -> Bool
Parameters
kind
The kind of the annotation.
Return Value
true
if the annotation kind is a member of the entities; otherwise,false
.
-
Undocumented
Declaration
Swift
public var first: Entity? { get }
-
Undocumented
Declaration
Swift
public var last: Entity? { get }
-
Undocumented
Declaration
Swift
public var count: Int { get }
-
Declaration
Swift
public func makeIterator() -> IndexingIterator<[Entity]>
-
Undocumented
Declaration
Swift
public func index(of entity: Entity) -> Int?
-
Undocumented
Declaration
Swift
public subscript(index: Int) -> Entity { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public static func == (lhs: SKSortedEntities<Entity>, rhs: SKSortedEntities<Entity>) -> Bool
-
Returns the attribute with the specified kind, or
nil
if nonexistent.Declaration
Swift
public func attribute(with kind: SKAttribute.Kind) -> SKAttribute?
Parameters
kind
The kind of the attribute to return.
Return Value
The
SKAttribute
, ornil
if nonexistent. -
Returns whether the specified attribute kind is a member of the entities.
Declaration
Swift
public func containsAttribute(with kind: SKAttribute.Kind) -> Bool
Parameters
kind
The kind of the attribute.
Return Value
true
if the attribute kind is a member of the entities; otherwise,false
.
-
Returns whether the specified element kind is a member of the entities.
Declaration
Swift
public func containsElement(with kind: SKElement.Kind) -> Bool
Parameters
kind
The kind of the element.
Return Value
true
if the element kind is a member of the entities; otherwise,false
.