File tree Expand file tree Collapse file tree 12 files changed +120
-21
lines changed
AttributeGraph.xcframework
ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule
ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule
macos-arm64e-arm64-x86_64/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule
Sources/Modules/AttributeGraph.swiftmodule Expand file tree Collapse file tree 12 files changed +120
-21
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -398,6 +398,18 @@ extension AttributeGraph.AGGraph {
398
398
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
399
399
}
400
400
401
+ extension AttributeGraph.AGGraph {
402
+ @_silgen_name("AGGraphGetOutputValue")
403
+ @inline(__always)
404
+ @inlinable
405
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
406
+
407
+ @_silgen_name("AGGraphSetOutputValue")
408
+ @inline(__always)
409
+ @inlinable
410
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
411
+ }
412
+
401
413
// MARK: - AGSubgraph
402
414
403
415
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -394,6 +394,18 @@ extension AttributeGraph.AGGraph {
394
394
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
395
395
}
396
396
397
+ extension AttributeGraph.AGGraph {
398
+ @_silgen_name("AGGraphGetOutputValue")
399
+ @inline(__always)
400
+ @inlinable
401
+ public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
402
+
403
+ @_silgen_name("AGGraphSetOutputValue")
404
+ @inline(__always)
405
+ @inlinable
406
+ public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
407
+ }
408
+
397
409
// MARK: - AGSubgraph
398
410
399
411
extension AttributeGraph.AGSubgraph {
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ extension Rule {
22
22
let rule = pointer. assumingMemoryBound ( to: Self . self)
23
23
let value = rule. pointee. value
24
24
// Verified for RELEASE_2023
25
- withUnsafePointer ( to: value) { valuePointer in
26
- OGGraphSetOutputValue ( valuePointer )
25
+ withUnsafePointer ( to: value) { value in
26
+ OGGraph . setOutputValue ( value )
27
27
}
28
28
}
29
29
@@ -32,8 +32,8 @@ extension Rule {
32
32
return
33
33
}
34
34
// Verified for RELEASE_2023
35
- withUnsafePointer ( to: initialValue) { valuePointer in
36
- OGGraphSetOutputValue ( valuePointer )
35
+ withUnsafePointer ( to: initialValue) { value in
36
+ OGGraph . setOutputValue ( value )
37
37
}
38
38
}
39
39
}
@@ -91,13 +91,3 @@ extension Rule where Self: Hashable {
91
91
. assumingMemoryBound ( to: Value . self)
92
92
}
93
93
}
94
-
95
- @_silgen_name ( " OGGraphGetOutputValue " )
96
- @inline ( __always)
97
- @inlinable
98
- func OGGraphGetOutputValue< Value> ( ) -> UnsafePointer < Value > ?
99
-
100
- @_silgen_name ( " OGGraphSetOutputValue " )
101
- @inline ( __always)
102
- @inlinable
103
- func OGGraphSetOutputValue< Value > ( _ valuePointer: UnsafePointer < Value > )
Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ public struct RuleContext<Value> {
43
43
44
44
public var value : Value {
45
45
unsafeAddress {
46
- OGGraphGetOutputValue ( ) !
46
+ OGGraph . outputValue ( ) !
47
47
}
48
48
nonmutating set {
49
- withUnsafePointer ( to: newValue) { valuePointer in
50
- OGGraphSetOutputValue ( valuePointer )
49
+ withUnsafePointer ( to: newValue) { value in
50
+ OGGraph . setOutputValue ( value )
51
51
}
52
52
}
53
53
}
54
54
55
55
public var hasValue : Bool {
56
- let valuePointer : UnsafePointer < Value > ? = OGGraphGetOutputValue ( )
56
+ let valuePointer : UnsafePointer < Value > ? = OGGraph . outputValue ( )
57
57
return valuePointer != nil
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments