def finalized_roots(cls): """Gets all the roots of the finalized SNodeTree. Returns: A list of the roots of the finalized SNodeTree. """ roots_ptr = [] size = impl.get_runtime().prog.get_snode_tree_size() for i in range(size): res = impl.get_runtime().prog.get_snode_root(i) roots_ptr.append(snode.SNode(res)) return roots_ptr
def __init__(self): self._ptr = _snode_registry.create_root() self._root = snode.SNode(self._ptr) self._finalized = False self._empty = True
def __init__(self): self._ptr = _snode_registry.create_root(impl.get_runtime().prog) self._root = snode.SNode(self._ptr) self._finalized = False self._empty = True