Go to the source code of this file.
Namespaces | |
| namespace | slimpy_base.Core.Graph.Cleaner |
Classes | |
| class | cleaner |
| cleaner cleans the graph of obsolete data, cleaner does not necessarily have to remove dead branches from the graph but the data that the nodes point to. More... | |
Functions | |
| def | __init__ |
| cleaner instance takes a graph and a depth | |
| def | clean |
| usage: Call clean on a node after the node is finished adds the dependencies of node to the list of sources by calling add source. | |
| def | addSource |
| Add a source node to the cleaner. | |
| def | remove |
| removes node only if the reference count of node is 1 | |
| def | get_cleaned_nodes |
| def | all |
| returns true if all values in iterable evaluate to True | |
Variables | |
| string | __copyright__ |
| string | __license__ |
| tuple | env = InstanceManager() |
| graph | |
| depth | |
| __source | |
| _stored | |
| _cleaned | |
1.5.6