Skip to content

Commit 867d9c1

Browse files
committed
Update Graph and Subgraph
1 parent c27863e commit 867d9c1

File tree

22 files changed

+253
-274
lines changed

22 files changed

+253
-274
lines changed

AG/2021/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Headers/AGGraph.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//
22
// AGGraph.h
3-
//
4-
//
5-
// Created by Kyle on 2024/2/5.
6-
//
3+
// AttributeGraph
74

85
#ifndef AGGraph_h
96
#define AGGraph_h
@@ -14,9 +11,9 @@
1411

1512
// Note: Place all structure declaration in a single place to avoid header cycle dependency
1613

17-
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef;
18-
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef;
19-
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef;
14+
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef AG_SWIFT_NAME(Graph);
15+
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef AG_SWIFT_NAME(Subgraph);
16+
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef AG_SWIFT_NAME(GraphContext);
2017

2118
struct AGGraphStorage;
2219
struct AGGraphContextStorage;

AG/2021/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios.swiftinterface

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public typealias AttributeUpdateBlock = () -> (Swift.UnsafeMutableRawPointer, An
7272
public func visitBody<Body>(_ visitor: inout Body) where Body : AttributeGraph.AttributeBodyVisitor
7373
public func mutateBody<V>(as type: V.Type, invalidating: Swift.Bool, _ body: (inout V) -> Swift.Void)
7474
public func breadthFirstSearch(options: AGSearchOptions = [], _ body: (AnyAttribute) -> Swift.Bool) -> Swift.Bool
75-
public var graph: AGGraph {
75+
public var graph: Graph {
7676
get
7777
}
78-
public var subgraph: AGSubgraph {
78+
public var subgraph: Subgraph {
7979
get
8080
}
8181
public var value: Value {
@@ -517,41 +517,41 @@ extension AttributeGraph.WeakAttribute : Swift.CustomStringConvertible {
517517
@_silgen_name("AGGraphGetWeakValue")
518518
@inline(__always) @inlinable internal func AGGraphGetWeakValue<Value>(_ attribute: AttributeGraph.AnyWeakAttribute, options: AGValueOptions = [], type: Value.Type = Value.self) -> AGValue
519519
public let OPENGRAPH_RELEASE: Swift.Int32
520-
extension AGGraph {
521-
public static func typeIndex(ctx: AGGraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
520+
extension Graph {
521+
public static func typeIndex(ctx: GraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
522522
}
523-
extension AGGraph {
523+
extension Graph {
524524
@_silgen_name("AGGraphStartProfiling")
525-
public static func startProfiling(_ graph: AGGraph? = nil)
525+
public static func startProfiling(_ graph: Graph? = nil)
526526
@_silgen_name("AGGraphStopProfiling")
527-
public static func stopProfiling(_ graph: AGGraph? = nil)
527+
public static func stopProfiling(_ graph: Graph? = nil)
528528
}
529-
extension AGGraph {
529+
extension Graph {
530530
@_silgen_name("AGGraphSetInvalidationCallback")
531-
public static func setInvalidationCallback(_ graph: AGGraph, callback: ((AnyAttribute) -> Swift.Void)?)
531+
public static func setInvalidationCallback(_ graph: Graph, callback: ((AnyAttribute) -> Swift.Void)?)
532532
@_silgen_name("AGGraphSetUpdateCallback")
533-
public static func setUpdateCallback(_ graph: AGGraph, callback: (() -> Swift.Void)?)
533+
public static func setUpdateCallback(_ graph: Graph, callback: (() -> Swift.Void)?)
534534
}
535-
extension AGGraph {
535+
extension Graph {
536536
@_transparent @inline(__always) public var mainUpdates: Swift.Int {
537537
@_transparent get { numericCast(counter(for: ._10)) }
538538
}
539539
}
540-
extension AGGraph {
540+
extension Graph {
541541
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
542542
}
543-
extension AGGraph {
543+
extension Graph {
544544
@_silgen_name("AGGraphGetOutputValue")
545545
@inline(__always) @inlinable public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
546546
@_silgen_name("AGGraphSetOutputValue")
547547
@inline(__always) @inlinable public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
548548
}
549-
extension AGSubgraph {
549+
extension Subgraph {
550550
public func addObserver(_ observer: () -> Swift.Void) -> Swift.Int
551551
public func apply<Value>(_ body: () -> Value) -> Value
552552
public func forEach(_ flags: AGAttributeFlags, _ callback: (AnyAttribute) -> Swift.Void)
553553
}
554-
extension AGSubgraph {
554+
extension Subgraph {
555555
public static func beginTreeElement<Value>(value: AttributeGraph.Attribute<Value>, flags: Swift.UInt32)
556556
public static func addTreeValue<Value>(_ value: AttributeGraph.Attribute<Value>, forKey key: Swift.UnsafePointer<Swift.Int8>, flags: Swift.UInt32)
557557
public static func endTreeElement<Value>(value: AttributeGraph.Attribute<Value>)

AG/2021/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64e-apple-ios.swiftinterface

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public typealias AttributeUpdateBlock = () -> (Swift.UnsafeMutableRawPointer, An
7272
public func visitBody<Body>(_ visitor: inout Body) where Body : AttributeGraph.AttributeBodyVisitor
7373
public func mutateBody<V>(as type: V.Type, invalidating: Swift.Bool, _ body: (inout V) -> Swift.Void)
7474
public func breadthFirstSearch(options: AGSearchOptions = [], _ body: (AnyAttribute) -> Swift.Bool) -> Swift.Bool
75-
public var graph: AGGraph {
75+
public var graph: Graph {
7676
get
7777
}
78-
public var subgraph: AGSubgraph {
78+
public var subgraph: Subgraph {
7979
get
8080
}
8181
public var value: Value {
@@ -517,41 +517,41 @@ extension AttributeGraph.WeakAttribute : Swift.CustomStringConvertible {
517517
@_silgen_name("AGGraphGetWeakValue")
518518
@inline(__always) @inlinable internal func AGGraphGetWeakValue<Value>(_ attribute: AttributeGraph.AnyWeakAttribute, options: AGValueOptions = [], type: Value.Type = Value.self) -> AGValue
519519
public let OPENGRAPH_RELEASE: Swift.Int32
520-
extension AGGraph {
521-
public static func typeIndex(ctx: AGGraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
520+
extension Graph {
521+
public static func typeIndex(ctx: GraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
522522
}
523-
extension AGGraph {
523+
extension Graph {
524524
@_silgen_name("AGGraphStartProfiling")
525-
public static func startProfiling(_ graph: AGGraph? = nil)
525+
public static func startProfiling(_ graph: Graph? = nil)
526526
@_silgen_name("AGGraphStopProfiling")
527-
public static func stopProfiling(_ graph: AGGraph? = nil)
527+
public static func stopProfiling(_ graph: Graph? = nil)
528528
}
529-
extension AGGraph {
529+
extension Graph {
530530
@_silgen_name("AGGraphSetInvalidationCallback")
531-
public static func setInvalidationCallback(_ graph: AGGraph, callback: ((AnyAttribute) -> Swift.Void)?)
531+
public static func setInvalidationCallback(_ graph: Graph, callback: ((AnyAttribute) -> Swift.Void)?)
532532
@_silgen_name("AGGraphSetUpdateCallback")
533-
public static func setUpdateCallback(_ graph: AGGraph, callback: (() -> Swift.Void)?)
533+
public static func setUpdateCallback(_ graph: Graph, callback: (() -> Swift.Void)?)
534534
}
535-
extension AGGraph {
535+
extension Graph {
536536
@_transparent @inline(__always) public var mainUpdates: Swift.Int {
537537
@_transparent get { numericCast(counter(for: ._10)) }
538538
}
539539
}
540-
extension AGGraph {
540+
extension Graph {
541541
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
542542
}
543-
extension AGGraph {
543+
extension Graph {
544544
@_silgen_name("AGGraphGetOutputValue")
545545
@inline(__always) @inlinable public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
546546
@_silgen_name("AGGraphSetOutputValue")
547547
@inline(__always) @inlinable public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
548548
}
549-
extension AGSubgraph {
549+
extension Subgraph {
550550
public func addObserver(_ observer: () -> Swift.Void) -> Swift.Int
551551
public func apply<Value>(_ body: () -> Value) -> Value
552552
public func forEach(_ flags: AGAttributeFlags, _ callback: (AnyAttribute) -> Swift.Void)
553553
}
554-
extension AGSubgraph {
554+
extension Subgraph {
555555
public static func beginTreeElement<Value>(value: AttributeGraph.Attribute<Value>, flags: Swift.UInt32)
556556
public static func addTreeValue<Value>(_ value: AttributeGraph.Attribute<Value>, forKey key: Swift.UnsafePointer<Swift.Int8>, flags: Swift.UInt32)
557557
public static func endTreeElement<Value>(value: AttributeGraph.Attribute<Value>)

AG/2021/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Headers/AGGraph.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//
22
// AGGraph.h
3-
//
4-
//
5-
// Created by Kyle on 2024/2/5.
6-
//
3+
// AttributeGraph
74

85
#ifndef AGGraph_h
96
#define AGGraph_h
@@ -14,9 +11,9 @@
1411

1512
// Note: Place all structure declaration in a single place to avoid header cycle dependency
1613

17-
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef;
18-
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef;
19-
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef;
14+
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef AG_SWIFT_NAME(Graph);
15+
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef AG_SWIFT_NAME(Subgraph);
16+
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef AG_SWIFT_NAME(GraphContext);
2017

2118
struct AGGraphStorage;
2219
struct AGGraphContextStorage;

AG/2021/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/arm64-apple-ios-simulator.swiftinterface

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public typealias AttributeUpdateBlock = () -> (Swift.UnsafeMutableRawPointer, An
7272
public func visitBody<Body>(_ visitor: inout Body) where Body : AttributeGraph.AttributeBodyVisitor
7373
public func mutateBody<V>(as type: V.Type, invalidating: Swift.Bool, _ body: (inout V) -> Swift.Void)
7474
public func breadthFirstSearch(options: AGSearchOptions = [], _ body: (AnyAttribute) -> Swift.Bool) -> Swift.Bool
75-
public var graph: AGGraph {
75+
public var graph: Graph {
7676
get
7777
}
78-
public var subgraph: AGSubgraph {
78+
public var subgraph: Subgraph {
7979
get
8080
}
8181
public var value: Value {
@@ -517,41 +517,41 @@ extension AttributeGraph.WeakAttribute : Swift.CustomStringConvertible {
517517
@_silgen_name("AGGraphGetWeakValue")
518518
@inline(__always) @inlinable internal func AGGraphGetWeakValue<Value>(_ attribute: AttributeGraph.AnyWeakAttribute, options: AGValueOptions = [], type: Value.Type = Value.self) -> AGValue
519519
public let OPENGRAPH_RELEASE: Swift.Int32
520-
extension AGGraph {
521-
public static func typeIndex(ctx: AGGraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
520+
extension Graph {
521+
public static func typeIndex(ctx: GraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
522522
}
523-
extension AGGraph {
523+
extension Graph {
524524
@_silgen_name("AGGraphStartProfiling")
525-
public static func startProfiling(_ graph: AGGraph? = nil)
525+
public static func startProfiling(_ graph: Graph? = nil)
526526
@_silgen_name("AGGraphStopProfiling")
527-
public static func stopProfiling(_ graph: AGGraph? = nil)
527+
public static func stopProfiling(_ graph: Graph? = nil)
528528
}
529-
extension AGGraph {
529+
extension Graph {
530530
@_silgen_name("AGGraphSetInvalidationCallback")
531-
public static func setInvalidationCallback(_ graph: AGGraph, callback: ((AnyAttribute) -> Swift.Void)?)
531+
public static func setInvalidationCallback(_ graph: Graph, callback: ((AnyAttribute) -> Swift.Void)?)
532532
@_silgen_name("AGGraphSetUpdateCallback")
533-
public static func setUpdateCallback(_ graph: AGGraph, callback: (() -> Swift.Void)?)
533+
public static func setUpdateCallback(_ graph: Graph, callback: (() -> Swift.Void)?)
534534
}
535-
extension AGGraph {
535+
extension Graph {
536536
@_transparent @inline(__always) public var mainUpdates: Swift.Int {
537537
@_transparent get { numericCast(counter(for: ._10)) }
538538
}
539539
}
540-
extension AGGraph {
540+
extension Graph {
541541
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
542542
}
543-
extension AGGraph {
543+
extension Graph {
544544
@_silgen_name("AGGraphGetOutputValue")
545545
@inline(__always) @inlinable public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
546546
@_silgen_name("AGGraphSetOutputValue")
547547
@inline(__always) @inlinable public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
548548
}
549-
extension AGSubgraph {
549+
extension Subgraph {
550550
public func addObserver(_ observer: () -> Swift.Void) -> Swift.Int
551551
public func apply<Value>(_ body: () -> Value) -> Value
552552
public func forEach(_ flags: AGAttributeFlags, _ callback: (AnyAttribute) -> Swift.Void)
553553
}
554-
extension AGSubgraph {
554+
extension Subgraph {
555555
public static func beginTreeElement<Value>(value: AttributeGraph.Attribute<Value>, flags: Swift.UInt32)
556556
public static func addTreeValue<Value>(_ value: AttributeGraph.Attribute<Value>, forKey key: Swift.UnsafePointer<Swift.Int8>, flags: Swift.UInt32)
557557
public static func endTreeElement<Value>(value: AttributeGraph.Attribute<Value>)

AG/2021/AttributeGraph.xcframework/ios-arm64-x86_64-simulator/AttributeGraph.framework/Modules/AttributeGraph.swiftmodule/x86_64-apple-ios-simulator.swiftinterface

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public typealias AttributeUpdateBlock = () -> (Swift.UnsafeMutableRawPointer, An
7272
public func visitBody<Body>(_ visitor: inout Body) where Body : AttributeGraph.AttributeBodyVisitor
7373
public func mutateBody<V>(as type: V.Type, invalidating: Swift.Bool, _ body: (inout V) -> Swift.Void)
7474
public func breadthFirstSearch(options: AGSearchOptions = [], _ body: (AnyAttribute) -> Swift.Bool) -> Swift.Bool
75-
public var graph: AGGraph {
75+
public var graph: Graph {
7676
get
7777
}
78-
public var subgraph: AGSubgraph {
78+
public var subgraph: Subgraph {
7979
get
8080
}
8181
public var value: Value {
@@ -517,41 +517,41 @@ extension AttributeGraph.WeakAttribute : Swift.CustomStringConvertible {
517517
@_silgen_name("AGGraphGetWeakValue")
518518
@inline(__always) @inlinable internal func AGGraphGetWeakValue<Value>(_ attribute: AttributeGraph.AnyWeakAttribute, options: AGValueOptions = [], type: Value.Type = Value.self) -> AGValue
519519
public let OPENGRAPH_RELEASE: Swift.Int32
520-
extension AGGraph {
521-
public static func typeIndex(ctx: AGGraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
520+
extension Graph {
521+
public static func typeIndex(ctx: GraphContext, body: any AttributeGraph._AttributeBody.Type, valueType: Metadata, flags: AGAttributeTypeFlags, update: () -> (Swift.UnsafeMutableRawPointer, AnyAttribute) -> Swift.Void) -> Swift.Int
522522
}
523-
extension AGGraph {
523+
extension Graph {
524524
@_silgen_name("AGGraphStartProfiling")
525-
public static func startProfiling(_ graph: AGGraph? = nil)
525+
public static func startProfiling(_ graph: Graph? = nil)
526526
@_silgen_name("AGGraphStopProfiling")
527-
public static func stopProfiling(_ graph: AGGraph? = nil)
527+
public static func stopProfiling(_ graph: Graph? = nil)
528528
}
529-
extension AGGraph {
529+
extension Graph {
530530
@_silgen_name("AGGraphSetInvalidationCallback")
531-
public static func setInvalidationCallback(_ graph: AGGraph, callback: ((AnyAttribute) -> Swift.Void)?)
531+
public static func setInvalidationCallback(_ graph: Graph, callback: ((AnyAttribute) -> Swift.Void)?)
532532
@_silgen_name("AGGraphSetUpdateCallback")
533-
public static func setUpdateCallback(_ graph: AGGraph, callback: (() -> Swift.Void)?)
533+
public static func setUpdateCallback(_ graph: Graph, callback: (() -> Swift.Void)?)
534534
}
535-
extension AGGraph {
535+
extension Graph {
536536
@_transparent @inline(__always) public var mainUpdates: Swift.Int {
537537
@_transparent get { numericCast(counter(for: ._10)) }
538538
}
539539
}
540-
extension AGGraph {
540+
extension Graph {
541541
public static func withoutUpdate<Value>(_ body: () -> Value) -> Value
542542
}
543-
extension AGGraph {
543+
extension Graph {
544544
@_silgen_name("AGGraphGetOutputValue")
545545
@inline(__always) @inlinable public static func outputValue<Value>() -> Swift.UnsafePointer<Value>?
546546
@_silgen_name("AGGraphSetOutputValue")
547547
@inline(__always) @inlinable public static func setOutputValue<Value>(_ value: Swift.UnsafePointer<Value>)
548548
}
549-
extension AGSubgraph {
549+
extension Subgraph {
550550
public func addObserver(_ observer: () -> Swift.Void) -> Swift.Int
551551
public func apply<Value>(_ body: () -> Value) -> Value
552552
public func forEach(_ flags: AGAttributeFlags, _ callback: (AnyAttribute) -> Swift.Void)
553553
}
554-
extension AGSubgraph {
554+
extension Subgraph {
555555
public static func beginTreeElement<Value>(value: AttributeGraph.Attribute<Value>, flags: Swift.UInt32)
556556
public static func addTreeValue<Value>(_ value: AttributeGraph.Attribute<Value>, forKey key: Swift.UnsafePointer<Swift.Int8>, flags: Swift.UInt32)
557557
public static func endTreeElement<Value>(value: AttributeGraph.Attribute<Value>)

AG/2021/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/Headers/AGGraph.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//
22
// AGGraph.h
3-
//
4-
//
5-
// Created by Kyle on 2024/2/5.
6-
//
3+
// AttributeGraph
74

85
#ifndef AGGraph_h
96
#define AGGraph_h
@@ -14,9 +11,9 @@
1411

1512
// Note: Place all structure declaration in a single place to avoid header cycle dependency
1613

17-
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef;
18-
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef;
19-
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef;
14+
typedef struct AG_BRIDGED_TYPE(id) AGGraphStorage * AGGraphRef AG_SWIFT_NAME(Graph);
15+
typedef struct AG_BRIDGED_TYPE(id) AGSubgraphStorage * AGSubgraphRef AG_SWIFT_NAME(Subgraph);
16+
typedef struct AG_BRIDGED_TYPE(id) AGGraphContextStorage * AGGraphContextRef AG_SWIFT_NAME(GraphContext);
2017

2118
struct AGGraphStorage;
2219
struct AGGraphContextStorage;

0 commit comments

Comments
 (0)