Skip to content

Commit

Permalink
neighbor accessors return iterators now, not IndexedSeqs (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpollmeier authored Nov 9, 2023
1 parent 8392070 commit b4718de
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Odb2Generated {
var p = node
while (p != null) {
sumDepth += 1
p = p._astIn.headOption.orNull
p = p._astIn.nextOption.orNull
}
}
if (blackhole != null) blackhole.consume(sumDepth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class DomainClassesGenerator(schema: Schema) {
// format: off
val edgeAccess = edgeTypes.map { et =>
s"""
|final def _${Helpers.camelCase(et.name)}Out: IndexedSeq[StoredNode] = odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, ${edgeIdByType(et)}).asInstanceOf[IndexedSeq[StoredNode]]
|final def _${Helpers.camelCase(et.name)}In: IndexedSeq[StoredNode] = odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, ${edgeIdByType(et)}).asInstanceOf[IndexedSeq[StoredNode]]
|final def _${Helpers.camelCase(et.name)}Out: Iterator[StoredNode] = odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, ${edgeIdByType(et)}).asInstanceOf[Iterator[StoredNode]]
|final def _${Helpers.camelCase(et.name)}In: Iterator[StoredNode] = odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, ${edgeIdByType(et)}).asInstanceOf[Iterator[StoredNode]]
|""".stripMargin
}.mkString("\n")
// format: on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,125 +12,125 @@ abstract class StoredNode(graph_4762: odb2.Graph, kind_4762: Short, seq_4762: In
extends odb2.GNode(graph_4762, kind_4762, seq_4762)
with AbstractNode {

final def _aliasOfOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 0).asInstanceOf[IndexedSeq[StoredNode]]
final def _aliasOfIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 0).asInstanceOf[IndexedSeq[StoredNode]]

final def _argumentOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 1).asInstanceOf[IndexedSeq[StoredNode]]
final def _argumentIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 1).asInstanceOf[IndexedSeq[StoredNode]]

final def _astOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 2).asInstanceOf[IndexedSeq[StoredNode]]
final def _astIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 2).asInstanceOf[IndexedSeq[StoredNode]]

final def _bindsOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 3).asInstanceOf[IndexedSeq[StoredNode]]
final def _bindsIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 3).asInstanceOf[IndexedSeq[StoredNode]]

final def _bindsToOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 4).asInstanceOf[IndexedSeq[StoredNode]]
final def _bindsToIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 4).asInstanceOf[IndexedSeq[StoredNode]]

final def _callOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 5).asInstanceOf[IndexedSeq[StoredNode]]
final def _callIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 5).asInstanceOf[IndexedSeq[StoredNode]]

final def _captureOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 6).asInstanceOf[IndexedSeq[StoredNode]]
final def _captureIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 6).asInstanceOf[IndexedSeq[StoredNode]]

final def _capturedByOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 7).asInstanceOf[IndexedSeq[StoredNode]]
final def _capturedByIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 7).asInstanceOf[IndexedSeq[StoredNode]]

final def _cdgOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 8).asInstanceOf[IndexedSeq[StoredNode]]
final def _cdgIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 8).asInstanceOf[IndexedSeq[StoredNode]]

final def _cfgOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 9).asInstanceOf[IndexedSeq[StoredNode]]
final def _cfgIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 9).asInstanceOf[IndexedSeq[StoredNode]]

final def _conditionOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 10).asInstanceOf[IndexedSeq[StoredNode]]
final def _conditionIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 10).asInstanceOf[IndexedSeq[StoredNode]]

final def _containsOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 11).asInstanceOf[IndexedSeq[StoredNode]]
final def _containsIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 11).asInstanceOf[IndexedSeq[StoredNode]]

final def _dominateOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 12).asInstanceOf[IndexedSeq[StoredNode]]
final def _dominateIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 12).asInstanceOf[IndexedSeq[StoredNode]]

final def _evalTypeOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 13).asInstanceOf[IndexedSeq[StoredNode]]
final def _evalTypeIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 13).asInstanceOf[IndexedSeq[StoredNode]]

final def _importsOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 14).asInstanceOf[IndexedSeq[StoredNode]]
final def _importsIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 14).asInstanceOf[IndexedSeq[StoredNode]]

final def _inheritsFromOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 15).asInstanceOf[IndexedSeq[StoredNode]]
final def _inheritsFromIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 15).asInstanceOf[IndexedSeq[StoredNode]]

final def _isCallForImportOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 16).asInstanceOf[IndexedSeq[StoredNode]]
final def _isCallForImportIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 16).asInstanceOf[IndexedSeq[StoredNode]]

final def _parameterLinkOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 17).asInstanceOf[IndexedSeq[StoredNode]]
final def _parameterLinkIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 17).asInstanceOf[IndexedSeq[StoredNode]]

final def _postDominateOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 18).asInstanceOf[IndexedSeq[StoredNode]]
final def _postDominateIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 18).asInstanceOf[IndexedSeq[StoredNode]]

final def _reachingDefOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 19).asInstanceOf[IndexedSeq[StoredNode]]
final def _reachingDefIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 19).asInstanceOf[IndexedSeq[StoredNode]]

