TreeContainer

class supriya.tools.systemtools.TreeContainer(children=None, name=None)[source]

Lineage

digraph InheritanceGraph { graph [background=transparent, bgcolor=transparent, color=lightslategrey, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=1, group=0, label=object, shape=box]; } subgraph cluster_servertools { graph [label=servertools]; "supriya.tools.servertools.Group.Group" [color=2, group=1, label=Group, shape=box]; "supriya.tools.servertools.RootNode.RootNode" [color=2, group=1, label=RootNode, shape=box]; "supriya.tools.servertools.Group.Group" -> "supriya.tools.servertools.RootNode.RootNode"; } subgraph cluster_systemtools { graph [label=systemtools]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" [color=3, group=2, label=AbstractBase, shape=box]; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" [color=3, group=2, label=SupriyaObject, shape=box]; "supriya.tools.systemtools.TreeContainer.TreeContainer" [color=black, fontcolor=white, group=2, label=<<B>TreeContainer</B>>, shape=box, style="filled, rounded"]; "supriya.tools.systemtools.TreeNode.TreeNode" [color=3, group=2, label=TreeNode, shape=box]; "supriya.tools.systemtools.SupriyaObject.AbstractBase" -> "supriya.tools.systemtools.SupriyaObject.SupriyaObject"; "supriya.tools.systemtools.SupriyaObject.SupriyaObject" -> "supriya.tools.systemtools.TreeNode.TreeNode"; "supriya.tools.systemtools.TreeNode.TreeNode" -> "supriya.tools.systemtools.TreeContainer.TreeContainer"; } "builtins.object" -> "supriya.tools.systemtools.SupriyaObject.AbstractBase"; "supriya.tools.systemtools.TreeContainer.TreeContainer" -> "supriya.tools.servertools.Group.Group"; }

Bases

Attribute summary

append(expr)
children
extend(expr)
index(expr)
insert(i, expr)
name
parent
parentage
pop([i])
precede_by(expr)
remove(node)
replace_with(expr)
succeed_by(expr)
__contains__(expr)
__delitem__(i)
__eq__(expr) Is true when ID of expr equals ID of Supriya object.
__format__([format_specification]) Formats Supriya object.
__getitem__(expr)
__hash__() Hashes Supriya object.
__iter__()
__len__()
__repr__() Gets interpreter representation of Supriya object.
__setitem__(i, expr)

Read-only properties

TreeContainer.children
(TreeNode).parent
(TreeNode).parentage

Read/write properties

(TreeNode).name

Methods

TreeContainer.append(expr)[source]
TreeContainer.extend(expr)[source]
TreeContainer.index(expr)[source]
TreeContainer.insert(i, expr)[source]
TreeContainer.pop(i=-1)[source]
(TreeNode).precede_by(expr)
TreeContainer.remove(node)[source]
(TreeNode).replace_with(expr)
(TreeNode).succeed_by(expr)

Special methods

TreeContainer.__contains__(expr)[source]
TreeContainer.__delitem__(i)[source]
(SupriyaObject).__eq__(expr)

Is true when ID of expr equals ID of Supriya object. Otherwise false.

Returns boolean.

(SupriyaObject).__format__(format_specification='')

Formats Supriya object.

Set format_specification to ‘’ or ‘storage’. Interprets ‘’ equal to ‘storage’.

Returns string.

TreeContainer.__getitem__(expr)[source]
(SupriyaObject).__hash__()

Hashes Supriya object.

Required to be explicitely re-defined on Python 3 if __eq__ changes.

Returns integer.

TreeContainer.__iter__()[source]
TreeContainer.__len__()[source]
(SupriyaObject).__repr__()

Gets interpreter representation of Supriya object.

Returns string.

TreeContainer.__setitem__(i, expr)[source]