Beispiel #1
0
    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
Beispiel #2
0
 def __init__(self):
     self._ptr = _snode_registry.create_root()
     self._root = snode.SNode(self._ptr)
     self._finalized = False
     self._empty = True
Beispiel #3
0
 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