|
Burgerlib Python
|
Node class for creating directory trees. More...
Public Member Functions | |
| __init__ (self, value, children=None) | |
| Create a node with an initial value. | |
| __repr__ (self, level=0) | |
| Display this node as a string. | |
| __str__ (self, level=0) | |
| Display this node as a string. | |
Public Attributes | |
| value = value | |
| Value contained in this node. | |
| children = children | |
| Array of children nodes to this node. | |
Node class for creating directory trees.
Needed for some projects that have to store file entries in nested trees
| burger.Node.__init__ | ( | self, | |
| value, | |||
| children = None ) |
Create a node with an initial value.
| value | Object to be the value of this node |
| children | Array of nodes to be added as children to this one |
| burger.Node.__repr__ | ( | self, | |
| level = 0 ) |
Display this node as a string.
| level | Recursion depth (Used internally) |
| burger.Node.__str__ | ( | self, | |
| level = 0 ) |
Display this node as a string.
| level | Recursion depth (Used internally) |