startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: IKComponent.JointCollection.Index { get }The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.
struct · iOS 18.0+ · SDK 27.1
struct JointCollectionOrdered dictionary like container with fixed size. Supports subscripting by index, element's identifier or element's name.
get startIndex(): numberSwift declarationvar startIndex: IKComponent.JointCollection.Index { get }The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.
makeIterator(): IKComponent_JointCollection_IteratorSwift declarationfunc makeIterator() -> IKComponent.JointCollection.IteratorReturns an iterator over the elements of the collection.
set(newValue: IKComponent_Joint): (IKComponent_Joint) | nullSwift declaration@discardableResult mutating func set(_ newValue: IKComponent.JointCollection.Element) -> IKComponent.JointCollection.Element?Updates the element with identifier matching the new value. - Parameter newValue: The new value to store. - Returns: The previous value if the identifier was found, nil otherwise.
get count(): numberSwift declarationvar count: Int { get }The number of elements in the collection.
index(after: number): numberSwift declarationfunc index(after: IKComponent.JointCollection.Index) -> IKComponent.JointCollection.IndexReturns the position immediately after the given index. The successor of an index must be well defined. For an index `i` into a collection `c`, calling `c.index(after: i)` returns the same index every time. - Parameter i: A valid index of the collection. `i` must be less than `endIndex`. - Returns: The index value immediately after `i`.
get isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }A Boolean value indicating whether the collection is empty.
contains(id: IKRig_Joint_ID): booleanSwift declarationfunc contains(_ id: IKComponent.JointCollection.Element.ID) -> BoolReturns a Boolean value that indicates whether the collection contains an element with a specific identifier. - Parameter id: The identifier of the element to look up.
get endIndex(): numberSwift declarationvar endIndex: IKComponent.JointCollection.Index { get }The collection's "past the end" position---that is, the position one greater than the last valid subscript argument. When you need a range that includes the last element of a collection, use the half-open range operator (`..<`) with `endIndex`. The `..<` operator creates a range that doesn't include the upper bound, so it's always safe to use with `endIndex`. For example: let numbers = [10, 20, 30, 40, 50] if let index = numbers.firstIndex(of: 30) { print(numbers[index ..< numbers.endIndex]) } // Prints "[30, 40, 50]" If the collection is empty, `endIndex` is equal to `startIndex`.
subscript(id: IKRig_Joint_ID): (IKComponent_Joint) | nullSwift declarationsubscript(id: IKComponent.JointCollection.Element.ID) -> IKComponent.JointCollection.Element? { get set }Accesses the element with the specified identifier. The following set scenarios are ignored: * Setting nil * Setting element with different id, e.g. `collection[ID(2)]?.id = ID(3) * Setting element with id not in the set - Parameter id: The identifier of the requested element.
subscript4078(name: string): (IKComponent_Joint) | nullSwift declarationsubscript(name: String) -> IKComponent.JointCollection.Element? { get set }Accesses the element with the specified name. Has the same setter restrictions as ``IKComponent/JointCollection/subscript(id:)`` - Parameter name: The name of the requested element.
subscript5106(position: number): IKComponent_JointSwift declarationsubscript(position: IKComponent.JointCollection.Index) -> IKComponent.JointCollection.Element { get set }Accesses the element at the specified position. The following example accesses an element of an array through its subscript to print its value: var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"] print(streets[1]) // Prints "Bryant" You can subscript a collection with any valid index other than the collection's end index. The end index refers to the position one past the last element of a collection, so it doesn't correspond with an element. - Parameter position: The position of the element to access. `position` must be a valid index of the collection that is not equal to the `endIndex` property. - Complexity: O(1)
No declarations were skipped in this snapshot.