module Synopsis.Formatters.ClassTree
class ClassTree
ClassTree-inheritance
Maintains a tree of classes directed by inheritance. This object always exists in HTML, since it is used for other things such as printing class bases.
Protected Methods Summary:
  _make_graphs(self)
references
source code
Attributes Summary:
source code
source code
source code
source code
Methods Summary:
  __init__(self)
references
source code
  add_inheritance(self, supername, subname)
references
source code
Adds an edge to the graph.
  subclasses(self, classname)
references
source code
  superclasses(self, classname)
references
source code
Returns a sorted list of all classes the given class derives from.
  classes(self)
references
source code
  add_class(self, name)
references
source code
  roots(self)
references
source code
  graphs(self)
references
source code
Returns a list of graphs.
  leaves(self, graph)
references
source code
Returns a list of leaves in the given graph.
  visit_scope(self, scope)
references
source code
  visit_class(self, class_)
references
source code
Methods Details:
  add_inheritance(self, supername, subname)
references
source code
Adds an edge to the graph. Supername and subname are the scoped names of the two classes involved in the edge, and are copied before being stored.
  subclasses(self, classname)
references
source code
Returns a sorted list of all classes derived from the given class
  superclasses(self, classname)
references
source code
Returns a sorted list of all classes the given class derives from. The classes are returned as scoped names, which you may use to lookup the class declarations in the 'types' dictionary if you need to.
  classes(self)
references
source code
Returns a sorted list of all class names
  add_class(self, name)
references
source code
Adds a class to the list of classes by name
  roots(self)
references
source code
Returns a list of classes that have no superclasses
  graphs(self)
references
source code
Returns a list of graphs. Each graph is just a list of connected classes.
  leaves(self, graph)
references
source code
Returns a list of leaves in the given graph. A leaf is a class with no subclasses
  visit_class(self, class_)
references
source code
Adds this class and all edges to the lists