You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utils/SpatialTreeInterface/README.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,14 @@ This is also a zero cost interface if implemented correctly! Verified implement
23
23
-`getchild(node)` - get the children of a node. This may be materialized if necessary or available, but can also be lazy (like a generator).
24
24
-`getchild(node, i)` - get the `i`-th child of a node.
25
25
-`nchild(node)::Int` - the number of children of a node.
26
-
-`child_indices_extents(node)` - an iterator over the indices and extents of the children of a node.
26
+
-`child_indices_extents(node)` - an iterator over the indices and extents of the children of a **leaf**node.
27
27
28
-
These are the only methods that are required to be implemented. They enable the generic query functions described below:
28
+
These are the only methods that are required to be implemented.
29
+
30
+
Optionally, one may define:
31
+
-`node_extent(node)` - get the extent of a node. This falls back to `GI.extent` but can potentially be overridden if you want to return a different but extent-like object.
32
+
33
+
They enable the generic query functions described below:
0 commit comments