SKSequence
public protocol SKSequence : AnyObject, Decodable, Encodable, Equatable
Undocumented
-
Undocumented
Declaration
Swift
associatedtype SequenceElement : SKSequence
-
The zero-based pre-order depth-first search (DFS) index of the substructure relative to the source file.
Note
The first entity in each source file will begin from zero.
Note
The parents are not compared for equality.
Declaration
Swift
var index: Int? { get set }
-
The path to the source file.
Note
The parents are not compared for equality.Declaration
Swift
var filePath: String? { get set }
-
The parent entity, or
nil
if this entity is a root.Important
The use of
SKFinalSubclass.parent
should be preferred.Note
The parents are not compared for equality.
Declaration
Swift
var internalParent: SequenceElement? { get set }
-
The entity children contained in the particular entity (sub-classes, references, etc.).
Important
The use ofSKFinalSubclass.children
should be preferred.Declaration
Swift
var internalChildren: [SequenceElement]? { get set }
-
Overridden by subclasses to substitute a new iterator class for
SKChildren
.The default iterator class used is
SKPreOrderDFSIterator
, which is a pre-order (NLR) depth-first search (DFS) traversing iterator.Declaration
Swift
static func iteratorClass<SequenceElement>() -> SKPreOrderDFSIterator<SequenceElement>.Type where SequenceElement : SKSequence
Return Value
The iterator class used for iterating through
SKChildren
.