final def _receiverOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 20).asInstanceOf[IndexedSeq[StoredNode]]
final def _receiverIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 20).asInstanceOf[IndexedSeq[StoredNode]]

final def _refOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 21).asInstanceOf[IndexedSeq[StoredNode]]
final def _refIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 21).asInstanceOf[IndexedSeq[StoredNode]]

final def _sourceFileOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 22).asInstanceOf[IndexedSeq[StoredNode]]
final def _sourceFileIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 22).asInstanceOf[IndexedSeq[StoredNode]]

final def _taggedByOut: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 23).asInstanceOf[IndexedSeq[StoredNode]]
final def _taggedByIn: IndexedSeq[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 23).asInstanceOf[IndexedSeq[StoredNode]]
final def _aliasOfOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 0).asInstanceOf[Iterator[StoredNode]]
final def _aliasOfIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 0).asInstanceOf[Iterator[StoredNode]]

final def _argumentOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 1).asInstanceOf[Iterator[StoredNode]]
final def _argumentIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 1).asInstanceOf[Iterator[StoredNode]]

final def _astOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 2).asInstanceOf[Iterator[StoredNode]]
final def _astIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 2).asInstanceOf[Iterator[StoredNode]]

final def _bindsOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 3).asInstanceOf[Iterator[StoredNode]]
final def _bindsIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 3).asInstanceOf[Iterator[StoredNode]]

final def _bindsToOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 4).asInstanceOf[Iterator[StoredNode]]
final def _bindsToIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 4).asInstanceOf[Iterator[StoredNode]]

final def _callOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 5).asInstanceOf[Iterator[StoredNode]]
final def _callIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 5).asInstanceOf[Iterator[StoredNode]]

final def _captureOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 6).asInstanceOf[Iterator[StoredNode]]
final def _captureIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 6).asInstanceOf[Iterator[StoredNode]]

final def _capturedByOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 7).asInstanceOf[Iterator[StoredNode]]
final def _capturedByIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 7).asInstanceOf[Iterator[StoredNode]]

final def _cdgOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 8).asInstanceOf[Iterator[StoredNode]]
final def _cdgIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 8).asInstanceOf[Iterator[StoredNode]]

final def _cfgOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 9).asInstanceOf[Iterator[StoredNode]]
final def _cfgIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 9).asInstanceOf[Iterator[StoredNode]]

final def _conditionOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 10).asInstanceOf[Iterator[StoredNode]]
final def _conditionIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 10).asInstanceOf[Iterator[StoredNode]]

final def _containsOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 11).asInstanceOf[Iterator[StoredNode]]
final def _containsIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 11).asInstanceOf[Iterator[StoredNode]]

final def _dominateOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 12).asInstanceOf[Iterator[StoredNode]]
final def _dominateIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 12).asInstanceOf[Iterator[StoredNode]]

final def _evalTypeOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 13).asInstanceOf[Iterator[StoredNode]]
final def _evalTypeIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 13).asInstanceOf[Iterator[StoredNode]]

final def _importsOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 14).asInstanceOf[Iterator[StoredNode]]
final def _importsIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 14).asInstanceOf[Iterator[StoredNode]]

final def _inheritsFromOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 15).asInstanceOf[Iterator[StoredNode]]
final def _inheritsFromIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 15).asInstanceOf[Iterator[StoredNode]]

final def _isCallForImportOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 16).asInstanceOf[Iterator[StoredNode]]
final def _isCallForImportIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 16).asInstanceOf[Iterator[StoredNode]]

final def _parameterLinkOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 17).asInstanceOf[Iterator[StoredNode]]
final def _parameterLinkIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 17).asInstanceOf[Iterator[StoredNode]]

final def _postDominateOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 18).asInstanceOf[Iterator[StoredNode]]
final def _postDominateIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 18).asInstanceOf[Iterator[StoredNode]]

final def _reachingDefOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 19).asInstanceOf[Iterator[StoredNode]]
final def _reachingDefIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 19).asInstanceOf[Iterator[StoredNode]]

final def _receiverOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 20).asInstanceOf[Iterator[StoredNode]]
final def _receiverIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 20).asInstanceOf[Iterator[StoredNode]]

final def _refOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 21).asInstanceOf[Iterator[StoredNode]]
final def _refIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 21).asInstanceOf[Iterator[StoredNode]]

final def _sourceFileOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 22).asInstanceOf[Iterator[StoredNode]]
final def _sourceFileIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 22).asInstanceOf[Iterator[StoredNode]]

final def _taggedByOut: Iterator[StoredNode] =
odb2.Accessors.getNeighborsOut(this.graph, this.nodeKind, this.seq, 23).asInstanceOf[Iterator[StoredNode]]
final def _taggedByIn: Iterator[StoredNode] =
odb2.Accessors.getNeighborsIn(this.graph, this.nodeKind, this.seq, 23).asInstanceOf[Iterator[StoredNode]]

}

Expand Down

0 comments on commit b4718de

Please sign in to comment.