Function: ebrowse-gather-statistics

ebrowse-gather-statistics is a byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-gather-statistics)

Documentation

Return statistics for a class tree.

The result is a list (NUMBER-OF-CLASSES NUMBER-OF-MEMBER-FUNCTIONS NUMBER-OF-INSTANCE-VARIABLES NUMBER-OF-STATIC-FUNCTIONS NUMBER-OF-STATIC-VARIABLES:

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-gather-statistics ()
  "Return statistics for a class tree.
The result is a list (NUMBER-OF-CLASSES NUMBER-OF-MEMBER-FUNCTIONS
NUMBER-OF-INSTANCE-VARIABLES NUMBER-OF-STATIC-FUNCTIONS
NUMBER-OF-STATIC-VARIABLES:"
  (let ((classes 0) (member-functions 0) (member-variables 0)
	(static-functions 0) (static-variables 0))
    (ebrowse-for-all-trees (tree ebrowse--tree-table)
      (cl-incf classes)
      (cl-incf member-functions (length (ebrowse-ts-member-functions tree)))
      (cl-incf member-variables (length (ebrowse-ts-member-variables tree)))
      (cl-incf static-functions (length (ebrowse-ts-static-functions tree)))
      (cl-incf static-variables (length (ebrowse-ts-static-variables tree))))
    (list classes member-functions member-variables
	  static-functions static-variables)))