SwiftstructMeasureFoundation

struct MeasureFoundation.RingBuffer

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 28

  1. fieldlet capacity: Int+0x0
  2. fieldvar indexOffset: Int+0x8
  3. fieldvar storage: [A]+0x10
  4. funcappend(A) -> ()
  5. funcMeasureFoundation.RingBuffer<A where A == Float>.average() -> Float
  6. funcMeasureFoundation.RingBuffer<A where A == SIMD3<Float>>.average() -> SIMD3<Float>
  7. funcclear() -> ()
  8. funcindex(after: Int) -> Int
  9. initinit(capacity: Int) -> MeasureFoundation.RingBuffer<A>
  10. subscriptsubscript.getter : (Int) -> A
  11. typealiastypealias Element = A
  12. typealiastypealias Element = A
  13. typealiastypealias Element = A
  14. typealiastypealias Element = A
  15. typealiastypealias Index = Swift.Int
  16. typealiastypealias Index = Swift.Int
  17. typealiastypealias Index = Swift.Int
  18. typealiastypealias Indices = Swift.Range<Swift.Int>
  19. typealiastypealias Indices = Swift.Range<Swift.Int>
  20. typealiastypealias Indices = Swift.Range<Swift.Int>
  21. typealiastypealias Iterator = Swift.IndexingIterator<MeasureFoundation.RingBuffer<A>>
  22. typealiastypealias Iterator = Swift.IndexingIterator<MeasureFoundation.RingBuffer<A>>
  23. typealiastypealias SubSequence = Swift.Slice<MeasureFoundation.RingBuffer<A>>
  24. typealiastypealias SubSequence = Swift.Slice<MeasureFoundation.RingBuffer<A>>
  25. typealiastypealias SubSequence = Swift.Slice<MeasureFoundation.RingBuffer<A>>
  26. varvar description: String { get }
  27. varvar endIndex: Int { get }
  28. varvar startIndex: Int { get }
struct RingBuffer<A> {
    let capacity: Swift.Int
    var indexOffset: Swift.Int
    var storage: [A]

    init(capacity: Swift.Int)

    var endIndex: Swift.Int {
        get
    }
    var startIndex: Swift.Int {
        get
    }

    func clear()
    func index(after: Swift.Int) -> Swift.Int
    func append(_: A)

    subscript(_: Swift.Int) -> A {
        get
        set
    }
}